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 385E6D11C for ; Wed, 20 Jun 2012 17:36:23 +0000 (UTC) Received: (qmail 65692 invoked by uid 500); 20 Jun 2012 17:36:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 65615 invoked by uid 500); 20 Jun 2012 17:36:21 -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 65605 invoked by uid 99); 20 Jun 2012 17:36:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 17:36:21 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of gregor@martynus.net does not designate 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bk0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 17:36:12 +0000 Received: by bkcjc3 with SMTP id jc3so7523258bkc.11 for ; Wed, 20 Jun 2012 10:35:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=Usa29GGz/YGO1Rh7M9OJFk8v9VtqzuMdFkJiPAmEGIE=; b=DKVm49Tw3a0EoG8licOvVooyRhS6qAE3qubtx//mgvMWpPq8LxAKhWHrx0du5HPg+w ciPmmhYlY0ULyLRkZyU+RQLS3uLp/8ZrA6y1zKJtQqF2c/fxjGe+NRfydKXtlne+/2Y/ h5VEifWuxa2OBQuPrCRUB7oUap0p/IswuZXfuDIiweZBKSBDCjhw4MKyL6ulw6uzu95D bkOn77ob2KrZyZLCRjsM8N+unISKn0tTU5JaZ1B1JtIVF6emJqZYJ2Yf2zanx7MtkUSZ ZQ/ZJvb0WBYtx68O2wdZH2Qv2a0OdCAeM9UGrc+aZZ85rQHhB+2e5Qrh0wMqjoj+gy5L GFAQ== Received: by 10.204.151.130 with SMTP id c2mr10754174bkw.125.1340213751320; Wed, 20 Jun 2012 10:35:51 -0700 (PDT) Received: from [192.168.1.44] (41-122.198-178.cust.bluewin.ch. [178.198.122.41]) by mx.google.com with ESMTPS id n19sm28751115bkv.14.2012.06.20.10.35.49 (version=SSLv3 cipher=OTHER); Wed, 20 Jun 2012 10:35:50 -0700 (PDT) Date: Wed, 20 Jun 2012 19:35:47 +0200 From: Gregor Martynus To: user@couchdb.apache.org Message-ID: In-Reply-To: References: <2A859DFB68514400AC5EC0F756671880@martynus.net> Subject: Re: deleting own user account X-Mailer: sparrow 1.6.1 (build 1081.52) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4fe209f3_57fc4fbb_de" X-Gm-Message-State: ALoCoQndz+ZPd0JqCrYKCbE79hFg5MODrLTjvEvKbMdEkV3kbLufnwmtbt+gwUvLLGVh5EmLw0vJ --4fe209f3_57fc4fbb_de Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Robert, I get a 200 when I GET the same path. When I'm signed in as "test" in futon and delete my own /_users doc, I get a 404 as well. Is that not the case for you? I'm on couchDB 1.2, tested locally and on IrisCouch -- Gregor Martynus On Wednesday, 20. June 2012 at 18:45, Robert Newson wrote: > > Do you get a 200 when you GET that same doc id? I suspect you get a 404. If so, check you have the right id, perhaps you need to escape some fields. Better, try deleting it from Futon which handles the escaping for you. > > If you're deleting an admin user, then you need to modify your .ini files (preferably via /_config/admins) instead. > > B. > > On 20 Jun 2012, at 17:28, Gregor Martynus wrote: > > > I'm quite sure that this worked before, but doesn't seem to work anymore. > > > > Let's say I have a user account "test" and am signed in as "test". > > The _rev number of users/org.couchdb.user:test is '1-234' > > > > Shouldn't I be able to delete my own account with > > DELETE /users/org.couchdb.user:test?rev=1-234 > > ? > > > > I get a 404 response, but am still signed in as test > > > > The same happens when I try to PUT the document with _deleted: true ... > > > > Any idea? > > > > -- > > Gregor > > > > > --4fe209f3_57fc4fbb_de--