Hi,
I am performing some tests with CMIS and Drupal and I have some problems connecting Drupal with Alfresco through CMIS module. At first I though my issue was related with http://drupal.org/node/730900, but now I am not sure... I am using Drupal 6.16, Alfresco 3.0.1 (I have also tried with Alfresco 3.2r) and CMIS 6.x-3.01.
I have added these lines to settings.php
$conf['cmis_repositories'] = array(
'default' => array(
'user' => 'admin',
'password' => 'admin',
//'url' => 'http://cmis.alfresco.com/s/cmis'
'url' => 'http://localhost:8080/alfresco/s/cmis'
)
);
$conf['cmis_sync_map'] = array(
'page' => array ( // minimal settings.
'enabled' => TRUE,
'cmis_folderPath' => '/Company%20Home'
));
When I go to http://localhost/cmis/browser I get "HTTP call to [http://localhost:8080/alfresco/s/cmis] returned [404]". Pointing my browser to http://localhost:8080/alfresco/s/cmis I get the same error.
If I change repository url to http://cmis.alfresco.com/s/cmis and go to http://localhost/cmis/browser I can browse demo repository fine, so module seems to work.
I have tried deleting cmis_vendor variable from variables table and flushing all my caches, but I still get the same error. I have also tested develpment version of CMIS module.
I think that Alfresco 3.0.1 is also well configured, I can see my repository in http://localhost:8080/alfresco/cmis.
Has anyone any idea of what else can I test?
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | repository.txt | 3.45 KB | sharlak |
Comments
Comment #1
cbalan commentedHello sharlak,
Please note that, Alfresco 3.0.1 is not supporting CMIS 1.x specifications.
If there is a strong requirement to use that Alfresco version, then you can try cmis-6.x-2.x drupal module branch.
But please note that that branch is not supported any more.
If not, then Alfresco 3.2r2 should work. (Also please note that in Alfresco 3.2r2 the cmis end point url is /service/cmis)
Please let us know how it goes.
Thank you,
Catalin Balan
Comment #2
sharlak commentedHi,
First of all, thank you very much for the quick response. I have repeated the tests with Alfresco 32r and I also get a 404 error. I have reinstalled CMIS module and edited settings.php:
After that, I flush the caches, check that there is no cmis_vendor variable in the database and I go to http://localhost/cmis/browser:
If I point my browser to http://localhost:8080/alfresco/service/cmis I get the same error (with Alfresco 3.0.1 I saw my repository in http://localhost:8080/alfresco/s/cmis).
I know that the module works, as I have tested it with demo repository... so it should be Alfresco... but I can see repository information in http://localhost:8080/alfresco/service/cmis (attached) and CMIS web scripts in Alfresco (http://localhost:8080/alfresco/service/index/family/CMIS)... so I do not know well what to test now.
Comment #3
otiteca commentedHi,
i did not make the module work at the moment.
But i know that the cmis is chould be accessible at http://yourhost:8080/alfresco/service/api/cmis
But in fact, in the readme.txt, it's not well defined if the url to pass, is the url to the repository or to the definition of the cmis api...
This http://localhost:8080/alfresco/s/cmis is not part of any Alfresco URL, it should be exisiting only on the server of the person who write the doc.
At the moment i do have an error: unknown vendor: cmis_common.
i did put a 'cmis_vendor'=>'Alfresco' in my conf, but i still have the same error.
Comment #4
otiteca commentedReplying to myself,
the http://yourhost:8080/alfresco/service/api/cmis url is for the RESTFUL ATOMPUB, por webServices use: http://yourhost:8080/alfresco/cmis
Well, i presume, as i still have the same error...
Comment #5
sharlak commentedHi,
Have you enabled "CMIS common" module? I got the same error before enabling it.
As for the url, http://localhost:8080/alfresco/s/cmis was used in earlier versions of Alfresco... before Alfresco 3.2.
Comment #6
sharlak commentedHi,
After a long time I have gone back to this task; I have performed new tests with Alfresco Community 4.0 (which implements CMIS 1.0) and CMIS 6.x-4.0 module and everything seems to work well (except for Spanish accent symbols... I'll have to check my config).
So I think this issue can be closed.