You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "gert cuykens (JIRA)" <ji...@apache.org> on 2012/05/06 01:05:49 UTC

[jira] [Created] (COUCHDB-1478) http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png

gert cuykens created COUCHDB-1478:
-------------------------------------

             Summary: http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png
                 Key: COUCHDB-1478
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1478
             Project: CouchDB
          Issue Type: New Feature
          Components: Database Core
    Affects Versions: 1.3
            Reporter: gert cuykens
            Priority: Trivial


To my knowledge there is no easy way to validate a user for a single document attachment.
Can this be achieved by modifying the show handler so the following would return a attachment?

http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png

"shows":{"attachment":"function(doc,req){if(req.userCtx.name==doc._id)return {file:doc.attachment...}}"}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira