You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2008/03/24 23:11:24 UTC
[jira] Created: (SHINDIG-149) Java proxy uses it's own Host: for
the host header instead of the remote host
Java proxy uses it's own Host: for the host header instead of the remote host
-----------------------------------------------------------------------------
Key: SHINDIG-149
URL: https://issues.apache.org/jira/browse/SHINDIG-149
Project: Shindig
Issue Type: Bug
Components: Gadgets Server - Java
Reporter: Paul Lindner
The following request:
http://11423068301.o.hi5modules.com/gadgets/proxy?url=http://fishgadget.googlecode.com/svn/trunk/swfobject.js
Results in an incorrect set of headers sent to the remote host:
172.016.185.001.18127-066.102.001.082.00080: GET /svn/trunk/swfobject.js HTTP/1.1
cookie: __utma=170362720.1334816416.1206391328.1206391328.1206391328.1; __utmc=170362720; __utmz=170362720.1206391328.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)cache-control: max-age=0
connection: keep-alive
host: 11423068301.o.hi5modules.com
accept-language: en-us,en;q=0.5
accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
user-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5pre) Gecko/2008032204 Minefield/3.0b5pre
keep-alive: 300
accept-encoding: gzip,deflate
x-cluster-client-ip: 71.5.1.212
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
The Host header should be fishgadget.googlecode.com, not 11423068301.o.hi5modules.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-149) Java proxy uses it's own Host: for
the host header instead of the remote host
Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581707#action_12581707 ]
Kevin Brown commented on SHINDIG-149:
-------------------------------------
This is happening because we're only filtering out the "Host" header (not "host").
This seems to be ok on most user agents, but we should definitely make the removeBadHeaders call be case insensitive.
> Java proxy uses it's own Host: for the host header instead of the remote host
> -----------------------------------------------------------------------------
>
> Key: SHINDIG-149
> URL: https://issues.apache.org/jira/browse/SHINDIG-149
> Project: Shindig
> Issue Type: Bug
> Components: Gadgets Server - Java
> Reporter: Paul Lindner
>
> The following request:
> http://11423068301.o.hi5modules.com/gadgets/proxy?url=http://fishgadget.googlecode.com/svn/trunk/swfobject.js
> Results in an incorrect set of headers sent to the remote host:
> 172.016.185.001.18127-066.102.001.082.00080: GET /svn/trunk/swfobject.js HTTP/1.1
> cookie: __utma=170362720.1334816416.1206391328.1206391328.1206391328.1; __utmc=170362720; __utmz=170362720.1206391328.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)cache-control: max-age=0
> connection: keep-alive
> host: 11423068301.o.hi5modules.com
> accept-language: en-us,en;q=0.5
> accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> user-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5pre) Gecko/2008032204 Minefield/3.0b5pre
> keep-alive: 300
> accept-encoding: gzip,deflate
> x-cluster-client-ip: 71.5.1.212
> accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> The Host header should be fishgadget.googlecode.com, not 11423068301.o.hi5modules.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (SHINDIG-149) Java proxy uses it's own Host: for
the host header instead of the remote host
Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Lindner reopened SHINDIG-149:
----------------------------------
Assignee: Paul Lindner
sigh, that didn't seem to fix it after all...
> Java proxy uses it's own Host: for the host header instead of the remote host
> -----------------------------------------------------------------------------
>
> Key: SHINDIG-149
> URL: https://issues.apache.org/jira/browse/SHINDIG-149
> Project: Shindig
> Issue Type: Bug
> Components: Gadgets Server - Java
> Reporter: Paul Lindner
> Assignee: Paul Lindner
>
> The following request:
> http://11423068301.o.hi5modules.com/gadgets/proxy?url=http://fishgadget.googlecode.com/svn/trunk/swfobject.js
> Results in an incorrect set of headers sent to the remote host:
> 172.016.185.001.18127-066.102.001.082.00080: GET /svn/trunk/swfobject.js HTTP/1.1
> cookie: __utma=170362720.1334816416.1206391328.1206391328.1206391328.1; __utmc=170362720; __utmz=170362720.1206391328.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)cache-control: max-age=0
> connection: keep-alive
> host: 11423068301.o.hi5modules.com
> accept-language: en-us,en;q=0.5
> accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> user-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5pre) Gecko/2008032204 Minefield/3.0b5pre
> keep-alive: 300
> accept-encoding: gzip,deflate
> x-cluster-client-ip: 71.5.1.212
> accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> The Host header should be fishgadget.googlecode.com, not 11423068301.o.hi5modules.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SHINDIG-149) Java proxy uses it's own Host: for
the host header instead of the remote host
Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Lindner resolved SHINDIG-149.
----------------------------------
Resolution: Fixed
use a TreeMap with a case insensitive comparator to insure that headers are correctly filtered.
> Java proxy uses it's own Host: for the host header instead of the remote host
> -----------------------------------------------------------------------------
>
> Key: SHINDIG-149
> URL: https://issues.apache.org/jira/browse/SHINDIG-149
> Project: Shindig
> Issue Type: Bug
> Components: Gadgets Server - Java
> Reporter: Paul Lindner
>
> The following request:
> http://11423068301.o.hi5modules.com/gadgets/proxy?url=http://fishgadget.googlecode.com/svn/trunk/swfobject.js
> Results in an incorrect set of headers sent to the remote host:
> 172.016.185.001.18127-066.102.001.082.00080: GET /svn/trunk/swfobject.js HTTP/1.1
> cookie: __utma=170362720.1334816416.1206391328.1206391328.1206391328.1; __utmc=170362720; __utmz=170362720.1206391328.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)cache-control: max-age=0
> connection: keep-alive
> host: 11423068301.o.hi5modules.com
> accept-language: en-us,en;q=0.5
> accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> user-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5pre) Gecko/2008032204 Minefield/3.0b5pre
> keep-alive: 300
> accept-encoding: gzip,deflate
> x-cluster-client-ip: 71.5.1.212
> accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> The Host header should be fishgadget.googlecode.com, not 11423068301.o.hi5modules.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SHINDIG-149) Java proxy uses it's own Host: for
the host header instead of the remote host
Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Lindner resolved SHINDIG-149.
----------------------------------
Resolution: Fixed
tested as working.
> Java proxy uses it's own Host: for the host header instead of the remote host
> -----------------------------------------------------------------------------
>
> Key: SHINDIG-149
> URL: https://issues.apache.org/jira/browse/SHINDIG-149
> Project: Shindig
> Issue Type: Bug
> Components: Gadgets Server - Java
> Reporter: Paul Lindner
> Assignee: Paul Lindner
>
> The following request:
> http://11423068301.o.hi5modules.com/gadgets/proxy?url=http://fishgadget.googlecode.com/svn/trunk/swfobject.js
> Results in an incorrect set of headers sent to the remote host:
> 172.016.185.001.18127-066.102.001.082.00080: GET /svn/trunk/swfobject.js HTTP/1.1
> cookie: __utma=170362720.1334816416.1206391328.1206391328.1206391328.1; __utmc=170362720; __utmz=170362720.1206391328.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)cache-control: max-age=0
> connection: keep-alive
> host: 11423068301.o.hi5modules.com
> accept-language: en-us,en;q=0.5
> accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> user-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5pre) Gecko/2008032204 Minefield/3.0b5pre
> keep-alive: 300
> accept-encoding: gzip,deflate
> x-cluster-client-ip: 71.5.1.212
> accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> The Host header should be fishgadget.googlecode.com, not 11423068301.o.hi5modules.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.