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
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.
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
Created attachment 72471 [details] junk Testing with internet explorer
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"
Bugzilla upgraded, reopen if this is still a problem.
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
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,"&") .replace(/</g,"<") .replace(/>/g,">") + "</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 Account</a> | <a href="index.cgi?GoAheadAndLogIn=1">Log 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>
Created attachment 77327 [details] attachment.html Testing attachment
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.
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"
*** Bug 125736 has been marked as a duplicate of this bug. ***
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.
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?
(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?
Created attachment 96050 [details] testing attachments
Created attachment 96051 [details] testing again
(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...
OK, thanks. Closing for now.
Created attachment 103903 [details] testing another test... think it's borked again...
*** Bug 159366 has been marked as a duplicate of this bug. ***
Upstream bug; we definitely won't solve this... https://bugzilla.mozilla.org/show_bug.cgi?id=299405
Marking as such...
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 ;)
*** Bug 163379 has been marked as a duplicate of this bug. ***
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)
*** Bug 184835 has been marked as a duplicate of this bug. ***