couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gert cuykens (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-1478) http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png
Date Sat, 05 May 2012 23:05:49 GMT
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

        

Mime
View raw message