<?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 Failed to get access to Alfresco 7.0.0 in CMIS with ObjectiveCMIS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/failed-to-get-access-to-alfresco-7-0-0-in-cmis-with/m-p/132312#M35674</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We've developped a mobile app relying on a Alfresco 4.2 Community. The link is done using CMIS and especially ObjectiveCMIS lib. Today, we're upgrading our Alfresco server to 7.0.0 COmmunity and are facing some problems communicating in CMIS with this new server from our mobile app.&lt;BR /&gt;With Alfresco 4.2, the mobile app was pointing to /alfresco/cmisatom.&lt;BR /&gt;Now, we're pointing to /alfresco/api/-default-/public/cmis/versions/1.0/atom and it leads to the following error:&lt;BR /&gt;Error initializing connection : Error Domain=org.apache.chemistry.objectivecmis Code=3 "Unauthorized Access" UserInfo={NSLocalizedDescription=Unauthorized Access, NSLocalizedFailureReason=07250012 Authentication failed for Web Script org/alfresco/api/opencmis/OpenCMIS.get}&lt;/P&gt;&lt;P&gt;I've tried to add the alf_ticket parameter (generated with a call to /alfresco/api/login) to the URL to fix the problem but it leads to another error:&lt;BR /&gt;Error Domain=org.apache.chemistry.objectivecmis Code=258 "Not Supported Error" UserInfo={NSLocalizedDescription=Not Supported Error, NSLocalizedFailureReason=Base type '0' not supported.&lt;/P&gt;&lt;P&gt;As far as my Alfresco configuration is concerned, I have the following CMIS parameters in alfresco-global.properties:&lt;/P&gt;&lt;PRE&gt;#
# CMIS
#--------------
opencmis.context.override=true
opencmis.context.value=
opencmis.servletpath.override=true
opencmis.servletpath.value=
opencmis.server.override=true
opencmis.server.value=[...]/alfresco/api&lt;/PRE&gt;&lt;P&gt;I've also tried to connect to this server with CMIS Workbench (1.1.0) using the following URL and it works:&lt;BR /&gt;&lt;A href="http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.0/atom" target="_blank" rel="noopener nofollow noreferrer"&gt;http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.0/atom&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.1/atom" target="_blank" rel="noopener nofollow noreferrer"&gt;http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.1/atom&lt;/A&gt;&lt;BR /&gt;Saying that, I think that my server configuration is good.&lt;/P&gt;&lt;P&gt;My Alfresco server is behind an Apache httpd rpoxy configured as followed:&lt;/P&gt;&lt;PRE&gt;&amp;lt;VirtualHost *:80&amp;gt;
ServerName [...]
ServerAlias [...]

RewriteEngine On
ProxyRequests Off
RewriteRule ^/$ /share [R=302,L]

&amp;lt;Proxy *&amp;gt;
Order deny,allow
Allow from all
&amp;lt;/Proxy&amp;gt;

ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/

&amp;lt;Location /&amp;gt;
Order allow,deny
Allow from all
&amp;lt;/Location&amp;gt;

&amp;lt;/VirtualHost&amp;gt;&lt;/PRE&gt;&lt;P&gt;We've upgraded ObjectiveCMIS lib (from 0.2 to 0.6) =&amp;gt; still KO&lt;BR /&gt;I've also added the following parameter to alfresco-global.properties =&amp;gt; still KO too:&lt;/P&gt;&lt;PRE&gt;alfresco.restApi.basicAuthScheme=true&lt;/PRE&gt;&lt;P&gt;Is there something particular to do with ObjectiveCMIS lib to get access to an Alfresco 7.0.0 server?&lt;BR /&gt;Is there something to do about Apache configuration?&lt;BR /&gt;What can I do to debug that on the mobile app side?&lt;BR /&gt;Are there some logs to enable on the server side to help debugging?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2021 11:04:43 GMT</pubDate>
    <dc:creator>mickaelLagneaux</dc:creator>
    <dc:date>2021-08-31T11:04:43Z</dc:date>
    <item>
      <title>Failed to get access to Alfresco 7.0.0 in CMIS with ObjectiveCMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/failed-to-get-access-to-alfresco-7-0-0-in-cmis-with/m-p/132312#M35674</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We've developped a mobile app relying on a Alfresco 4.2 Community. The link is done using CMIS and especially ObjectiveCMIS lib. Today, we're upgrading our Alfresco server to 7.0.0 COmmunity and are facing some problems communicating in CMIS with this new server from our mobile app.&lt;BR /&gt;With Alfresco 4.2, the mobile app was pointing to /alfresco/cmisatom.&lt;BR /&gt;Now, we're pointing to /alfresco/api/-default-/public/cmis/versions/1.0/atom and it leads to the following error:&lt;BR /&gt;Error initializing connection : Error Domain=org.apache.chemistry.objectivecmis Code=3 "Unauthorized Access" UserInfo={NSLocalizedDescription=Unauthorized Access, NSLocalizedFailureReason=07250012 Authentication failed for Web Script org/alfresco/api/opencmis/OpenCMIS.get}&lt;/P&gt;&lt;P&gt;I've tried to add the alf_ticket parameter (generated with a call to /alfresco/api/login) to the URL to fix the problem but it leads to another error:&lt;BR /&gt;Error Domain=org.apache.chemistry.objectivecmis Code=258 "Not Supported Error" UserInfo={NSLocalizedDescription=Not Supported Error, NSLocalizedFailureReason=Base type '0' not supported.&lt;/P&gt;&lt;P&gt;As far as my Alfresco configuration is concerned, I have the following CMIS parameters in alfresco-global.properties:&lt;/P&gt;&lt;PRE&gt;#
# CMIS
#--------------
opencmis.context.override=true
opencmis.context.value=
opencmis.servletpath.override=true
opencmis.servletpath.value=
opencmis.server.override=true
opencmis.server.value=[...]/alfresco/api&lt;/PRE&gt;&lt;P&gt;I've also tried to connect to this server with CMIS Workbench (1.1.0) using the following URL and it works:&lt;BR /&gt;&lt;A href="http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.0/atom" target="_blank" rel="noopener nofollow noreferrer"&gt;http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.0/atom&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.1/atom" target="_blank" rel="noopener nofollow noreferrer"&gt;http://ppd-wbexport.waterair.com/alfresco/api/-default-/public/cmis/versions/1.1/atom&lt;/A&gt;&lt;BR /&gt;Saying that, I think that my server configuration is good.&lt;/P&gt;&lt;P&gt;My Alfresco server is behind an Apache httpd rpoxy configured as followed:&lt;/P&gt;&lt;PRE&gt;&amp;lt;VirtualHost *:80&amp;gt;
ServerName [...]
ServerAlias [...]

RewriteEngine On
ProxyRequests Off
RewriteRule ^/$ /share [R=302,L]

&amp;lt;Proxy *&amp;gt;
Order deny,allow
Allow from all
&amp;lt;/Proxy&amp;gt;

ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/

&amp;lt;Location /&amp;gt;
Order allow,deny
Allow from all
&amp;lt;/Location&amp;gt;

&amp;lt;/VirtualHost&amp;gt;&lt;/PRE&gt;&lt;P&gt;We've upgraded ObjectiveCMIS lib (from 0.2 to 0.6) =&amp;gt; still KO&lt;BR /&gt;I've also added the following parameter to alfresco-global.properties =&amp;gt; still KO too:&lt;/P&gt;&lt;PRE&gt;alfresco.restApi.basicAuthScheme=true&lt;/PRE&gt;&lt;P&gt;Is there something particular to do with ObjectiveCMIS lib to get access to an Alfresco 7.0.0 server?&lt;BR /&gt;Is there something to do about Apache configuration?&lt;BR /&gt;What can I do to debug that on the mobile app side?&lt;BR /&gt;Are there some logs to enable on the server side to help debugging?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 11:04:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/failed-to-get-access-to-alfresco-7-0-0-in-cmis-with/m-p/132312#M35674</guid>
      <dc:creator>mickaelLagneaux</dc:creator>
      <dc:date>2021-08-31T11:04:43Z</dc:date>
    </item>
  </channel>
</rss>

