You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Zhao Yongming (JIRA)" <ji...@apache.org> on 2013/03/01 11:03:14 UTC

[jira] [Commented] (TS-1635) url parse BUGS IN Apache Traffic Sever 3.3.1

    [ https://issues.apache.org/jira/browse/TS-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590390#comment-13590390 ] 

Zhao Yongming commented on TS-1635:
-----------------------------------

here is 贝奇小天狼星's patch, FYI:

{code}
贝奇小天狼星  23:25:45
那个get 请求中包括域名的请求会404的。解决 了。
贝奇小天狼星  23:25:54
diff -Nur old/proxy/hdrs/URL.cc new/proxy/hdrs/URL.cc
--- old/proxy/hdrs/URL.cc       2013-02-27 14:00:24.000000000 +0800
+++ new/proxy/hdrs/URL.cc       2013-02-27 14:02:10.000000000 +0800
@@ -1066,7 +1066,9 @@
     if ((end - cur >= 5) && (((cur[0] ^ 'h') | (cur[1] ^ 't') | (cur[2] ^ 't') | (cur[3] ^ 'p') | (cur[4] ^ ':')) == 0)) {
       scheme_end = cur + 4;                   // point to colon
       url_scheme_set(heap, url, scheme_start, URL_WKSIDX_HTTP, 4, copy_strings_p);
-    } else { // some other scheme, try to parse it.
+    //} else { // some other scheme, try to parse it.
+      } else if(cur[0] != '/') {
       while (':' != *cur && ++cur < end)
         ;
       if (cur < end) { // found a colon
{code}
                
> url parse BUGS IN Apache Traffic Sever 3.3.1 
> ---------------------------------------------
>
>                 Key: TS-1635
>                 URL: https://issues.apache.org/jira/browse/TS-1635
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP
>            Reporter: evilbandon
>            Assignee: Alan M. Carroll
>
> url parse BUGS IN Apache Traffic Sever 3.3.1 
> the request URL is http://a.b.com/xx.jpg?newpath=http://b.c.com
> but the Apache Traffic Sever 3.3.1 parse this url as http://b.c.com

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira