You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Andreas Baumann (JIRA)" <ji...@codehaus.org> on 2009/10/20 13:59:26 UTC
[jira] Created: (MRM-1268) X-Forwarded-Host handling when having
more than one proxy
X-Forwarded-Host handling when having more than one proxy
---------------------------------------------------------
Key: MRM-1268
URL: http://jira.codehaus.org/browse/MRM-1268
Project: Archiva
Issue Type: Bug
Components: web application
Affects Versions: 1.2.2
Environment: Linux Centos 5.3, 64-bit, JRE 1.6.0_07
Reporter: Andreas Baumann
Priority: Minor
Attachments: ContextUtils.java
When requesting pages over more than one proxy, I see in the "Administration"/"Repositories" view:
WebDAV URL https://proxy1.xxx.com, proxy2.xx.com/archiva/repository/internal/
Both proxies run apache mod_proxy (http).
Taking just the outermost proxy in the 'X-Forwarded-Host' HTTP field (first one) in
'archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/util/ContextUtils.java
solved the problem for me (see attached changed ContextUtils.java).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MRM-1268) X-Forwarded-Host handling when having
more than one proxy
Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRM-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maria Odea Ching closed MRM-1268.
---------------------------------
Resolution: Fixed
Thanks for the patch Andreas :) Patch applied to trunk [-r898212|http://svn.apache.org/viewvc?revision=898212&view=revision]
> X-Forwarded-Host handling when having more than one proxy
> ---------------------------------------------------------
>
> Key: MRM-1268
> URL: http://jira.codehaus.org/browse/MRM-1268
> Project: Archiva
> Issue Type: Bug
> Components: web application
> Affects Versions: 1.2.2
> Environment: Linux Centos 5.3, 64-bit, JRE 1.6.0_07
> Reporter: Andreas Baumann
> Assignee: Maria Odea Ching
> Priority: Minor
> Fix For: 1.3
>
> Attachments: ContextUtils.java
>
>
> When requesting pages over more than one proxy, I see in the "Administration"/"Repositories" view:
> WebDAV URL https://proxy1.xxx.com, proxy2.xx.com/archiva/repository/internal/
> Both proxies run apache mod_proxy (http).
> Taking just the outermost proxy in the 'X-Forwarded-Host' HTTP field (first one) in
> 'archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/util/ContextUtils.java
> solved the problem for me (see attached changed ContextUtils.java).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (MRM-1268) X-Forwarded-Host handling when having
more than one proxy
Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRM-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maria Odea Ching reassigned MRM-1268:
-------------------------------------
Assignee: Maria Odea Ching
> X-Forwarded-Host handling when having more than one proxy
> ---------------------------------------------------------
>
> Key: MRM-1268
> URL: http://jira.codehaus.org/browse/MRM-1268
> Project: Archiva
> Issue Type: Bug
> Components: web application
> Affects Versions: 1.2.2
> Environment: Linux Centos 5.3, 64-bit, JRE 1.6.0_07
> Reporter: Andreas Baumann
> Assignee: Maria Odea Ching
> Priority: Minor
> Fix For: 1.3
>
> Attachments: ContextUtils.java
>
>
> When requesting pages over more than one proxy, I see in the "Administration"/"Repositories" view:
> WebDAV URL https://proxy1.xxx.com, proxy2.xx.com/archiva/repository/internal/
> Both proxies run apache mod_proxy (http).
> Taking just the outermost proxy in the 'X-Forwarded-Host' HTTP field (first one) in
> 'archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/util/ContextUtils.java
> solved the problem for me (see attached changed ContextUtils.java).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MRM-1268) X-Forwarded-Host handling when having
more than one proxy
Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRM-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maria Odea Ching updated MRM-1268:
----------------------------------
Fix Version/s: (was: 1.2.3)
1.3
> X-Forwarded-Host handling when having more than one proxy
> ---------------------------------------------------------
>
> Key: MRM-1268
> URL: http://jira.codehaus.org/browse/MRM-1268
> Project: Archiva
> Issue Type: Bug
> Components: web application
> Affects Versions: 1.2.2
> Environment: Linux Centos 5.3, 64-bit, JRE 1.6.0_07
> Reporter: Andreas Baumann
> Priority: Minor
> Fix For: 1.3
>
> Attachments: ContextUtils.java
>
>
> When requesting pages over more than one proxy, I see in the "Administration"/"Repositories" view:
> WebDAV URL https://proxy1.xxx.com, proxy2.xx.com/archiva/repository/internal/
> Both proxies run apache mod_proxy (http).
> Taking just the outermost proxy in the 'X-Forwarded-Host' HTTP field (first one) in
> 'archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/util/ContextUtils.java
> solved the problem for me (see attached changed ContextUtils.java).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MRM-1268) X-Forwarded-Host handling when having
more than one proxy
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRM-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MRM-1268:
------------------------------
Fix Version/s: 1.2.3
> X-Forwarded-Host handling when having more than one proxy
> ---------------------------------------------------------
>
> Key: MRM-1268
> URL: http://jira.codehaus.org/browse/MRM-1268
> Project: Archiva
> Issue Type: Bug
> Components: web application
> Affects Versions: 1.2.2
> Environment: Linux Centos 5.3, 64-bit, JRE 1.6.0_07
> Reporter: Andreas Baumann
> Priority: Minor
> Fix For: 1.2.3
>
> Attachments: ContextUtils.java
>
>
> When requesting pages over more than one proxy, I see in the "Administration"/"Repositories" view:
> WebDAV URL https://proxy1.xxx.com, proxy2.xx.com/archiva/repository/internal/
> Both proxies run apache mod_proxy (http).
> Taking just the outermost proxy in the 'X-Forwarded-Host' HTTP field (first one) in
> 'archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/util/ContextUtils.java
> solved the problem for me (see attached changed ContextUtils.java).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira