cancel
Showing results for 
Search instead for 
Did you mean: 

URL example for CMIS rest api

adamjennison111
Champ in-the-making
Champ in-the-making
Hi all,
this is my first post..
I look after an Enterprise 4.2 system and am having real issues trying to connect Drupal to it.
The Drupal install is supplied and maintained by a third party so everything is a bit convoluted and has ended up in 'other-end-itis'..

They are using the 'CMIS' module for Drupal, it seems to be working find for most things but I got this email from their developer:

<em>I am getting an error when saving a Drupal node that has documents attached via the CMIS module.

The error in the Drupal log is as follows:-

CMISException: HTTP call to [http://xxxxxxxxxxxx:80/alfresco/s/cmis/s/workspaceSmiley FrustratedpacesStore/arg/p?path=/workspace%3A//SpacesStore/6...] returned [404]. Response: Web Script Status 404 - Not Found Web Script Status 404 - Not Found The Web Script /alfresco/s/cmis/s/workspaceSmiley FrustratedpacesStore/arg/p has responded with a status of 404 - Not Found. 404 Description: Requested resource is not available. &amp;nbsp; Message:Cannot find object for ObjectPathReference[storeRef=workspace://SpacesStore,path=/app:company_home/workspace://SpacesStore/62f5ce42-3c90-4578-b4fc-7c363aff351d] Server:Enterprise v4.2.0 (r57217-b28) schema 6,034 Time:Jan 13, 2014 6:20:09 PM &amp;nbsp; Diagnostics:Inspect Web Script (org/alfresco/cmis/item.get) in cmis_common_cmis_invoke() (line 95 of /var/www/html/hcc-xxxxxxxxxxxxxx/sites/all/modules/cmis/cmis_common/cmis_common.module).
</em>

I then got this one:
<em>It only seems to be a problem for content that has a value in the CMIS folder field.  If I remove the content for that field then the nodes publish OK.
</em>

I've tried to go through this on my own but am failing miserably, so would appreciate any help with it.

I would also appreciate an example of a URL for this call as the one that is failing (above) is the correct path and id for the node but I can't create a working URL to compare, each time it comes back with a 404 error??!:

/cmis/s/{store}/arg/p?path={path}&filter={filter?}&returnVersion={returnVersion?}&includeAllowableActions={includeAllowableActions?}&includeRelationships={includeRelationships?}&includeACL={includeACL?}&renditionFilter={renditionFilter?}



thanks
3 REPLIES 3

adamjennison111
Champ in-the-making
Champ in-the-making
I've been digging around and the URL I mentioned takes a path not a node id..
So this URL fails:
http://xxxxxxxx/alfresco/s/cmis/s/workspaceSmiley FrustratedpacesStore/arg/p?path=/workspace%3A//SpacesStore/a9b67e4e...

but this one works..


http://xxxxxxxxxx/alfresco/s/cmis/s/workspaceSmiley FrustratedpacesStore/arg/p?path=%2FSites%2Ftest%2FdocumentLibrary...

It seems the Drupal module is adding the wrong element as it creates the URL.

fgjohnson
Champ in-the-making
Champ in-the-making
Hi Adam,
I miss Ottawa! 🙂

Did you ever get this resolved?

I can'e get a Drupal 7 site (on a different server) to communicate with a Alfresco repository using CMIS.  http://localhost drupal site works great.

Any suggestions?

punamunimity
Champ in-the-making
Champ in-the-making

I am facing the same issue?

Any Suggestions?