Return-Path: Delivered-To: apmail-incubator-chemistry-commits-archive@minotaur.apache.org Received: (qmail 14640 invoked from network); 13 Jan 2010 19:01:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 19:01:38 -0000 Received: (qmail 8883 invoked by uid 500); 13 Jan 2010 19:01:38 -0000 Delivered-To: apmail-incubator-chemistry-commits-archive@incubator.apache.org Received: (qmail 8827 invoked by uid 500); 13 Jan 2010 19:01:38 -0000 Mailing-List: contact chemistry-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-commits@incubator.apache.org Received: (qmail 8813 invoked by uid 99); 13 Jan 2010 19:01:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 19:01:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 19:01:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4DF3023889EB; Wed, 13 Jan 2010 19:01:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r898886 - /incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java Date: Wed, 13 Jan 2010 19:01:15 -0000 To: chemistry-commits@incubator.apache.org From: fguillaume@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100113190115.4DF3023889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: fguillaume Date: Wed Jan 13 19:01:14 2010 New Revision: 898886 URL: http://svn.apache.org/viewvc?rev=898886&view=rev Log: Read base types without cmis:parentId Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java?rev=898886&r1=898885&r2=898886&view=diff ============================================================================== --- incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java (original) +++ incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java Wed Jan 13 19:01:14 2010 @@ -97,6 +97,9 @@ // TODO also for documents: versionable, contentStreamAllowed // TODO also for relationships: allowedSourceTypes, // allowedTargetTypes + if (!map.containsKey(CMIS.PARENT_ID.getLocalPart())) { + map.put(CMIS.PARENT_ID.getLocalPart(), null); + } for (QName qname : Arrays.asList( // CMIS.ID, // CMIS.LOCAL_NAME, // @@ -114,10 +117,9 @@ CMIS.INCLUDED_IN_SUPERTYPE_QUERY // )) { if (!map.containsKey(qname.getLocalPart())) { - throw new IllegalArgumentException( - "Invalid type definition: missing " - + qname.getPrefix() + ':' - + qname.getLocalPart()); + log.error("Invalid type definition for " + + map.get(CMIS.ID.getLocalPart()) + ", missing " + + qname.getPrefix() + ':' + qname.getLocalPart()); } } entry.init(map, pdefs);