Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 349

Summary: Mozilla 0.9.7-rc1 fails to post forms in some cases
Product: Gentoo Linux Reporter: Edward Muller <edwardam>
Component: Current packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Edward Muller 2002-01-26 21:54:58 UTC
Mozilla 0.9.7-rc1 fails to post forms in some caes. This seems to happen with
squirrelmail (1.2.3, not sure about others) and squishdot sites.

Go to one of those sites and try to submit an article (in the case of squisjdot)
or send an email (in the case of squirrelmail).

This has been discussed on squisdot.org and IIRC the squirrelmail mailing lists
as well.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-27 05:18:09 UTC
You sure this is a Gentoo only problem ?  If it affects Mozilla on all
platforms, you should really post the bug to Mozilla themselfs, and hopefully
it gets fixed in next release.
Comment 2 jano lukac 2002-01-30 15:31:59 UTC
This pertains to bug 116210 on mozilla:
http://bugzilla.mozilla.org/show_bug.cgi?id=116210

I have enclosed the cheesy, one line patch which fixes the problem.  Save the
patch to mozilla/files directory and add this to the ebuild just before the
configure line (replace PATCH with name of saved file):

patch -d content/html/content/src -p1 < ${FILESDIR}/PATCH || die

toodles,
jano
Comment 3 jano lukac 2002-01-30 15:37:32 UTC
Okay, i was unable to upload the patch, as there seems to be a button missing on
the attachment form.  Here it is cut-n-paste:

Index: src/nsFormSubmitter.cpp
===================================================================
RCS file: /cvsroot/mozilla/content/html/content/src/nsFormSubmitter.cpp,v
retrieving revision 1.12.2.1
diff -u -r1.12.2.1 nsFormSubmitter.cpp
--- src/nsFormSubmitter.cpp 18 Dec 2001 19:27:21 -0000  1.12.2.1
+++ src/nsFormSubmitter.cpp 21 Dec 2001 20:19:47 -0000
@@ -1074,7 +1074,6 @@
               }
               nsMemory::Free(readbuffer);
               NS_RELEASE(contentFile);
-              if (NS_FAILED(rv)) break;
               // Print CRLF after file
               wantbytes = PL_strlen(CRLF);
               rv = outStream->Write(CRLF, wantbytes, &gotbytes);
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-02-03 01:27:43 UTC
Thanks guys.  Should be fixed in -r2 now.