You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Jeremy Turpin (Created) (JIRA)" <ji...@apache.org> on 2011/11/03 22:57:32 UTC

[jira] [Created] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3)

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


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 <cmis:propertyDateTime> 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:
      <cmis:propertyDateTime propertyDefinitionId="accounts:accountsDocDate" displayName="Document Date" queryName="accounts:accountsDocDate">
        <cmis:value>2011-11-02T11:37:00.000-05:00</cmis:value>
      </cmis:propertyDateTime>

--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<string, object> properties = new Dictionary<string, object>();
            properties.Add(PropertyIds.Name, formattedName);
            properties.Add(PropertyIds.ObjectTypeId, tagTypeId);
            foreach (KeyValuePair<string, object> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3)

Posted by "Jeremy Turpin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146380#comment-13146380 ] 

Jeremy Turpin commented on CMIS-468:
------------------------------------

The issue has been resolved, as you pointed out, for Alfresco 4.  Thank you for your assistance.
                
> 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
>
> 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 <cmis:propertyDateTime> 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:
>       <cmis:propertyDateTime propertyDefinitionId="accounts:accountsDocDate" displayName="Document Date" queryName="accounts:accountsDocDate">
>         <cmis:value>2011-11-02T11:37:00.000-05:00</cmis:value>
>       </cmis:propertyDateTime>
> --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<string, object> properties = new Dictionary<string, object>();
>             properties.Add(PropertyIds.Name, formattedName);
>             properties.Add(PropertyIds.ObjectTypeId, tagTypeId);
>             foreach (KeyValuePair<string, object> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3)

Posted by "Jeremy Turpin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143587#comment-13143587 ] 

Jeremy Turpin commented on CMIS-468:
------------------------------------

I'm downloading Alfresco 4 now and will let you know if the issue has been resolved (tomorrow).  It sounds hopeful, I appreciate it.
                
> 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
>
> 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 <cmis:propertyDateTime> 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:
>       <cmis:propertyDateTime propertyDefinitionId="accounts:accountsDocDate" displayName="Document Date" queryName="accounts:accountsDocDate">
>         <cmis:value>2011-11-02T11:37:00.000-05:00</cmis:value>
>       </cmis:propertyDateTime>
> --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<string, object> properties = new Dictionary<string, object>();
>             properties.Add(PropertyIds.Name, formattedName);
>             properties.Add(PropertyIds.ObjectTypeId, tagTypeId);
>             foreach (KeyValuePair<string, object> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3)

Posted by "Jeremy Turpin (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Turpin resolved CMIS-468.
--------------------------------

       Resolution: Fixed
    Fix Version/s: DotCMIS 0.3

No Change to DotCMIS was necessary.  Upgrading to Alfresco 4 solved the issue.
                
> 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 <cmis:propertyDateTime> 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:
>       <cmis:propertyDateTime propertyDefinitionId="accounts:accountsDocDate" displayName="Document Date" queryName="accounts:accountsDocDate">
>         <cmis:value>2011-11-02T11:37:00.000-05:00</cmis:value>
>       </cmis:propertyDateTime>
> --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<string, object> properties = new Dictionary<string, object>();
>             properties.Add(PropertyIds.Name, formattedName);
>             properties.Add(PropertyIds.ObjectTypeId, tagTypeId);
>             foreach (KeyValuePair<string, object> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3)

Posted by "Jeremy Turpin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143575#comment-13143575 ] 

Jeremy Turpin commented on CMIS-468:
------------------------------------

It does look like might be the same issue.  I will test both ways that it 'breaks' for me and compare it against the posted "Errorstack (Alfresco logfile):"  over this weekend to double check that it is the same issue.

Alfresco issue ALF-8273 says it is 'closed' but I don't see a workaround or fix for it.  Is that because it could not be replicated? 
                
> 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
>
> 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 <cmis:propertyDateTime> 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:
>       <cmis:propertyDateTime propertyDefinitionId="accounts:accountsDocDate" displayName="Document Date" queryName="accounts:accountsDocDate">
>         <cmis:value>2011-11-02T11:37:00.000-05:00</cmis:value>
>       </cmis:propertyDateTime>
> --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<string, object> properties = new Dictionary<string, object>();
>             properties.Add(PropertyIds.Name, formattedName);
>             properties.Add(PropertyIds.ObjectTypeId, tagTypeId);
>             foreach (KeyValuePair<string, object> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3)

Posted by "Florian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143571#comment-13143571 ] 

Florian Müller commented on CMIS-468:
-------------------------------------

Could you please check if this is related to the DotCMIS issue CMIS-359 [1] and the Alfresco issue ALF-8273 [2]?!
Thanks!

[1] https://issues.apache.org/jira/browse/CMIS-359
[2] https://issues.alfresco.com/jira/browse/ALF-8273

                
> 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
>
> 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 <cmis:propertyDateTime> 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:
>       <cmis:propertyDateTime propertyDefinitionId="accounts:accountsDocDate" displayName="Document Date" queryName="accounts:accountsDocDate">
>         <cmis:value>2011-11-02T11:37:00.000-05:00</cmis:value>
>       </cmis:propertyDateTime>
> --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<string, object> properties = new Dictionary<string, object>();
>             properties.Add(PropertyIds.Name, formattedName);
>             properties.Add(PropertyIds.ObjectTypeId, tagTypeId);
>             foreach (KeyValuePair<string, object> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CMIS-468) Error when creating or updating a DateTime property when using dotCmis Library (0.3)

Posted by "Florian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143577#comment-13143577 ] 

Florian Müller commented on CMIS-468:
-------------------------------------

It has been fixed in Alfresco 3.4.4 and Alfresco 4.
                
> 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
>
> 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 <cmis:propertyDateTime> 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:
>       <cmis:propertyDateTime propertyDefinitionId="accounts:accountsDocDate" displayName="Document Date" queryName="accounts:accountsDocDate">
>         <cmis:value>2011-11-02T11:37:00.000-05:00</cmis:value>
>       </cmis:propertyDateTime>
> --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<string, object> properties = new Dictionary<string, object>();
>             properties.Add(PropertyIds.Name, formattedName);
>             properties.Add(PropertyIds.ObjectTypeId, tagTypeId);
>             foreach (KeyValuePair<string, object> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira