couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (COUCHDB-1159) Rewrite Handler do not work together with source URL having extension
Date Fri, 28 Jun 2013 02:23:20 GMT

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

Alexander Shorin closed COUCHDB-1159.
-------------------------------------

    Resolution: Fixed

Fixed in [c1b74df|https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=c1b74df08076cd850617e500163fdb5fc8d55f3a].
Note that's rewrite syntax a bit different.
                
> Rewrite Handler do not work together with source URL having extension
> ---------------------------------------------------------------------
>
>                 Key: COUCHDB-1159
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1159
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>         Environment: 1.0.2
>            Reporter: Francis Chong
>              Labels: http, rewrite,, url,
>
> URL rewrite work well for URL with path, such as ...
> [
>   {
>       "from": ":a/:b/:c",
>       "to": "_view/test",
>       "method": "GET",
>       "query": {
>         "key": [":a", ":b", ":c"]
>       }
>   }
> ]
> However it cannot handle URL with extension: 
> [
>   {
>       "from": ":a/:b/:c.json",
>       "to": "_view/test",
>       "method": "GET",
>       "query": {
>         "key": [":a", ":b", ":c"]
>       }
>   }
> ]
> It tries to rewrite ":c.json" instead of ":c", and it seems there are no workaround to
use URL with extension.

--
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

Mime
View raw message