You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Dave Cottlehuber (JIRA)" <ji...@apache.org> on 2012/10/25 01:06:12 UTC
[jira] [Closed] (COUCHDB-1563) Bug in test suite
[ https://issues.apache.org/jira/browse/COUCHDB-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Cottlehuber closed COUCHDB-1563.
-------------------------------------
Resolution: Fixed
Fix Version/s: (was: 1.4)
1.3
Assignee: Dave Cottlehuber
fixed in 07a6af222 with thanks!
> Bug in test suite
> -----------------
>
> Key: COUCHDB-1563
> URL: https://issues.apache.org/jira/browse/COUCHDB-1563
> Project: CouchDB
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 1.2
> Reporter: Keks Keksov
> Assignee: Dave Cottlehuber
> Priority: Trivial
> Fix For: 1.3
>
> Attachments: patch.txt
>
>
> My nginx.conf is a bit different from suggested at your site - it allows to pass tests with slashes in db name test_suite_db%2Fwith_slashes
> <code>
> location = /db {
> include proxy.conf;
> proxy_redirect off;
> proxy_pass http://192.168.0.13:5984/;
> break;
> }
> location ^~ /db/ {
> include proxy.conf;
> proxy_redirect off;
> if ( $request_uri ~ ^/db/(.*) ) { # this line of code prevents nginx from decoding original uri
> proxy_pass http://192.168.0.13:5984/$1;
> }
> break;
> }
> </code>
> There is a problem in test suites scripts, sometimes urlPrefix is missing from request. For example in the following fragment from content_negotiation test
> <code>
> // with no accept header
> var req = CouchDB.newXhr();
> req.open("GET", "/test_suite_db/", false);
> req.send("");
> TEquals("text/plain; charset=utf-8", req.getResponseHeader("Content-Type"));
> </code>
> as a result of it the false GET request is sent - http://mysite/test_suit_db/ instead of http://mysite/db/test_suit_db/ and test fails.
--
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