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/26 00:51:20 UTC
[jira] [Updated] (COUCHDB-651) Allow URL rewriting to be specified
as a user-defined function instead of a regex pattern
[ https://issues.apache.org/jira/browse/COUCHDB-651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Shorin updated COUCHDB-651:
-------------------------------------
Component/s: HTTP Interface
> Allow URL rewriting to be specified as a user-defined function instead of a regex pattern
> -----------------------------------------------------------------------------------------
>
> Key: COUCHDB-651
> URL: https://issues.apache.org/jira/browse/COUCHDB-651
> Project: CouchDB
> Issue Type: Improvement
> Components: HTTP Interface
> Affects Versions: 0.11
> Reporter: David Richardson
> Labels: authorization
>
> URL rewriting is currently specified with a regular expression. A user-defined function would make this more flexible and has the potential to be much clearer than complex regex patterns. A regex pattern is a degenerate case of the user-specified function.
> One (but not the only) usage case is role-based document selection.
> The role is retrieved from userctx and a startkey/endkey component is appended to the URL to limit the scope of available documents.
--
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