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 5FFA46B59 for ; Fri, 3 Jun 2011 10:12:29 +0000 (UTC) Received: (qmail 26094 invoked by uid 500); 3 Jun 2011 10:12:29 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 26051 invoked by uid 500); 3 Jun 2011 10:12:28 -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 26043 invoked by uid 99); 3 Jun 2011 10:12:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 10:12:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 10:12:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5F8ACF2201 for ; Fri, 3 Jun 2011 10:11:47 +0000 (UTC) Date: Fri, 3 Jun 2011 10:11:47 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: <89670431.65358.1307095907387.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1266400350.63700.1307037828100.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CMIS-380) DotCMIS drops choices returned from server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-380?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D130432= 77#comment-13043277 ]=20 Florian M=C3=BCller commented on CMIS-380: ------------------------------------- That looks like a .NET Framework issue. XmlSerializer.Deserialize() does no= t handle derived classes correctly. The choices end up as CMIS extensions. = (Check p.Extensions when you debug.) I'll try to find a workaround. > DotCMIS drops choices returned from server > ------------------------------------------ > > Key: CMIS-380 > URL: https://issues.apache.org/jira/browse/CMIS-380 > Project: Chemistry > Issue Type: Bug > Components: dotcmis > Affects Versions: DotCMIS 0.3 > Reporter: Nicolas Lee > Assignee: Florian M=C3=BCller > Fix For: DotCMIS 0.3 > > Attachments: response.xml > > > 1. Connect using AtomPub binding > 2. Get an ISessionfrom an IRepository > 3. Use Binding from session: private ICmisBinding Binding { get { return = _session.Binding; } } > 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService()= .GetTypeDefinition(repositoryId, typeId, null); > 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.Prop= ertyDefinitions: > public IPropertyDefinition GetPropertyDefinitionById(String id) > { > foreach (IPropertyDefinition p in propertyDefinitions) > { > if (p.Id.Equals(id)) > return p; > } > return null; > } > 6. At this point I go into debug mode and look at the IPropertyDefinition= p and see that Choices =3D=3D null. > See attachment for sample response.xml -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira