Ticket #819 (new enhancement )

Opened 4 years ago

Last modified 4 years ago

Multiple consecutive / in URLs gives 404 errors

Reported by: spiv Assigned to: jknight
Type: enhancement Priority: low
Milestone: Component: web
Keywords: Cc: spiv, jknight
Branch: Author:
Launchpad Bug:

Attachments

Change History

  2004-12-10 15:52:41+00:00 changed by spiv

Visiting e.g. http://twistedmatrix.com/documents//howto fails.  Unfortunately,
buggy scripts tend to be lax about multiple slashes in URLs, and they get away
with it because most servers treat them as one (e.g. visiting
http://lwn.net/Articles//KernelSummit2004/ works).  I'm not sure what the RFC
says about this, but it's probably a good idea to be forgiving anyway.

  2004-12-12 05:49:44+00:00 changed by jknight

This cannot be a builtin behavior of twisted web, because // really does
(or could to a certain application) have different semantics than /.
Handling of // could possibly be added to static.File, I suppose. But if it
is, it should return a redirect, not just serve the file at the bogus url.
Downgrading to wish.
Note: See TracTickets for help on using tickets.