<?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 Re: &amp;quot;Impossible to update the aspects&amp;quot; when try to add a aspect to a content in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28046#M12004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ty Axel,&amp;nbsp; i'm very a idiot , now i finally found the error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"JavaException: org.alfresco.service.namespace.NamespaceException: Namespace prefix dgtsgn is not mapped to a namespace URI"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;strange because i set the namespace on my model:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;namespaces&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;namespace uri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.com/model/digital/signing/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.com/model/digital/signing/1.0&lt;/A&gt;&lt;SPAN&gt;" prefix="dgtsgn" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/namespaces&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and the other aspects with the same prefix work fine.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let you&amp;nbsp; know if i solve this issue.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Greetings.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 16:18:41 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2017-08-01T16:18:41Z</dc:date>
    <item>
      <title>"Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28040#M11998</link>
      <description>Hi, i'm try to modify a addon of alfresco for my purpose , so i have created my amps of alfresco and share , seem to work but there is a problem&amp;nbsp; it's make me go nuts,&amp;nbsp; i have a aspect called "key", i make that visible to the user with the "share-config-custom.xml" file, but when i try to add , alfr</description>
      <pubDate>Fri, 28 Jul 2017 17:14:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28040#M11998</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-07-28T17:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28041#M11999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...didn't have time to Look at it closely but there is at least a mandatory field - is a value set (for default) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:47:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28041#M11999</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-07-28T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28042#M12000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Ty for the response martin, i try to set a default value or set the mandatory to false for the aspect "key" but it' s not that the problem in this case. &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2017 11:53:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28042#M12000</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-07-29T11:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28043#M12001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mandatory properties can indeed be a problem, but usually only if they are defined as enforced="true". Since they are not in this case, they are "soft mandatory", meaning that they should not prevent application of the aspect if not set, but will result in the node being flagged with the sys:incomplete aspect to indicate at least one mandatory property has not been set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default Share actions - like manage aspects - are the most annoying bits of Alfresco in terms of lack of feedback. The backend web script silently swallows any exception that occurs and its error message, and just sets a flag in the response for "unsuccesful". There&amp;nbsp;is no logger statement which you could enable to get details. My advice: Override the aspects.post.json.js and add a logger statement in &lt;A href="https://github.com/Alfresco/share/blob/master/share-services/src/main/resources/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/aspects.post.json.js#L86" rel="nofollow noopener noreferrer"&gt;the catch block&lt;/A&gt; to output the message of the exception to the alfresco.log file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2017 12:34:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28043#M12001</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-07-29T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28044#M12002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel try out your solution , i update the code of the catch block (after stop alfresco) with:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;catch (e)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.log("CHECKOUT12:" + e);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.log("CHECKOUT13:" + e.stack);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.success = false;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; logger.log("CHECKOUT14:" + e);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.log("CHECKOUT15:" + e.stack);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but it's doesn't show anything a&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;s if it did not load the changes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;, i just update the jar file with 7zip and make a copy and overwrite of the jar file located on the alfresco webapp (unpack folder).&lt;/P&gt;&lt;P&gt;&amp;nbsp;Anyway the error is definitive here beacuse is the only part where the message success is "false" inistead of "true" here the json response from the post of the aspect:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;{&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp; "totalResults": 1,&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp; "overallSuccess": false,&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp; "successCount": 0,&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp; "failureCount": 1,&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp; "results":&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp; [&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "action": "manageAspects",&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "test_nofirma_noprotezione.pdf",&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "document",&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "nodeRef": "workspace:\/\/SpacesStore\/0b86808c-4d13-4bc7-98bf-ca1b87c64975",&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "success": false&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/CODE&gt;&lt;CODE class=""&gt;&amp;nbsp;&amp;nbsp; ]&lt;/CODE&gt;&lt;CODE class=""&gt;}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what i 'm doing wrong?&amp;nbsp; maybe i need to ovverride directly on the amp with a new javascript file on the path &lt;STRONG&gt;$project/src/main/amp/components/action/aspects.post.json? (not sure if is the right path).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 14:53:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28044#M12002</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-07-31T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28045#M12003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use the logger.log function you need to configure your Log4J settings in a way that the ScriptLogger output will be included in alfresco.log. Alternatively, you can use logger.warn or logger.error...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:09:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28045#M12003</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-08-01T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28046#M12004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ty Axel,&amp;nbsp; i'm very a idiot , now i finally found the error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"JavaException: org.alfresco.service.namespace.NamespaceException: Namespace prefix dgtsgn is not mapped to a namespace URI"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;strange because i set the namespace on my model:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;namespaces&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;namespace uri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.com/model/digital/signing/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.com/model/digital/signing/1.0&lt;/A&gt;&lt;SPAN&gt;" prefix="dgtsgn" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/namespaces&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and the other aspects with the same prefix work fine.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let you&amp;nbsp; know if i solve this issue.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Greetings.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 16:18:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28046#M12004</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-08-01T16:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28047#M12005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone with similar issue , in the end the problem was related to the fact it's seems the method javascript "addAspect" not accept property with type &lt;EM&gt;&amp;lt;type&amp;gt;d:encrypted&amp;lt;/type&amp;gt; &lt;/EM&gt;on the aspect you try to add.&lt;/P&gt;&lt;P&gt;Not sure if is a bug of alfresco or if i'm doing wrong something.&lt;/P&gt;&lt;P&gt;Ty to all for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 14:29:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28047#M12005</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-08-02T14:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: "Impossible to update the aspects" when try to add a aspect to a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28048#M12006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say that this is not a bug. Properties of type d:encrypted are special and require additional handling to actually create the encrypted value, which is not possible from the JavaScript tier. You can't just set their value to "x" - you have to use the Java API&amp;nbsp;MetadataEncryptor to handle them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 21:38:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/quot-impossible-to-update-the-aspects-quot-when-try-to-add-a/m-p/28048#M12006</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-08-02T21:38:50Z</dc:date>
    </item>
  </channel>
</rss>

