couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Richardson (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-651) Allow URL rewriting to be specified as a user-defined function instead of a regex pattern
Date Fri, 12 Feb 2010 17:11:29 GMT
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
    Affects Versions: 0.11
            Reporter: David Richardson


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message