AnsweredAssumed Answered

Alfresco 5.2 Error accessing CMIS RepositoryService.

Question asked by svelidanda on Jul 4, 2017
Latest reply on Jul 6, 2017 by svelidanda

Hi,

I am using Alfresco 5.2 and trying to access CMIS RepositoryService, while getting repositories (from .Net client) I am getting below error.

Error: MustUnderstand headers: [{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood.”

 

Tried creating custom binding but could not resolve the error as we don't have control on setting 'mustUnderstand' attribute to 0 (zero), I could see the attribute value set to 1 by default and not finding a way to resolve this issue.

 

Note: There was no such error on Alfresco 5.1.2.  

Please find Alfresco 5.1.2 and 5.2 SOAP requests below:

 

-----------Alfresco 5.1.2 SOAP Request:START--------------------------

--uuid:67f0940c-3208-4d12-b7ea-ea0064f90452+id=8
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<s:Header>

<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

<u:Timestamp u:Id="_0">

<u:Created>2017-07-03T06:48:53.099Z</u:Created>

<u:Expires>2017-07-03T06:53:53.099Z</u:Expires>

</u:Timestamp>

<o:UsernameToken u:Id="uuid-da1000d2-0916-4bb7-8b2a-ebc9162d6aa7-12">

<o:Username>admin</o:Username>

<o:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</o:Password>

</o:UsernameToken>

</o:Security>

</s:Header>

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<getRepositories xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">

<extension/>

</getRepositories>

</s:Body>

</s:Envelope>
--uuid:67f0940c-3208-4d12-b7ea-ea0064f90452+id=8

-----------Alfresco 5.1.2 SOAP Request:END--------------------------

 

----------Alfresco 5.2 SOAP Request:START---------------------------

--uuid:55c19061-1db8-44a3-b7a2-691063dbcbe6+id=3
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<s:Header>

<a:Action s:mustUnderstand="1">http://tempuri.org/IRepositoryServicePort/getRepositories</a:Action>

<a:MessageID>urn:uuid:ee83ca99-b1e6-4151-acb3-1f1663e57901</a:MessageID>

<a:ReplyTo>

<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>

</a:ReplyTo>

<a:To s:mustUnderstand="1">https://172.26.39.155:8443/alfresco/cmisws/RepositoryService</a:To>

<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

<u:Timestamp u:Id="_0">

<u:Created>2017-06-29T13:29:59.879Z</u:Created>

<u:Expires>2017-06-29T13:34:59.879Z</u:Expires>

</u:Timestamp>

<o:UsernameToken u:Id="uuid-53f99b38-2270-44a8-93a5-4b2e1459cd32-3">

<o:Username>admin</o:Username>

<o:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Password</o:Password>

</o:UsernameToken>

</o:Security>

</s:Header>

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<getRepositories xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">

<extension/>

</getRepositories>

</s:Body>

</s:Envelope>
--uuid:55c19061-1db8-44a3-b7a2-691063dbcbe6+id=3--

----------Alfresco 5.2 SOAP Request:END---------------------------

 

Please let me know whether there is a known bug in Alfresco 5.2 regarding the same?

Also suggest any solution to get it working with Alfresco 5.2.

 

Regards

Srinivas

Outcomes