You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2012/07/16 08:20:35 UTC
[jira] [Updated] (TS-1315) URL parsing fails for less used but
valid URLs
[ https://issues.apache.org/jira/browse/TS-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-1315:
------------------------------
Fix Version/s: 3.3.0
> URL parsing fails for less used but valid URLs
> ----------------------------------------------
>
> Key: TS-1315
> URL: https://issues.apache.org/jira/browse/TS-1315
> Project: Traffic Server
> Issue Type: Bug
> Components: MIME, Plugins
> Affects Versions: 3.2.0
> Environment: vanilla 3.2.0 build from git label
> Reporter: B Wyatt
> Assignee: Alan M. Carroll
> Fix For: 3.3.0
>
> Attachments: TSUrlParse.regression.patch
>
>
> URL parsing/printing fails using certain valid but more exotic URL patterns. Specifically, use of non standard schemes (eg foo://) and URLs using the file:// scheme are failing to parse and print-back correctly.
> I modified the regression test for TSUrlParse (see attached patch) and the output was as follows:
> {noformat}
> REGRESSION TEST SDK_API_TSUrlParse started
> [SDK_API_TSUrlParse] TSUrlParse : [http://www.example.com] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [http://abc:def@www.example.com] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [http://www.example.com:3426] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [http://abc:def@www.example.com:3426] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [http://www.example.com/homepage.cgi] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [http://www.example.com/homepage.cgi;ab?abc=def#abc] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [http://abc:def@www.example.com:3426/homepage.cgi;ab?abc=def#abc] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [https://abc:def@www.example.com:3426/homepage.cgi;ab?abc=def#abc] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [ftp://abc:def@www.example.com:3426/homepage.cgi;ab?abc=def#abc] <<PASS>> { ok }
> [SDK_API_TSUrlParse] TSUrlParse : [file://c:/test.dat;ab?abc=def#abc] <<FAIL>> { TSUrlParse returns TS_PARSE_ERROR }
> [SDK_API_TSUrlParse] TSUrlParse : [file:///test.dat;ab?abc=def#abc] <<FAIL>> { Value's Mismatch }
> [SDK_API_TSUrlParse] TSUrlParse : [foo://bar.com/baz/] <<FAIL>> { TSUrlParse returns TS_PARSE_ERROR }
> REGRESSION_RESULT SDK_API_TSUrlParse: FAILED
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira