Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111825 - can't add attachment - Internal Error
Summary: can't add attachment - Internal Error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeffrey Forman (RETIRED)
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
: 125736 159366 163379 184835 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-07 15:36 UTC by Iain Buchanan
Modified: 2011-10-30 23:15 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
junk (test,19 bytes, application/octet-stream)
2005-11-08 15:38 UTC, Iain Buchanan
Details
attachment.html (attachment.html,3.15 KB, text/html)
2006-01-17 03:16 UTC, Jakub Moc (RETIRED)
Details
testing attachments (Bugzilla Main Page,6.84 KB, application/octet-stream)
2006-09-05 04:22 UTC, Iain Buchanan
Details
testing again (test2.html,6.84 KB, text/html)
2006-09-05 04:24 UTC, Iain Buchanan
Details
testing (einfo,2.86 KB, text/plain)
2006-12-12 16:13 UTC, Iain Buchanan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iain Buchanan 2005-11-07 15:36:43 UTC
When I try to add an attachment to a bug I get a "No File Specified" message.

Note: I have cookies enabled and automatically accepting. (Firefox 1.0.7).

Reproducible: Always
Steps to Reproduce:
1. Go to http://bugs.gentoo.org/attachment.cgi?bugid=111754&action=enter
2. Fill in the details
3. Select "submit"
4. I get taken to the login page (even though I'm already logged in).
5. After I log in, I get the message:

No File Specified
(and in a Red background)
You did not specify a file to attach.

Please press Back and try again.

after which I see in the footer:
Bugzilla Version 2.18.3
Logged in as: iaindb@netspace.net.au | Log out

so I'm definately logged in...



$ emerge info
Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14
i686)
=================================================================
System uname: 2.6.14 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre9
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="ftp://arion/pub/gentoo-portage/
ftp://mirror.isp.net.au/pub/gentoo/ ftp://gg3.net/pub/linux/gentoo/
ftp://gentoo.ccccom.com ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
LANG="en_AU"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts
bluetooth cdr crypt cups curl directfb dvd dvdr eds emboss encode esd evo fam
flac foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 guile
imagemagick imlib ipv6 irmc java jpeg libg++ libwww mad mikmod mmx motif mozilla
mozsvg mp3 mpeg mysql ncurses nfs nls ogg oggvorbis opengl pam pdflib perl php
png postgres python quicktime readline samba sdl spell sse ssl svg svga tcltk
tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis win32codecs xml
xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Iain Buchanan 2005-11-07 15:38:04 UTC
I should add that I get taken to the log in page almost every time I do anything
on bugzilla... even after submitting this bug I was taken there, and had to log
in before I saw the "bug submitted" page.
Comment 2 Jeffrey Forman (RETIRED) gentoo-dev 2005-11-08 05:48:04 UTC
looks like you might need to check your browser. if you load up the bug you
referred to, i just posted a file.

i would try with another browser.

-jeffrey
Comment 3 Iain Buchanan 2005-11-08 15:38:15 UTC
Created attachment 72471 [details]
junk

Testing with internet explorer
Comment 4 Iain Buchanan 2005-11-08 15:45:52 UTC
Sorry to be a pain, but it doesn't work for me.  I tried

mozilla-firefox 1.0.7
mozilla 1.7.12
Gnome epiphany 1.8.2
links 2.1pre19 from http://links.twibright.com/.
and even Internet Explorer from a different machine.

Each one had the same behaviour - they took me to the log in page after I
selected "create new attachment" and then again to the login page when I
selected "submit" after which I got the same "No File Specified" with each.

(The only exception was internet explorer which took me to a strange "Locate
attachment" page, and it looks like it attached something...)

Each one had cookies enabled.
On each log-in I selected "remember me"
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-01-06 04:23:44 UTC
Bugzilla upgraded, reopen if this is still a problem. 
Comment 6 Iain Buchanan 2006-01-08 17:58:56 UTC
uh-oh :) I tried to test the attachment thing agian, and this time I get a Bugzilla "internal error"

