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 979D4874E for ; Fri, 9 Sep 2011 03:15:35 +0000 (UTC) Received: (qmail 96290 invoked by uid 500); 9 Sep 2011 03:15:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 95436 invoked by uid 500); 9 Sep 2011 03:15:18 -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 95425 invoked by uid 99); 9 Sep 2011 03:15:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 03:15:13 +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 (athena.apache.org: domain of maxosmail@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 03:15:07 +0000 Received: by vxi19 with SMTP id 19so1841560vxi.11 for ; Thu, 08 Sep 2011 20:14:46 -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:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=ADgQHt38oStjj59QJCP1oB4Ll/I7Q1Xie2baMlYxr0I=; b=Xd91/kfYdDVSg6YJNrOB+pllKc0ZZnzgoqH4bbIjqWD3C87ZOXzvxhi8SOIiBW38jP x+jML3sdC/DqiFDCg3UyDYuTwFKfE4tqCPtEddvwRvA3m8ca0yG+0IM1NAv2YNZEXTKZ SFfl9ZeIrC4lc65ohEa1aoec1ge3QmXP2bsJk= Received: by 10.52.90.73 with SMTP id bu9mr189802vdb.71.1315538086239; Thu, 08 Sep 2011 20:14:46 -0700 (PDT) MIME-Version: 1.0 Sender: maxosmail@gmail.com Received: by 10.52.169.131 with HTTP; Thu, 8 Sep 2011 20:14:26 -0700 (PDT) In-Reply-To: References: From: Max Ogden Date: Thu, 8 Sep 2011 20:14:26 -0700 X-Google-Sender-Auth: 63pbjfC2z6tP5rOlsbKIWswdLn0 Message-ID: Subject: Re: "Only admin can delete documents on this database" - but no validation function To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf307f354c519f5004ac799465 --20cf307f354c519f5004ac799465 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 nic= ht > >> gel=C3=B6scht werden"); > >> } > >> }); > >> }, > >> error: function() { > >> MeldungEinzeilig("Eine Beobachtung mit der ID: " + docId + " wurde nic= ht > >> gefunden"); > >> } > >> }); > >> } > >> > >> Today I get this error: {"error":"case_clause","reason":"Only admin ca= n > >> delete documents on this database."} > >> > >> I am a little stumped since I don't (jet) have a validation function i= n > 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 > >> > --20cf307f354c519f5004ac799465--