Artifacts Associated With Ticket 1358369fffffffff
Ticket change [9836b02118] (rid 110567) by xiaotaow on 2005-11-16 19:35:29:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
http::geturl http://192.168.0.2/test/test.php?userid=sip:[email protected] will report an error. The regular expression set exp {^(([^:]*)://)?([^@]+@)?([^/:]+)(:([0-9]+))?(/.*)?$} will get confused by the '@' in the URL. -Xiaotao
- foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "xiaotaow"
- subsystem initialized to: "29. http Package"
- title initialized to:
geturl http://192.168.0.2/test/test.php?userid=sip:[email protected]
- type initialized to: "Bug"
Ticket change [3a408fbd9f] (rid 112533) by hobbs on 2005-11-17 02:41:11:
- icomment:
Logged In: YES user_id=72656 That is not a valid geturl request. The URL is not strictly valid - it should be encoded, which http provides the functions for. The query part should be formed by: (Tcl) 50 % http::formatQuery userid sip:[email protected] userid=sip%3ax%40abc.com that is proper URL formatting.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"
- icomment:
Ticket change [ef48f6e278] (rid 108966) by hobbs on 2005-11-17 02:41:13:
- closedate changed to: "2005-11-16T19:41:13"
- closer changed to: "hobbs"
Ticket change [b06529c4da] (rid 97976) by dkf on 2005-11-17 18:22:57:
- icomment:
Logged In: YES user_id=79902 On the other hand, handling URLs more robustly is a good thing anyway. Tests indicate that the RE: {(?x) ^ (?: (\w+) : )# <protocol> (?: // (?: ([^@/:#?]+) (?: : ([^@/#?]+) )? @ )?# <user> <pass> ( [^/:#?]+ )# <host> (?: : (\d+) )?# <port> )? ( / [^#]* )?# <path> (including query) (?: \# (.*) )?# <fragment> $ } offers both robust parsing (including of a number of rarely used parts of the URL spec) and yet is also fairly easy to understand. It also doesn't capture bits that aren't interesting. - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [54b728718c] (rid 93993) by hobbs on 2005-11-18 01:30:01:
- assignee changed to: "dkf"
Ticket change [a8e9612e6b] (rid 99072) by hobbs on 2005-11-18 01:30:02:
- icomment:
Logged In: YES user_id=72656 Donal - you can reopen if you want to provide a better RE, but make sure to add more tests along with it. Regardless, better conformance to the x-url-encoding for users should be directed.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [a198a660e5] (rid 109753) by dkf on 2005-11-18 07:07:23:
- icomment:
Logged In: YES user_id=79902 Reopening to stop me from losing the issue...
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dkf"
- icomment:
Ticket change [021b39207a] (rid 119590) by dkf on 2005-11-18 21:01:12:
- icomment:
Logged In: YES user_id=79902 Added improved validator (I think it is compliant with RFC 3986, which I believe to be the most up-to-date URI spec) to HEAD using attached patch. I don't plan to backport this patch.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
- icomment:
Add attachment "httpparse.diff" [9eacfd6115] (rid 96517) by dkf on 2005-11-18 21:01:13.
Ticket change [b1c3bdde3a] (rid 98212) by dkf on 2005-11-18 21:01:13:
- closedate changed to: "2005-11-18T14:01:13"
- closer changed to: "dkf"
Ticket change [59e02dcb1e] (rid 118040) by dkf on 2005-11-18 21:01:15:
- icomment:
File Added - 156758: httpparse.diff
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [cb506637d7] (rid 95493) by dkf on 2005-11-18 22:21:38:
- icomment:
Logged In: YES user_id=79902 backported after prodding from dgp
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment: