Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C60351031D for ; Tue, 2 Jul 2013 00:21:20 +0000 (UTC) Received: (qmail 80799 invoked by uid 500); 2 Jul 2013 00:21:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 80770 invoked by uid 500); 2 Jul 2013 00:21:20 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 80761 invoked by uid 99); 2 Jul 2013 00:21:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 00:21:20 +0000 Date: Tue, 2 Jul 2013 00:21:20 +0000 (UTC) From: "Alexander Shorin (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COUCHDB-1478) http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Shorin updated COUCHDB-1478: -------------------------------------- Component/s: (was: Database Core) View Server Support > 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: View Server Support > Affects Versions: 1.3 > Reporter: gert cuykens > Priority: Trivial > Labels: features > > 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 For more information on JIRA, see: http://www.atlassian.com/software/jira