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)

2.23.3
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: asrail, Assigned: LpSolit)

Details

Attachments

(2 files)

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.
It says clearly to "press back and try again" and doesn't give any indication the bug has been created.
Summary: Wrong error message while attaching a invalid filein bug creation → Wrong error message while attaching a invalid file in bug creation
Assignee: gerv → create-and-change
Component: Reporting/Charting → Creating/Changing Bugs
I forgot to mention the version is 3.0. I can't see it under "version".
(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
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
Attached patch patch, v1 — — Splinter Review
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 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+
Flags: blocking3.0?
Flags: blocking3.0+
Flags: approval+
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.

Attachment

General

Created:
Updated:
Size: