Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C3F410BD7 for ; Tue, 1 Apr 2014 11:36:22 +0000 (UTC) Received: (qmail 37537 invoked by uid 500); 1 Apr 2014 11:36:20 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 37334 invoked by uid 500); 1 Apr 2014 11:36:19 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 37308 invoked by uid 99); 1 Apr 2014 11:36:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 11:36:15 +0000 Date: Tue, 1 Apr 2014 11:36:15 +0000 (UTC) From: "Sergey Shcherbovich (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CMIS-776) ObjectType#getExtensions() can't handle List when using browser binding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sergey Shcherbovich created CMIS-776: ---------------------------------------- Summary: ObjectType#getExtensions() can't handle List when using browser binding Key: CMIS-776 URL: https://issues.apache.org/jira/browse/CMIS-776 Project: Chemistry Issue Type: Bug Components: opencmis-server Affects Versions: OpenCMIS 0.10.0 Reporter: Sergey Shcherbovich We need to transfer List with several CmisExtensionElement elements. Xxml-based bindigs (e.g. AtomPub) handles List like: {noformat} P:sys:localized P:cm:generalclassifiable P:cm:author {noformat} it can handle and transfer multiple entries with same CmisExtensionElement.getName(). But present JSON-based bindig implementation can't transfer multiple entries with same key (JSONObject uses CmisExtensionElement.getName as a key): {noformat} "mandatoryAspects": { "mandatoryAspect":"P:cm:author" } {noformat} Assuming issue is around here: {code:title=org.apache.chemistry.opencmis.commons.impl.JSONConverter.convertExtensionList} for (CmisExtensionElement ext : extensionList) { if (ext == null) { continue; } if (ext.getChildren() != null && !ext.getChildren().isEmpty()) { result.put(ext.getName(), convertExtensionList(ext.getChildren())); } else { result.put(ext.getName(), ext.getValue()); // line 2647 } } {code} Out software uses both bindings to service repository. But we can't transfer List objects correctly. We use 0.10.0 library. -- This message was sent by Atlassian JIRA (v6.2#6252)