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 5FBBEEFBF for ; Tue, 15 Jan 2013 17:48:37 +0000 (UTC) Received: (qmail 45966 invoked by uid 500); 15 Jan 2013 17:48:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 45918 invoked by uid 500); 15 Jan 2013 17:48:35 -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 45903 invoked by uid 99); 15 Jan 2013 17:48:35 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 17:48:35 +0000 Received: from localhost (HELO mail-vc0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 17:48:35 +0000 Received: by mail-vc0-f180.google.com with SMTP id p16so396819vcq.39 for ; Tue, 15 Jan 2013 09:48:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.153.80 with SMTP id j16mr104437189vcw.21.1358272114341; Tue, 15 Jan 2013 09:48:34 -0800 (PST) Received: by 10.52.68.209 with HTTP; Tue, 15 Jan 2013 09:48:34 -0800 (PST) In-Reply-To: <1B96FDDF-E05C-4A3A-B2C7-FFC03BA581CF@couchbase.com> References: <1B96FDDF-E05C-4A3A-B2C7-FFC03BA581CF@couchbase.com> Date: Tue, 15 Jan 2013 12:48:34 -0500 Message-ID: Subject: Re: Did BigCouch recently change sequence IDs to be arrays? From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Yes, that's true. An update_seq is always valid JSON and should be treated opaquely, though a change does flush out bugs in client libraries and such. B. On 15 January 2013 12:32, Jens Alfke wrote: > I just got a bug report about TouchDB failing to sync with BigCouch. From= the symptoms, it appears that BigCouch has recently changed its sequence I= Ds (as returned from _changes) from strings to arrays. Is that true? > > I don=92t have a local BigCouch to test against currently, but I just con= firmed that Cloudant is still using strings for sequence IDs; they look lik= e this: >> "last_seq":"5865-g1AAAADzeJzLYWBgYMlgTmFQSElKzi9KdUhJMtbLTS3KLElMT9VLzsk= vTUnMK9HLSy3JAapkSmRIsv___39WEgMD61ZUbeZ4tCU5AMmkepjOw6g6TfDozGMBkgwNQAqoeT= 9Y913i7YXoPgDRDbF7ShYAyj1QSA=94 > > If BigCouch is now using arrays, then I need to fix my code to serialize = them properly in the =93?since=94 parameter to the _changes feed URL. But t= his is a bit confusing =97 if I JSON-encode the sequence ID, then IDs that = are strings will now have double-quotes around them, and I don=92t know if = Cloudant will understand that. Do I need to special-case based on the type,= i.e. stripping the quotes if it=92s a string? > > =97Jens