You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Alexander Shorin (JIRA)" <ji...@apache.org> on 2013/06/28 04:23:20 UTC
[jira] [Closed] (COUCHDB-1159) Rewrite Handler do not work together
with source URL having extension
[ 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