<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CMIS: Choice List of Dates contains values which are not suitable to update a Document in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmis-choice-list-of-dates-contains-values-which-are-not-suitable/m-p/13943#M6148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in our company we use Alfresco&amp;nbsp;where we added new TestModel and ListDate property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="13992" alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/13992_alfr.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next we use CMIS Apache Chemistry connector that returns list of choices:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="13993" alt="" class="image-2 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/13993_Capture.PNG" style="width: 620px; height: 269px;" /&gt;&lt;/P&gt;&lt;P&gt;When one of these values is chosen &amp;nbsp;for update, error appears. For instance, if we choose the first one (2001-01-05 == 5 of January 2001)&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;HTTP Status 409 - constraint&lt;BR /&gt;Constraint violation: 0418520046 Found 1 integrity violations:&lt;BR /&gt;Invalid property value: &lt;BR /&gt;Node: workspace://SpacesStore/eaf740b4-d22a-415a-9ca7-f58a8e115dbb&lt;BR /&gt;Name: vzv_diff&lt;BR /&gt;Type: {TestModel}DiffProperties&lt;BR /&gt;Property: {TestModel}ListDate&lt;BR /&gt;Constraint: 0418520045 The value is not an allowed value: 1/5/01 12:00 AM‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;First value in details:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;java.util.GregorianCalendar[&lt;BR /&gt;time=978681600000,&lt;BR /&gt;areFieldsSet=true,&lt;BR /&gt;areAllFieldsSet=true,&lt;BR /&gt;lenient=true,&lt;BR /&gt;zone=sun.util.calendar.ZoneInfo[id="GMT-08:00",offset=-28800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],&lt;BR /&gt;firstDayOfWeek=1,&lt;BR /&gt;minimalDaysInFirstWeek=1,&lt;BR /&gt;ERA=1,&lt;BR /&gt;YEAR=2001,&lt;BR /&gt;MONTH=0,&lt;BR /&gt;WEEK_OF_YEAR=1,WEEK_OF_MONTH=1,&lt;BR /&gt;DAY_OF_MONTH=5,DAY_OF_YEAR=5,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,&lt;BR /&gt;AM_PM=0,&lt;BR /&gt;HOUR=0,HOUR_OF_DAY=0,&lt;BR /&gt;MINUTE=0,&lt;BR /&gt;SECOND=0,&lt;BR /&gt;MILLISECOND=0,&lt;BR /&gt;ZONE_OFFSET=-28800000,DST_OFFSET=0]‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It worth noting that on "Client machine" time adjusted&amp;nbsp;with&amp;nbsp;&amp;nbsp;utc +3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;whereas on "Server (where Alfresco is actually installed)" - utc -8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our assumption is that Alfresco expected 0:00 am or 0:00 pm and that 12 am is summarized from UTCs scales.&lt;/P&gt;&lt;P&gt;Despite the fact that this situation is already weird, adjusting time of that value in any way before update&amp;nbsp;didn't help at all.&lt;/P&gt;&lt;P&gt;Let's say, setting hours&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;calendar&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Calendar&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;HOUR_OF_DAY&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;results in&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;HTTP Status 409 - constraint&lt;BR /&gt;Constraint violation: 0418520818 Found 1 integrity violations:&lt;BR /&gt;Invalid property value: &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Node: workspace://SpacesStore/eaf740b4-d22a-415a-9ca7-f58a8e115dbb&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Name: vzv_diff&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Type: {TestModel}DiffProperties&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Property: {TestModel}ListDate&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Constraint: 0418520817 The value is not an allowed value: 1/5/01 12:00 PM‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apache Workbench behaves the same way (but it has no choices though):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="14009" alt="" class="image-3 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/14009_WBre.PNG" style="width: 620px; height: 415px;" /&gt;&lt;/P&gt;&lt;P&gt;None of variants are suited here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have been struggling with this issue for number of days without success. We consider it as a Major issue&amp;nbsp;in our project and we'd like to fix it asap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 08:40:40 GMT</pubDate>
    <dc:creator>olegdelone</dc:creator>
    <dc:date>2017-05-18T08:40:40Z</dc:date>
    <item>
      <title>CMIS: Choice List of Dates contains values which are not suitable to update a Document</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-choice-list-of-dates-contains-values-which-are-not-suitable/m-p/13943#M6148</link>
      <description>Hi everyone,in our company we use Alfresco&amp;nbsp;where we added new TestModel and ListDate property.Next we use CMIS Apache Chemistry connector that returns list of choices:When one of these values is chosen &amp;nbsp;for update, error appears. For instance, if we choose the first one (2001-01-05 == 5 of January 2</description>
      <pubDate>Thu, 18 May 2017 08:40:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-choice-list-of-dates-contains-values-which-are-not-suitable/m-p/13943#M6148</guid>
      <dc:creator>olegdelone</dc:creator>
      <dc:date>2017-05-18T08:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS: Choice List of Dates contains values which are not suitable to update a Document</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-choice-list-of-dates-contains-values-which-are-not-suitable/m-p/13944#M6149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="border: 0px; margin: 0px 0px 1em;"&gt;Adding constraint in d:date type will defiantly give error.Below is the reason for same.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;First thing , it will check while saving values is list of values, If you pass 2001-01-05 as value than it will allow in case of constraint,but as it is a string value it will not allow to save in d:date.Second thing, if you pass date object of java , than equality comparison on the applied constraint will fail.So you have 2 option in this case.&lt;/P&gt;&lt;OL style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: inherit; margin: 0px 0px 0.5em;"&gt;Change d:date to d:text&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: inherit;"&gt;Remove constraints.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="color: #222222; background: none; font-size: small;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-top: 0px; border-right: 3px solid #f7751f; padding: 0px 7px 0px 0px;" valign="top"&gt;&lt;IMG src="https://ci4.googleusercontent.com/proxy/XwsSUZ7gnxL8l2-2lFHfpBgrfBUy1OIIU4D-7xrE6dCty7GizZSWMhF8BL5x4DyH4CCRW8sa5lTGyXJa92c=s0-d-e1-ft#http://www.krutikjayswal.com/favicon.ico" /&gt;&lt;/TD&gt;&lt;TD style="padding: 0px 0px 0px 12px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="background: none; border: 0px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" style="color: #f7751f; font-size: 18px; padding-bottom: 5px;"&gt;Krutik Jayswal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #f7751f; font-size: 14px;" valign="top" width="20"&gt;p:&lt;/TD&gt;&lt;TD style="color: #4f382f; font-size: 14px;" valign="top"&gt;+91 9879286835&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #f7751f;"&gt;m:&amp;nbsp;&lt;/SPAN&gt;+91 9909902800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #f7751f; font-size: 14px;" valign="top" width="20"&gt;w:&lt;/TD&gt;&lt;TD style="color: #4f382f; font-size: 14px;" valign="top"&gt;&lt;A href="http://krutikjayswal.com/" style="color: #1da1db;" target="_blank" rel="nofollow noopener noreferrer"&gt;krutikjayswal.com&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #f7751f;"&gt;e:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="mailto:krutik.jayswal@gmail.com" style="color: #1da1db;" target="_blank" rel="nofollow noopener noreferrer"&gt;krutik.jayswal@gmail.com&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="2" style="padding-top: 5px;"&gt;&lt;A href="https://www.facebook.com/krutik.jayswal" style="color: #1155cc; border: 0px;" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG height="25" src="https://ci4.googleusercontent.com/proxy/KSd1y52khHv9agmQvrCbryrM-2fW2_TTiv_ZyM7g8CvIOy1lLeiL98i21qwjj_AtIcK1gmFVa_3klKcL84Nn9soPAtkHRj9nuToKZ86G2yoOSEHDRVJtmcoMmxPmmaYL9i1otg=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/facebook_sig.png" style="border: none;" width="25" /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/in/krutik-jayswal-11325456/" style="color: #1155cc; border: 0px;" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG height="25" src="https://ci5.googleusercontent.com/proxy/hzQ50OystqOxlKMduZD32nQoNlmY4n_0V4lxPUWy5nU5cr1gbQR-03vxhbJL7qRILyM-QnaRbLIvZIoxOof999Ep266X82hDAOK2K4jC9rBUhUVgcslhZQ1jOUHJwKu2s6_4sA=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/linkedin_sig.png" style="border: none;" width="25" /&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 08:41:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-choice-list-of-dates-contains-values-which-are-not-suitable/m-p/13944#M6149</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2017-05-19T08:41:41Z</dc:date>
    </item>
  </channel>
</rss>

