Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A67B80E8 for ; Fri, 9 Sep 2011 18:29:00 +0000 (UTC) Received: (qmail 23520 invoked by uid 500); 9 Sep 2011 18:28:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 23319 invoked by uid 500); 9 Sep 2011 18:28:57 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 23311 invoked by uid 99); 9 Sep 2011 18:28:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 18:28:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alex.barbalex@gmail.com designates 209.85.212.54 as permitted sender) Received: from [209.85.212.54] (HELO mail-vw0-f54.google.com) (209.85.212.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 18:28:51 +0000 Received: by vws18 with SMTP id 18so1705026vws.27 for ; Fri, 09 Sep 2011 11:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=ZQ0Ws/3pTRwvLEDGVqeh7TYCVXcZyB9qC0hnG8oqev4=; b=VCpvcta/trjZgSa6SqOdO5uuGl8pkG6wWZoo4YlXpxecFSjOs8w5BslRiZK6t1TFW1 2BOW7k0GIlb3XnKrBKBER4RXyTVngcbEWdkAGBi4Cq4gQjMiq1HlP6DDFFqHAhBdKfZS aP4i4M6KHzRi54tAHoW6n4TuiyvhUQfPj4eH4= MIME-Version: 1.0 Received: by 10.52.71.145 with SMTP id v17mr114844vdu.322.1315592910114; Fri, 09 Sep 2011 11:28:30 -0700 (PDT) Sender: alex.barbalex@gmail.com Received: by 10.52.113.101 with HTTP; Fri, 9 Sep 2011 11:28:30 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Sep 2011 20:28:30 +0200 X-Google-Sender-Auth: 2L9CjIaP0LnRapkJn-AZrTm-ox0 Message-ID: Subject: Re: "Only admin can delete documents on this database" - but no validation function From: Alexander Gabriel To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf307c9eee1390c404ac8658a3 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307c9eee1390c404ac8658a3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Max Yes, that was the reason. I deleted that in _design/recline and deleting works again. Hope that was the solution. Thanks for helping! Alex 2011/9/9 Max Ogden > I'm guessing you installed Recline into that database recently > > https://github.com/maxogden/recline/blob/master/app.js#L120 > > validate_doc_updates are database-wide :) > > On Thu, Sep 8, 2011 at 8:34 AM, Alexander Gabriel > wrote: > > > Yes, that has been the same for the past months > > > > vom Handy gesendet > > Am 08.09.2011 17:23 schrieb "Neil Gibbons" : > > > Have you created a server admin? > > > > > > Neil > > > > > > > > > > > > On 8 September 2011 15:31, Alexander Gabriel wrote= : > > > > > >> Hi > > >> > > >> Until very recently I could delete documents from my database using > > this: > > >> > > >> > > > > > http://127.0.0.1:5984/evab-ch_barbalex_evab/39c7a5e62c7207b8d08d69c88c000= a6a?rev=3D1-0395dafa18bdde7afbbee439af1d1f7a > > >> > > >> produced from this code: > > >> function handleDelete(event) > > >> { > > >> // First open doc based on ID in order to get full document > > >> $db.openDoc(docId, { > > >> success: function(document) { > > >> // Then use the opened doc as reference to remove > > >> $db.removeDoc(document, { > > >> success: function() { > > >> window.open("../../BeobListe.html", target =3D '_self'); > > >> }, > > >> error: function() { > > >> MeldungEinzeilig("Die Beobachtung mit der ID: " + docId + " konnte > nicht > > >> gel=C3=B6scht werden"); > > >> } > > >> }); > > >> }, > > >> error: function() { > > >> MeldungEinzeilig("Eine Beobachtung mit der ID: " + docId + " wurde > nicht > > >> gefunden"); > > >> } > > >> }); > > >> } > > >> > > >> Today I get this error: {"error":"case_clause","reason":"Only admin > can > > >> delete documents on this database."} > > >> > > >> I am a little stumped since I don't (jet) have a validation function > in > > my > > >> database. > > >> In futon > security there are no admins and users or roles defined. > > >> > > >> What could be the reason for this error? > > >> > > >> Thanks for help. > > >> > > >> Alex > > >> > > > --20cf307c9eee1390c404ac8658a3--