(Plain text):

Internal Error

Bugzilla has suffered an internal error. Please save this page and send it to bugzilla@gentoo.org with details of what you were doing at the time this message appeared.

URL: http://bugs.gentoo.org/attachment.cgi
undef error - Undefined subroutine Fh::slice at data/template/template/en/custom/global/hidden-fields.html.tmpl line 58

Bugzilla Version 2.20+

I did not appear to be logged in according to this error page (even though I did log in).  I'll _try_ and attach the html, but if that doesn't work I'll post it.

I'm now using Firefox 1.5-r4
Comment 7 Iain Buchanan 2006-01-08 18:05:16 UTC
Sorry for the spam, but I can't attach it (I get the same error :)  Thanks for looking at it btw.  Here is the html with some blank lines removed.  Apologies if any of you are reading this in an html email client :>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                      "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>Internal Error</title>

<link rel="Top" href="http://bugs.gentoo.org/">

    <script type="text/javascript">
  <!--
  
  function initHelp() {}
  // -->
  </script>

    <link href="skins/standard/global.css" rel="stylesheet" type="text/css">
    <link href="skins/custom/global.css" rel="stylesheet" type="text/css">

  </head>

  <body onload=""
        class="bugs-gentoo-org">

<div id="banner">
      <p id="banner-name">
        <span>This is Bugzilla</span>
      </p>
      <p id="banner-version">
<!--        <a href="http://www.bugzilla.org/"><span>Bugzilla</span></a>
        <span>Version 2.20+</span> -->
	<a href="http://www.gentoo.org/">Home</a> |
	<a href="http://www.gentoo.org/doc/en/index.xml">Docs</a> |
	<a href="http://forums.gentoo.org/">Forums</a> |
	<a href="http://www.gentoo.org/main/en/lists.xml">Lists</a> |
	<a href="http://bugs.gentoo.org">Bugs</a> |
	<a href="http://planet.gentoo.org">Planet</a> |
	<a href="http://store.gentoo.org">Store</a> |
	<a href="http://www.gentoo.org/news/en/gwn/gwn.xml">GWN</a> |
	<a href="http://www.gentoo.org/main/en/where.xml">Get Gentoo!</a>
      </p>
    <div class="outro"></div>
    </div>

<div id="header">
    <h1>Internal Error</h1>

</div>

<tt>
  <p>Bugzilla has suffered an internal error. Please save this page and send
    it to bugzilla@gentoo.org with details of what you were doing at
    the time this message appeared.
  </p>
  <script type="text/javascript"> <!--
    document.write("<p>URL: " + 
                    document.location.href.replace(/&/g,"&amp;")
                                          .replace(/</g,"&lt;")
                                          .replace(/>/g,"&gt;") + "</p>");
  // -->
  </script>
</tt>

<table cellpadding="20">
  <tr>
    <td bgcolor="#ff0000">
      <font size="+2">undef error - Undefined subroutine Fh::slice
 at data/template/template/en/custom/global/hidden-fields.html.tmpl line 58

      </font>
    </td>
  </tr>
</table>

<div id="footer">
  <div class="intro"></div>

<form method="get" action="show_bug.cgi">
<p class="version"><a href="http://www.bugzilla.org/">Bugzilla</a> Version 2.20+<br>

<div id="useful-links">
  <div id="links-actions">
    <div class="label">Actions:</div>
    <div class="links">
        <a href="./">Home</a> | 
        <a href="enter_bug.cgi">New</a> | 
        <a href="query.cgi">Search</a> |
        bug # <input class="txt" name="id" size="6">
        <input class="btn" type="submit" value="Find"> | 
        
        <a href="report.cgi">Reports</a> 
        
          | <a href="request.cgi">Requests</a>

              | <a href="createaccount.cgi">New&nbsp;Account</a>
            | <a href="index.cgi?GoAheadAndLogIn=1">Log&nbsp;In</a>
    </div>
  </div>

  <div id="links-saved">
    <div class="label">
    </div>
    <div class="links">

    </div>
  </div>

