Closed Bug 22428 Opened 26 years ago Closed 26 years ago

can't use mozilla to attach files to bugzilla

Categories

(Core :: Networking, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: endico, Assigned: rpotts)

References

Details

(Whiteboard: [PDT+]important functionality broken)

Attachments

(45 files)

4.89 KB, text/plain
Details
42 bytes, text/plain
Details
2.91 KB, text/plain
Details
21 bytes, text/plain
Details
21 bytes, text/plain
Details
24 bytes, text/plain
Details
24 bytes, text/plain
Details
24 bytes, text/plain
Details
24 bytes, text/plain
Details
24 bytes, text/plain
Details
24 bytes, text/plain
Details
110.58 KB, image/jpeg
Details
6.64 KB, text/plain
Details
259.77 KB, image/jpeg
Details
259.77 KB, image/jpeg
Details
7.18 KB, text/plain
Details
7.46 KB, patch
Details | Diff | Splinter Review
259.77 KB, image/jpeg
Details
259.77 KB, image/jpeg
Details
259.77 KB, image/jpeg
Details
127.31 KB, text/plain
Details
259.77 KB, image/jpeg
Details
91.77 KB, image/gif
Details
4 bytes, text/plain
Details
115.77 KB, image/gif
Details
303.04 KB, application/octet-stream
Details
79.04 KB, application/octet-stream
Details
63.04 KB, application/octet-stream
Details
255.04 KB, application/octet-stream
Details
263.04 KB, application/octet-stream
Details
303.04 KB, application/octet-stream
Details
271.04 KB, application/octet-stream
Details
259.77 KB, image/jpeg
Details
297.04 KB, application/octet-stream
Details
271.04 KB, application/octet-stream
Details
303.04 KB, application/octet-stream
Details
303.04 KB, application/octet-stream
Details
110.58 KB, image/jpeg
Details
110.58 KB, image/jpeg
Details
259.77 KB, image/jpeg
Details
4.23 KB, image/gif
Details
259.77 KB, image/jpeg
Details
259.77 KB, image/jpeg
Details
259.77 KB, image/jpeg
Details
259.77 KB, image/jpeg
Details
When creating a new bug attachment the file picker under the "Browse..." button only prints the file name, not the entire path so when you submit the attachment, bugzilla can't find the file and the operation fails.
Assignee: trudelle → sdagley
assigning to sdagley for triage.
Status: NEW → ASSIGNED
Target Milestone: M14
Just out of curiosity, does this work on any platform? I suspect we're only using the file name rather than the complete path returned by the file picker. Will investigate in detail after the holidays.
this works on windows tip from 12/22, but I couldn't get it to work on linux either, even if I type in the full correct path
OS: Linux → All
Hardware: PC → All
duped bug was mac, marking all
*** Bug 6229 has been marked as a duplicate of this bug. ***
*** Bug 23432 has been marked as a duplicate of this bug. ***
B13 on the Mac - problem is still open.
Keywords: beta1
Whiteboard: important functionality broken
I'v attached a log that shows the traffic between the Mac and Bugzilla when the submit fails. It would appear that Bugzilla isn't recognizing the mime type for the attachment. Any ideas jud or gagan?
Attached file linux test
Putting on PDT+ radar for beta1. And adding dogfood to keyword.
Keywords: dogfood
Whiteboard: important functionality broken → [PDT+]important functionality broken
Attached file Testing
Attached file Testing
Attached file Testing
Attached file Yes, testing
Attached file Again
Problem was that we weren't properly calculating the size of the form submit (left out the size of the actual data in the file). Changed nsFormFrame::ProcessAsMultipart to use an nsILocalFile to get file size rather than PR_GetFileInfo as the path to the file is in native format and PR_GetFileInfo doesn't handle native Mac paths.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
okay, this seems to be fixed for small plain text file, but I'm having trouble, especially on mac and sometimes on windows, with uploading larger gif and jpg files. Linux does not exhibit the problem. I'm attaching a file (using 4.x) that hangs when trying to attach using mozilla on mac0s8.6 and win98 using 2/4 builds.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: sdagley → warren
Severity: normal → critical
Status: REOPENED → NEW
Component: XP Toolkit/Widgets → Networking
Priority: P3 → P1
Ok, this is now a different problem and looks to be somewhere in Necko. The attachment built in layout/html/forms/src/nsFormFrame.cpp looks to be the appropriate 110K or so. Watching the data being sent to Bugzilla when trying to submit the attachment however shows that we send about 48K and then stall out. This would be bad. Reassigning to warren for disposition. Also bumping the priority and severity settings since it is keyed as a beta1 dogfood bug.
Jud, can you look into this one?
Assignee: warren → valeski
yea, this is floating around in several bugs. 48k seems to be about what I was seeing. cc'ing rpotts. we're reaching some sort of cap in the socket transport/pipe code where we slow to a crawl then the server times us out.
Status: NEW → ASSIGNED
over to rpotts. we think we've seen this before.
Assignee: valeski → rpotts
Status: ASSIGNED → NEW
*** Bug 17967 has been marked as a duplicate of this bug. ***
*** Bug 22819 has been marked as a duplicate of this bug. ***
I think I just noticed that changing window focus (w/ other apps) caused us to fall out of PR_Poll() and into or doWrite() function, each time I changed focus :-/
scratch that last comment. I'm tired.
This might be related to bug 27022
Attached file Yet another test...
Warren's change to mozilla\netwerk\base\src\nsBufferedStreams.cpp (r 1.3) has fixed this problem.
Status: NEW → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Rick, I tried attaching the 259k image using today's 2/14 windows build (win98) and I'm still seeing the same behavior, it starts transferring then just spins. Linux is still ok, no mac build available. A small text file is still ok. re-opening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
*** Bug 27356 has been marked as a duplicate of this bug. ***
Attached image yet another test...
I don't get it... I just tried attaching the 259K JPEG image again and it *worked* fine. Is this still a problem? Maybe on 2/14 there was some other Windows instability? Since it worked on Linux :-) I'm closing it again :-) Please open it up again if it's still a problem for you... I guess it might be a seamonkey only problem :-(
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → WORKSFORME
Rick, yes it is still a problem for me. I tried on a different machine, win95 this time. Here's what I did: 1. Save the 259k file locally to my hard drive. 2. Launch mozilla and loads this bug 3. Click on Create a new Attachment 4 [details] [diff]. Click browse and select my file, which I have called big.gif 5. Add some comments, select image/gif as mime-type and submit It just goes and goes and goes. What do mean when you say "I guess it must be a seamonkey only problem". I'm using 2/17 Windows release commercial build. What are you using? cc:ing shrirang and sairuh who will please try this out on their NT machines.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I'm using a tip debug build (2/18/00) of mozilla. I'll try it out on a commercial build tomorrow...
seems maybe timing dependent, as I fail sometime even on the small plain text file. I would suspect debug vs release or machine dependent as opposed to commercial vs mozilla. commercial build can be obtained at ftp://sweetlou/products/client/seamonkey/windows/32bit/x86/ for netscape internal folks
Hmmm... Last time I closed this bug (on 2/11) I was able to create a 259K JPEG attachment using an optimized mozilla build :-( I guess I'll just try creating attachments *lots* of times... Beware for the flood of bugzilla notifications :-)
Attached image again...
Attached image again...
Paul, I think that this is a Win95/98 only bug... I'm not seeing it under NT, but I am seeing it on my Win98 box... Were you testing on Win98 only?
OK... so I just tried it again on Win98 with the *same* build I'm running on NT. It fails on Win98, but works on WinNT. Oh joy... I'll start setting up a debug environment on my Win98 box :-(
yes, i tried it on win95 and win98, shrir just tried it on NT and didn't have any problems. Strange.
macintosh also only works with small files, i spin when tring the large gif
hmmm, it actually worked a couple times, though it was still spinning...
Attached file 300K exe using Win98
Attached file and again... (win98)
Attached file yet again :-(
Attached file again on Win98
Attached file and again...
OK... So I now know what's going on here... It turns out that nsSocketTransport::doWriteFromStream(...) is *totally* busted! This method reads a chunk of data from an input stream into a buffer and then sends it to the network... If send() is unable to write the entire buffer, or God forbid E_WOULDBLOCK is returned, the unsent data is simply thrown away!!! Fixing this will requre a bit of thought... But at least I know what's causing the problem :-)
I've checked the fix in...
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Attached image Verifying on mac build
Attached image Verifying on Win-98
Finally....Marking VERIFIED !
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: