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 CF4CD732D for ; Thu, 3 Nov 2011 22:53:53 +0000 (UTC) Received: (qmail 99462 invoked by uid 500); 3 Nov 2011 22:53:53 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 99402 invoked by uid 500); 3 Nov 2011 22:53:53 -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 99393 invoked by uid 99); 3 Nov 2011 22:53:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 22:53:53 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Thu, 03 Nov 2011 22:53:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4B5513306D0 for ; Thu, 3 Nov 2011 22:53:32 +0000 (UTC) Date: Thu, 3 Nov 2011 22:53:32 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28Commented=29_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: <1883023077.57660.1320360812309.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1918553640.57527.1320357452246.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3) 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-468?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D131435= 77#comment-13143577 ]=20 Florian M=C3=BCller commented on CMIS-468: ------------------------------------- It has been fixed in Alfresco 3.4.4 and Alfresco 4. =20 > Error when creating or updating a DateTime property when using dotCmis Li= brary (0.3) > -------------------------------------------------------------------------= ----------- > > Key: CMIS-468 > URL: https://issues.apache.org/jira/browse/CMIS-468 > Project: Chemistry > Issue Type: Bug > Components: dotcmis > Affects Versions: DotCMIS 0.3 > Environment: Alfresco 3.4 community edition, Client: C#, .net 3.5= , dotCmis > Reporter: Jeremy Turpin > Labels: dotcmis > > This might not be a dotCmis bug, but only be a "jeremy" bug, sorry if it = is. =20 > When I create a document that has a property I re= ceive an error. > - I can create the document and set the date property just fine when usin= g Alfresco explorer. > - I can create a document and update properties using dotCmis that don't = use a date property. > - I have tried passing the argument in as a .NET DateTime object, and als= o simply as a "properly" formatted string (example: 2011-11-02T11:37:00.000= -05:00 ) =20 > - I can create or update the same object RESTfully. > --Sample return element (the one I want to create/update using dotCmis) f= rom RESTful call: > > 2011-11-02T11:37:00.000-05:00 > > --Sample .net code for upload using dotCmis: > (There's obviously more to this code, but the flow of it is:) > //Put values into properties and upload them. > IDictionary properties =3D new Dictionary(); > properties.Add(PropertyIds.Name, formattedName); > properties.Add(PropertyIds.ObjectTypeId, tagTypeId); > foreach (KeyValuePair pair in selectedTagsToU= pload) > { > properties.Add(pair.Key, pair.Value); > } > ContentStream contentStream =3D new ContentStream > { > FileName =3D formattedName, > MimeType =3D "application/pdf", > Length =3D document.Length, > Stream =3D new MemoryStream(document) > }; > folder.CreateDocument(properties, contentStream, null); > --As for the DateTime objects, they are contained in the "selectedTagsToU= pload" > SelectedTagsToUpload have broken for [cmis:id, DateTimeObj] and also for = [cmis:id, 2011-11-02T11:37:00.000-05:00] > -Any help would be greatly appreciated. And if you need more information= or clarification I'd be happy to provide it. Thank you. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira