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 CA13ADCA6 for ; Fri, 28 Dec 2012 22:38:39 +0000 (UTC) Received: (qmail 4365 invoked by uid 500); 28 Dec 2012 22:38:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4331 invoked by uid 500); 28 Dec 2012 22:38:38 -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 4323 invoked by uid 99); 28 Dec 2012 22:38:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 22:38:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pauloedgarcastro@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 22:38:30 +0000 Received: by mail-wi0-f173.google.com with SMTP id hn17so8468842wib.6 for ; Fri, 28 Dec 2012 14:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=7IC8JLPsn66/uAwlMZQMxAGXSoTWNGtGTNYrZJv/eDQ=; b=i/Vr0R6Z56B1nVc5oabtvjxVIS0HVzFVb0AbiQVJxkKdg40NJJN2oTbBScEr34Hjrg P6+6qT6tcvzjmtfJFT77Tth3FD1Y/1/CODrlb6CbEAgk/eSV9q+2J85RyF3nIFcZbmb1 PEjEL4X+ffq2xrCg7+xKySQRgV4VY7Ioq6w+oz6L5VquwCEqE9YvDQqEN6xrZR1YqM+z ygvN++BJIYrtAQEaYMlp2RLdnWoLHTh9i36oTWP+SJtCMNn9Gk7K54ajuA5/VrbYE1PZ YmoTc5TOZjekB5EwOoiwZUDCLiG+iNFjAh6JORAqkpG6esF/nzcYa60t8JVTu26+L0sa Eilg== X-Received: by 10.194.85.234 with SMTP id k10mr55565748wjz.53.1356734288919; Fri, 28 Dec 2012 14:38:08 -0800 (PST) Received: from [192.168.1.68] ([188.250.152.185]) by mx.google.com with ESMTPS id bd7sm56917532wib.8.2012.12.28.14.38.06 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Dec 2012 14:38:07 -0800 (PST) Message-ID: <50DE1F4D.6060500@gmail.com> Date: Fri, 28 Dec 2012 22:38:05 +0000 From: Paulo Edgar Castro User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Bad special document member: __VERSION__ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I just bumped into this error in the subject. Upon further digging as per commit d748a328aec166047c81bcaf3dec6b0a885a2088, keys starting with an underscore are not accepted as valid... DB="http://127.0.0.1:5984/mydb" curl -X PUT $DB curl -H "Content-Type:application/json" -d '{"docs":[{"key":"baz","_name":"bazzel"},{"key":"bar","_name":"barry"}]}' -X POST $DB/_bulk_docs {"error":"doc_validation","reason":"Bad special document member: _name"} Some modules I'm using as part of a project try to serialize a whole class and some of the keys are serialized with underscores. This means that CouchDB stops being an option for storage. Is there a good reason for this design decision ? Couldn't the underscore keys be validated against the set of reserved words or similar ? Could this be something not serving a useful purpose ? Also, I couldn't find any meaningful caveat about this in the wiki ... Regards, PECastro