You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "David Richardson (JIRA)" <ji...@apache.org> on 2010/02/12 18:11:29 UTC
[jira] Created: (COUCHDB-651) Allow URL rewriting to be specified
as a user-defined function instead of a regex pattern
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.
[jira] Commented: (COUCHDB-651) Allow URL rewriting to be specified
as a user-defined function instead of a regex pattern
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833082#action_12833082 ]
Paul Joseph Davis commented on COUCHDB-651:
-------------------------------------------
Theoretically this would be ok, but a user defined function would require a view server round trip for every request which would bring the pain in terms of performance.
> 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.
[jira] Updated: (COUCHDB-651) Allow URL rewriting to be specified
as a user-defined function instead of a regex pattern
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-651:
--------------------------------------
Skill Level: Regular Contributors Level (Easy to Medium)
> 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.