</div>
</form>

  <div class="outro"></div>
</div>

</body>
</html>
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-01-17 03:16:47 UTC
Created attachment 77327 [details]
attachment.html

Testing attachment
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-01-17 03:19:08 UTC
As you can see, attaching works just fine. Viewing produces a stupid error:

<snip>
undef error - Undefined subroutine Fh::slice at data/template/template/en/custom/global/hidden-fields.html.tmpl line 58
</snip>

Should be probably reported upstream.
Comment 10 Tersius 2006-02-09 13:09:17 UTC
I have also tried adding a attachment and I also get "undef error - Undefined subroutine Fh::slice at data/template/template/en/custom/global/hidden-fields.html.tmpl line 58"
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-03-10 11:45:00 UTC
*** Bug 125736 has been marked as a duplicate of this bug. ***
Comment 12 Rick Harris 2006-04-20 00:37:25 UTC
Had the same problem adding a simple patch file, no HTML/XML elements present.

The only way it would be accepted was to ensure the 'Patch' box was left unchecked & to choose it as 'Plain text (text/plain)'

Behaviour is identical in both Firefox + Konqueror.
Comment 13 Iain Buchanan 2006-09-04 21:34:39 UTC
Attachments seem to work for me now - I've attached a few over the last few weeks...

can others confirm / deny they're working for them too?
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-09-05 00:22:13 UTC
(In reply to comment #13)
> Attachments seem to work for me now - I've attached a few over the last few
> weeks...

Well, mind you this seems _very_ specific for some types of attachments only. Do you mean that same attachments that failed for you work now? Like, the one in Comment #7? 
Comment 15 Iain Buchanan 2006-09-05 04:22:56 UTC
Created attachment 96050 [details]
testing attachments
Comment 16 Iain Buchanan 2006-09-05 04:24:18 UTC
Created attachment 96051 [details]
testing again
Comment 17 Iain Buchanan 2006-09-05 04:27:42 UTC
(In reply to comment #14)
> Well, mind you this seems _very_ specific for some types of attachments only.

hmm, I had the problem with everything I ever tried to attach, but then that wasn't a whole lot...

> Do you mean that same attachments that failed for you work now? Like, the one
> in Comment #7? 

I tried to reproduce what I would have attached in comment #7, by saving a page with firefox and then attaching it, but as you can see it worked.

If anyone has a file on their system that they know fails, then please email it to me and I will try and attach it.  But so far, for me it works...
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-09-05 04:34:17 UTC
OK, thanks. Closing for now.
Comment 19 Iain Buchanan 2006-12-12 16:13:39 UTC
Created attachment 103903 [details]
testing 

another test... think it's borked again...
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-12-29 05:01:13 UTC
*** Bug 159366 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-12-29 05:04:28 UTC
Upstream bug; we definitely won't solve this...

https://bugzilla.mozilla.org/show_bug.cgi?id=299405
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-12-29 05:04:54 UTC
Marking as such...
Comment 23 Michael Cummings (RETIRED) gentoo-dev 2006-12-29 05:06:53 UTC
which is my other problem this morning - suddenly every page i go to in bugzilla seems to be generating a unique cookie ('cause i have a good dozen+ now from today alone). but that's fodder for another bug report ;)
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2007-01-23 07:43:54 UTC
*** Bug 163379 has been marked as a duplicate of this bug. ***
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2007-01-23 07:56:44 UTC
In case it's still not clear; if this happens to you, then either

- your login expired or your browser is not accepting cookies properly
- or you've added something bogus to CC field (incomplete/malformed/too fuzzy entry)
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2007-07-10 13:02:26 UTC
*** Bug 184835 has been marked as a duplicate of this bug. ***