Closed
Bug 365739
Opened 19 years ago
Closed 19 years ago
An error is thrown when attaching a too big file on bug creation
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: asrail, Assigned: LpSolit)
Details
Attachments
(2 files)
|
75.90 KB,
image/png
|
Details | |
|
776 bytes,
patch
|
justdave
:
review+
|
Details | Diff | Splinter Review |
If you try to upload an invalid attachment while creating the bug, you'll see a warning saying to you go back and try to upload another one, but it files the bug.
1 - Use https://bugzilla-test.mozilla.org to make the test
2 - Start creating a new bug
3 - Add an attachment with more than 300kb
4 - Try to file the bug
What happens:
You will see a message telling you that the attachment could be uploaded (the default message), telling you to 'go back' and try again, the bug is filled.
What should happens:
1 - the bug shouldn't be filled, so it would be filled with the right attachment later, or
2 - the bug is filled and the message tells clearly that the user should go to the just created bug and attach the file there.
The way it's right now makes us to create duplicates of our own bugs when we can't attach the file we want.
| Reporter | ||
Comment 1•19 years ago
|
||
It says clearly to "press back and try again" and doesn't give any indication the bug has been created.
| Reporter | ||
Updated•19 years ago
|
Summary: Wrong error message while attaching a invalid filein bug creation → Wrong error message while attaching a invalid file in bug creation
| Reporter | ||
Updated•19 years ago
|
Assignee: gerv → create-and-change
Component: Reporting/Charting → Creating/Changing Bugs
| Reporter | ||
Comment 2•19 years ago
|
||
I forgot to mention the version is 3.0. I can't see it under "version".
| Assignee | ||
Comment 3•19 years ago
|
||
(In reply to comment #2)
> I forgot to mention the version is 3.0. I can't see it under "version".
>
Your version is not 3.0 as we didn't release it yet. Probably 2.23.3.
Version: unspecified → 2.23.3
| Assignee | ||
Updated•19 years ago
|
Flags: blocking3.0?
Summary: Wrong error message while attaching a invalid file in bug creation → An error is thrown when attaching a too big file on bug creation
Target Milestone: --- → Bugzilla 3.0
| Assignee | ||
Comment 4•19 years ago
|
||
The problem is that we shifted the parameters passed to _validate_data().
Assignee: create-and-change → LpSolit
Status: NEW → ASSIGNED
Attachment #250332 -
Flags: review?(wurblzap)
Attachment #250332 -
Flags: review?(mkanat)
Comment 5•19 years ago
|
||
Comment on attachment 250332 [details] [diff] [review]
patch, v1
OK, this definitely fixes the problem. Reveals a couple new ones to me, but probably outside the scope of this bug.
The message saying the bug succeeded but the attachment failed doesn't stand out enough. It's also green. Since it's reporting a problem, it should be red. I'll file a new bug for that thought.
Attachment #250332 -
Flags: review?(wurblzap)
Attachment #250332 -
Flags: review?(mkanat)
Attachment #250332 -
Flags: review+
Updated•19 years ago
|
Flags: blocking3.0?
Flags: blocking3.0+
Flags: approval+
| Assignee | ||
Comment 6•19 years ago
|
||
Checking in Bugzilla/Attachment.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Attachment.pm,v <-- Attachment.pm
new revision: 1.43; previous revision: 1.42
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•