Closed Bug 702958 Opened 13 years ago Closed 13 years ago

mozhttpd seems to have a problem with %252F -> %2f

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Unassigned)

Details

(Whiteboard: [mozbase][good first bug][mentor=jhammel])

Attachments

(1 file, 1 obsolete file)

in tp5, there is a link to:
http://localhost/page_load_test/tp5/linkedin.com/www.linkedin.com/in/christopherblizzard@goback=.nppvan_%252Flemuelf.html

in literal translation with mozhttpd, we translate this to:
/page_load_test/tp5/linkedin.com/www.linkedin.com/in/christopherblizzard@goback=.nppvan_%252Flemuelf.html

on the file system, we have this file:
page_load_test/tp5/linkedin.com/www.linkedin.com/in/christopherblizzard@goback=.nppvan_%2Flemuelf.html


So when using apache we translate %252F -> %2F on the file system and %2f doesn't work.  Mozhttpd should support this mode.
In theory should just be able to url decode it.  Its becoming clearer that SimpleHTTPServer is just that
OS: Linux → All
Hardware: x86 → All
Whiteboard: [mozbase][good first bug][mentor=jhammel]
Attachment #574922 - Flags: review?(jhammel)
I forgot to remove the "print" statement used for debugging. Attaching the fixed patch, sorry.
Attachment #574922 - Attachment is obsolete: true
Attachment #574922 - Flags: review?(jhammel)
Attachment #574925 - Flags: review?(jhammel)
Comment on attachment 574925 [details] [diff] [review]
Fix for urldecoding and path splitting

Looks good!
Attachment #574925 - Flags: review?(jhammel) → review+
pushed: http://hg.mozilla.org/build/talos/rev/b76d25c978df

Thanks for the patch!
Status: NEW → RESOLVED
Closed: 13 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: