B Wyatt created TS-1315:
---------------------------

             Summary: 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


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:[email protected]] <<PASS>> { 
ok }
[SDK_API_TSUrlParse] TSUrlParse : [http://www.example.com:3426] <<PASS>> { ok }
[SDK_API_TSUrlParse] TSUrlParse : [http://abc:[email protected]: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:[email protected]:3426/homepage.cgi;ab?abc=def#abc] <<PASS>> { 
ok }
[SDK_API_TSUrlParse] TSUrlParse : 
[https://abc:[email protected]:3426/homepage.cgi;ab?abc=def#abc] <<PASS>> { 
ok }
[SDK_API_TSUrlParse] TSUrlParse : 
[ftp://abc:[email protected]: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

        

Reply via email to