I set up the cmis repostiory as per the documentation using the below syntax, but when I try to access the repository using http://localhost/cmis/browser, I get 404. I tried clearing the cache, restarting my wamp server but that didn't help.
$conf['cmis_repositories'] = array(
'default' => array(
'user' => 'test',
'password' => 'testpwd',
'url' => 'http://mycmissharepointserver/cmis/'
)
);

I am wondering this api can be used for connecting to sharepoint repository? If so, am I missing some set up. Please suggest.
Thanks.

Comments

darora’s picture

Ok, though the issue is still not resolved but I have made some progress. I found that I needed to enable the curl extension in my apache php.ini file. I did that but now I am getting error
"HTTP call to ['http://mycmissharepointserver/cmis/] returned [401]. Response:" ,
even though the user I am using have access to the repository.
I could not find any reference on how to resolve this issue? Wondering if it's because of some missing/wrong set up on drupal end or is it on CMIS repository end. Hoping someone can put some more light on this issue.

Thanks

studiosander’s picture

Darora,

You have to use the right url to connect to SP 2010 Producer:

REST Atom Service
http://web/_vti_bin/cmis/rest/[repositoryid]?command
web represents the producer site. [repository id] is the list or library GUID, and command is a command that exists in the CMIS specification (for example, getRepositoryInfo).

(source: http://technet.microsoft.com/en-us/library/ff934619.aspx)

Then it should work! And check if plain text authorisation is enabled. For testing purposes you can use plain text, production it is not safe use then minimal NTLM + SSL.

darora’s picture

Thanks for the pointers. I will try to test it out. Will update my findings.

studiosander’s picture

within drupal I can't connect to an sharepoint cmis producer as well...

I used the url http://weburl/_vti_bin/cmis/rest/Documents

when I connect to the above URL with the FireFox Rest Client I get a normal 200 response, but drupal gives me Unknown CMIS object..

this is the response from sharepoint 2010:

<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
	<id>uuid:4ed55fe2-08b7-483a-92dd-8f1e7c0e6715;id=21</id>
	<title type="text">URL template for CMIS producer REST binding </title>
	<updated>2010-12-21T12:43:32Z</updated>
	<link rel="service" type="application/atomsvc+xml" title="Repository Info" href="http://sharepoint.sanderkoning.nl/_vti_bin/cmis/rest/8d6a9e96-6b9f-482f-9576-d1539f9d60b0?getRepositoryInfo" />
	<link rel="RootFolderCollection" type="application/atom+xml;type=feed" title="Root Folder Collection" href="http://sharepoint.sanderkoning.nl/_vti_bin/cmis/rest/8d6a9e96-6b9f-482f-9576-d1539f9d60b0?RootFolder" />
	<link rel="Query" type="application/atom+xml;type=feed" title="Query" href="http://sharepoint.sanderkoning.nl/_vti_bin/cmis/rest/8d6a9e96-6b9f-482f-9576-d1539f9d60b0?Query" />
	<link rel="Checkedout" type="application/atom+xml;type=feed" title="Checked out collection" href="http://sharepoint.sanderkoning.nl/_vti_bin/cmis/rest/8d6a9e96-6b9f-482f-9576-d1539f9d60b0?getCheckedoutDocs" />
	<link rel="TypesChildren" type="application/atom+xml;type=feed" title="Types Children Collection" href="http://sharepoint.sanderkoning.nl/_vti_bin/cmis/rest/8d6a9e96-6b9f-482f-9576-d1539f9d60b0?getTypeChildren" />
	<link rel="TypesDescendants" type="application/atom+xml;type=feed" title="Types Descendants Collection" href="http://sharepoint.sanderkoning.nl/_vti_bin/cmis/rest/8d6a9e96-6b9f-482f-9576-d1539f9d60b0?getTypeDescendants" />
</entry>
TimurM’s picture

Studiosander,

So after creating the url: HTTP call to [https://collaboration.bus.emory.edu/_vti_bin/cmis/rest/AC615845-C885-49D... returned [0]. Response:

I get this message. I'm pretty new to using CMIS so I'm thinking it might be my firewall settings that are not pulling information from the Sharepoint site. On Sharepoint, I have all the permissions enabled and I am the admin. Any advise on what could be wrong?

Thanks,

JeremyFrench’s picture

There is another issue which has a patch for Sharepoint support. It looks like there are differences in the implementation between alfresco and Sharepoint. Take a look at #1307180: Sharepoint Support, you may be able to test the patch. If that looks similar to this issue, could you mark this as duplicate so that attention can be focused on one issue.

IanNorton’s picture

Status: Active » Closed (won't fix)

Closing 6.x issues as documented in this post