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 CD8354179 for ; Wed, 8 Jun 2011 14:19:07 +0000 (UTC) Received: (qmail 84161 invoked by uid 500); 8 Jun 2011 14:19:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 84011 invoked by uid 500); 8 Jun 2011 14:19:06 -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 84003 invoked by uid 99); 8 Jun 2011 14:19:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 14:19:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 14:18:58 +0000 Received: by bwj24 with SMTP id 24so661463bwj.11 for ; Wed, 08 Jun 2011 07:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=i20szv8d11/+IfU98aj6HhwXmksTLa+cVhqPtOR5TqY=; b=bCE68v4B99ZL7EzCTlxf+uZuF+Pe/rwbwHqBzfwMF67j6vtAsd+czCsZk3z9TrwFJ6 EMAOQZuBGprr82ASIGB56SgKkshze/xyq2ZWPxAwC3qiCm+OSalf0WflCq9INXgtzpOO EnZqivOJ3cjAGfFIbVkXzQvE9makGSLrBNRwY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=OgotzWH5EQerfczXUKcPwPckCMSbVB9AD66zDTuHldqyF1qoYQc+/k8NjCQpo6nlbJ W4CJKKr8ATb6DD6xf/F78znBc8fD+68gytDtv/VWIn91v2G8R0u0+zr9P1Px8LuFT2VL VIbgQfnenqh6fKOE0hH/AshuQxYi9UbY6jd04= MIME-Version: 1.0 Received: by 10.204.20.147 with SMTP id f19mr618794bkb.163.1307542717603; Wed, 08 Jun 2011 07:18:37 -0700 (PDT) Received: by 10.204.65.17 with HTTP; Wed, 8 Jun 2011 07:18:37 -0700 (PDT) In-Reply-To: References: <4DEEE290.3030103@gmail.com> Date: Wed, 8 Jun 2011 15:18:37 +0100 Message-ID: Subject: Re: Breaking changes 1.1.0 From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'd remove the existing .beam files (or move them aside, if you prefer) and do 'make install' again, which will copy just the .beam files you need back in there. B. On 8 June 2011 13:44, Patrick Barnes wrote: > Bother, I have done exactly that. > > How to fix it, then? > (My installations were to --[exec-]prefix=3D/, with 1.0.2 and 1.1.0 defau= lts > otherwise ) > > -Patrick > On Jun 8, 2011 6:51 PM, "Robert Newson" wrote: >> The id you are using looks valid to me. >> >> Did you install CouchDB 1.1.0 over the top of an existing CouchDB >> installation? If so, you have mingled two conflicting versions of our >> modules together, which is going to cause function_clause errors all >> over the place. >> >> B. >> >> On 8 June 2011 03:46, Patrick Barnes wrote: >>> Having just updated to 1.1.0, I think I've been caught by the one > breaking >>> change listed; >>> >>> * Document id's are now validated during PUT. This means that some PUT >>> requests will fail that previously succeeded. >>> >>> The user object I'm trying to store is: >>> |{ >>> ||"|_id|": |"org.couchdb.user:test_appdata_user"|| >>> |"|salt|": |"91ae270048fae61ebcff7730e5014150a529d082"|, >>> "|password_sha|": |"968091cd9ce21a0fca52232b85f9971c925801bd"|, >>> "|name|": |"test_appdata_user"|, >>> "|type|": |"user"|, >>> "|roles|": |[ >>> |"cgm_view"|, >>> |"cgm_store_appdata"| >>> ]|, >>> } >>> >>> |and it fails equally in Futon or my own code. >>> || >>> In Futon the dialog is: >>> |Error: unknown_error| >>> |function_clause| >>> || >>> ||The breaking changes info wasn't helpful as to what was happening, or >>> why... >>> What is happening here? >>> >>> -Patrick >>> >>> >>> Logs are: >>> >>> [Wed, 08 Jun 2011 02:27:48 GMT] [debug] [<0.761.0>] 'PUT' >>> /_users/org.couchdb.user%3Atest_appdata_user {1,1} from "127.0.0.1" >>> Headers: [{'Accept',"application/json,text/html,text/plain,*/*"}, >>> =A0 =A0 =A0 =A0 =A0{'Authorization',"Basic YWRtaW46bWluaW9u"}, >>> =A0 =A0 =A0 =A0 =A0{'Content-Length',"234"}, >>> =A0 =A0 =A0 =A0 =A0{'Content-Type',"application/json"}, >>> =A0 =A0 =A0 =A0 =A0{'Host',"localhost:5984"}] >>> [Wed, 08 Jun 2011 02:27:48 GMT] [debug] [<0.761.0>] OAuth Params: [] >>> [Wed, 08 Jun 2011 02:27:48 GMT] [error] [<0.761.0>] function_clause err= or > in >>> HTTP request >>> [Wed, 08 Jun 2011 02:27:48 GMT] [info] [<0.761.0>] Stacktrace: >>> [{mochiweb_request,get, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [scheme= , >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{moc= hiweb_request,#Port<0.2316>,'PUT', >>> >>> "/_users/org.couchdb.user%3Atest_appdata_user", >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {1,= 1}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {5, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= {"authorization", >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= {'Authorization', >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0"Basic YWRtaW46bWluaW9u"}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= {"accept", >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0{'Accept', >>> >>> "application/json,text/html,text/plain,*/*"}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0nil,nil}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= {"host", >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0{'Host',"localhost:5984"}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0{"content-type", >>> > {'Content-Type',"application/json"}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 {"content-length", >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0{'Content-Length',"234"}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0nil,nil}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 nil}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0nil}}}}]}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{couch_h= ttpd,absolute_uri,2}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{couch_h= ttpd_db,db_doc_req,3}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{couch_h= ttpd_db,do_db_req,2}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{couch_h= ttpd,handle_request_int,5}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{mochiwe= b_http,headers,5}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{proc_li= b,init_p_do_apply,3}] >>> [Wed, 08 Jun 2011 02:27:48 GMT] [info] [<0.761.0>] 127.0.0.1 - - 'PUT' >>> /_users/org.couchdb.user%3Atest_appdata_user 500 >>> [Wed, 08 Jun 2011 02:27:48 GMT] [debug] [<0.761.0>] httpd 500 error >>> response: >>> =A0{"error":"unknown_error","reason":"function_clause"} >>> >