Author ijmorlan
Recipients dalke, ijmorlan, jjlee, paulj, skip.montanaro
Date 2007-10-29.16:38:15
SpamBayes Score 0.0240799
Marked as misclassified No
Message-id <1193675896.48.0.0706475211523.issue1462525@psf.upfronthosting.co.za>
In-reply-to
Content
This is probably overkill, but I've created a Python script (attached)
that runs all the tests given in Section 5.4 of RFC 3986.  It reports
the following:

baseurl=http://a/b/c/d;p?q
failed for ?y: got http://a/b/c/?y, expected http://a/b/c/d;p?y
failed for ../../../g: got http://a/../g, expected http://a/g
failed for ../../../../g: got http://a/../../g, expected http://a/g
failed for /./g: got http://a/./g, expected http://a/g
failed for /../g: got http://a/../g, expected http://a/g
failed for http:g: got http://a/b/c/g, expected http:g

The last of these is sanctioned by the RFC as acceptable for backward
compatibility, so I'll ignore that.  The remainder suggest that in
addition to the query-relative bug, there is a problem with not reducing
"/./" to just "/", and with dropping excess occurrences of ".." that
would go above the root.  On the other hand, these additional issues are
listed in the RFC as "abnormal" so I'm not sure if people are going to
want to put in the time to address them.
Files
File name Uploaded
testurlparse.py ijmorlan, 2007-10-29.16:38:15
History
Date User Action Args
2007-10-29 16:38:16ijmorlansetspambayes_score: 0.0240799 -> 0.0240799
recipients: + ijmorlan, skip.montanaro, jjlee, dalke, paulj
2007-10-29 16:38:16ijmorlansetspambayes_score: 0.0240799 -> 0.0240799
messageid: <1193675896.48.0.0706475211523.issue1462525@psf.upfronthosting.co.za>
2007-10-29 16:38:16ijmorlanlinkissue1462525 messages
2007-10-29 16:38:15ijmorlancreate