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.

CommentFileSizeAuthor
#2 repository.txt3.45 KBsharlak

Comments

cbalan’s picture

Hello 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

sharlak’s picture

StatusFileSize
new3.45 KB

Hi,

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:

   $conf['cmis_repositories'] = array(
     'default' => array (
       'label' => 'Local',
       'url' => 'http://localhost:8080/alfresco/service/cmis',
       'user' => 'admin',
       'password' => 'admin',
     )
  );

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:

HTTP call to [http://127.0.0.1:8080/alfresco/service/cmis] returned [404]. Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Web Script Status 404 - Not Found</title> <link rel="stylesheet" href="/alfresco/css/base.css" type="text/css" /> </head> <body> <div> <table> <tr> <td><img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /></td> <td><span class="title">Web Script Status 404 - Not Found</span></td> </tr> </table> <br/> <table> <tr><td>The Web Script <a href="%2Falfresco%2Fservice%2Fcmis">/alfresco/service/cmis</a> has responded with a status of 404 - Not Found.</td></tr>
(...)

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.

otiteca’s picture

Hi,
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.

otiteca’s picture

Replying 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...

sharlak’s picture

Hi,

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.

sharlak’s picture

Status: Active » Closed (fixed)

Hi,
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.