#11551 closed (duplicate)
URL not parsing file locator
| Reported by: | Adam Nelson | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | 1.0 |
| Severity: | Keywords: | validation url | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Issue
When trying to save a form, the error 'Enter a valid URL.' appears for file:///Users/adam/blah.html
Expected
Either an error "file:// is not valid" should appear (for safety reasons?) or it should be allowed. The generic error message isn't true because file:// is a valid URL descriptor.
Resolution
I've attached a preliminary patch. Ideally we would use a library but I see that there's not easy and robust way to do this with standard Python.
Attachments (1)
Change History (4)
by , 16 years ago
| Attachment: | forms.fields.diff added |
|---|
comment:2 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Allows file:/// url type