Closed Bug 371733 Opened 19 years ago Closed 15 years ago

URL Attachment requires "http://", else causes "no file specified" error

Categories

(Bugzilla :: Attachments & Requests, defect)

2.22.2
defect
Not set
minor

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jdglanville, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 Build Identifier: Bugzilla 2.22.2 When creating URL attachment, Bugzilla expects the URL to be prefixed with "http://", or else reports a "No file specified" error. Reproducible: Always Steps to Reproduce: 1. Click the "Create a New Attachment" on a bug. 2. Fill in the following fields: AttachURL = www.google.ca Description = Google 3. Click submit, resulting in errors: No File Specified You did not specify a file to attach. 4. Click the back button. 5. Click the submit button. Success Actual Results: After clicking submit-back-submit, URL attachment is accepted. Expected Results: After clicking first submit, URL attachment is accepted. (Ie: after step 3, success.) If the URL field in step 2 above contained the string "http://www.google.ca", then no error would have been reported.
You have to specify a full URL as it will then be used as a link, so the URL has to begin with http://, https:// or ftp://. No other protocol will be accepted.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Version: unspecified → 2.22.2
Why will no other protocols be accepted? Within my workplace, we use several protocols, including ssh:, telnet:, news:, sip:, mailto:, file:, etc, etc, etc. All are valid. See the Wikipedia article on URI scheme for a slightly more exhaustive list of valid schemes (http://en.wikipedia.org/wiki/URI_scheme). So, two questions: 1) Why limit at all? Why not just allow the browser or OS to deal with the URI scheme through it's own protocol handlers? 2) If you're going to limit to just http:, https: and ftp:, then why is it successful on the second attempt? (see Steps to Reproduce in comment #0)
reopening bug due to questions in comment #2
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Yes, I agree, we should prepend http:// if the user doesn't type it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
With the work going on on bug 119703, I plan to support more protocols than just http(s) and ftp, and the "is URL" attribute is going away. www.google.ca is not a valid URL, and I don't plan to make any guess about it.
Status: NEW → RESOLVED
Closed: 19 years ago15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.