couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COUCHDB-219) Futon JS test for 'config' fails when CouchDB is served behind reverse proxy on default port (80)
Date Sat, 24 Jan 2009 12:29:59 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Lehnardt closed COUCHDB-219.
--------------------------------

    Resolution: Duplicate

Duplicate of COUCHDB-213. Closed in r737346.

> Futon JS test for 'config' fails when CouchDB is served behind reverse proxy on default
port (80)
> -------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-219
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-219
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Test Suite
>         Environment: Apache reverse proxy in front of CouchDB
>            Reporter: Glenn Rempe
>            Priority: Minor
>
> The config test in the CouchDB JS test suite has a hardcoded assumption that the server
port will always be available for use in the test.  However, when CDB is hosted behind a reverse
proxy running on default port 80 there will be no such port that is part of the URL.
> Although not tested I assume this will also fail when behind an https (TLS) proxy URL.
> In this case the test fails showing:
> Assertion failed: config.httpd.port == port
> The offending line in this test is:
> var port = CouchDB.host.split(":").pop();
> Suggested fix would be to test whether the URL contains a ':'.  If not, then port should
be set to 80 or 443 depending on whether the url is an http/https url.
> All other tests pass when behind a properly configured proxy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message