Closed Bug 389844 Opened 17 years ago Closed 17 years ago

zero_length_file: no read permission is also a possibility

Categories

(Bugzilla :: Attachments & Requests, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: vrb, Assigned: timeless)

Details

Attachments

(1 file)

In template/en/default/global/user-error.html.tmpl, here's the zero_length_file message:
    The file you are trying to attach is empty!

This message is incomplete because you'll get the same symptom if the browser has no read rights on the file. (For example, my browser cannot read a file owned by root with a mode of 0400.)

Here's a suggestion for a better message:
    The file you are trying to attach is empty, or you don't have permission to read it.
Attached patch improve errorSplinter Review
Assignee: attach-and-request → timeless
Status: NEW → ASSIGNED
Attachment #274825 - Flags: review?(wicked)
Comment on attachment 274825 [details] [diff] [review]
improve error

We should update the title as well, but nothing short and comprehensive comes in my mind.

"No Content Detected", "Empty File Content" maybe? But those are pretty much the same as the current message title.
Attachment #274825 - Flags: review?(wicked) → review+
Flags: approval?
Flags: approval3.0?
Target Milestone: --- → Bugzilla 3.0
Flags: approval?
Flags: approval3.0?
Flags: approval3.0+
Flags: approval+
Checked in on 3.0 and trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment on attachment 274825 [details] [diff] [review]
improve error

mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl 	1.224

BUGZILLA-3_0-BRANCH:
mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl 	1.204.2.6

as for a title, i think something along these lines, but it can get its own bug later:
No Data Sent To Server
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: