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 7AED1175BB for ; Fri, 3 Oct 2014 07:59:34 +0000 (UTC) Received: (qmail 46225 invoked by uid 500); 3 Oct 2014 07:59:34 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 46152 invoked by uid 500); 3 Oct 2014 07:59:34 -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 46129 invoked by uid 99); 3 Oct 2014 07:59:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 07:59:34 +0000 Date: Fri, 3 Oct 2014 07:59:34 +0000 (UTC) From: "Mahieu Xavier (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: 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: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14157773#comment-14157773 ] Mahieu Xavier commented on CMIS-468: ------------------------------------ Hi all, I have the Alfresco Version: Enterprise - v3.3.3 (205) and dotCMIS v 0.6.0.0. I encountered this issue when i want to create or update Datetime property. Do you know if it is possible to solve this DateTime bug without change the alfresco environment ? Regards Xavier > Error when creating or updating a DateTime property when using dotCmis Library (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 > Fix For: DotCMIS 0.3 > > > This might not be a dotCmis bug, but only be a "jeremy" bug, sorry if it is. > When I create a document that has a property I receive an error. > - I can create the document and set the date property just fine when using 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 also simply as a "properly" formatted string (example: 2011-11-02T11:37:00.000-05:00 ) > - I can create or update the same object RESTfully. > --Sample return element (the one I want to create/update using dotCmis) from 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 = new Dictionary(); > properties.Add(PropertyIds.Name, formattedName); > properties.Add(PropertyIds.ObjectTypeId, tagTypeId); > foreach (KeyValuePair pair in selectedTagsToUpload) > { > properties.Add(pair.Key, pair.Value); > } > ContentStream contentStream = new ContentStream > { > FileName = formattedName, > MimeType = "application/pdf", > Length = document.Length, > Stream = new MemoryStream(document) > }; > folder.CreateDocument(properties, contentStream, null); > --As for the DateTime objects, they are contained in the "selectedTagsToUpload" > 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 was sent by Atlassian JIRA (v6.3.4#6332)