Hi cmis-api maintainers,

I fixed a slight bug in the cmis_repository_wrapper.php to allow CMIS querying against Alfresco 4 Community Edition.

The attached patch adds default values to the query-template. Otherwise Alfresco's API will complain about wrong typed values (HTTP Status 400 - invalidArgumentInvalid boolean value! etc.)

I am not aware of the origin of the cmis_repository_wrapper.php. Maybe this is already fixed upstream.

Is it possible to merge these changes, as modules like cmis_views won't display any results without this fix (as long as you are using Alfresco 4).

Best regards,

Lennart

CommentFileSizeAuthor
fix-cmis-query-for-alfresco-4.patch1.33 KBLCM
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

IanNorton’s picture

Hi Lennart,

Thanks for that - the patch looks good, the work Alfresco have done in changing CMIS in 4.2 Enterprise and 4.2.d+ community seems to have caused an issue for the PHP CMIS API wrapper, it's hosted on the Apache Chemistry site so I'll give the guy maintaining it a heads up on your fix.

Much appreciated - just checking in to dev branch.

Ian

IanNorton’s picture

Assigned: Unassigned » IanNorton
Status: Active » Closed (fixed)

Tested and pushed out bug fix release 1.6

LCM’s picture

Hi Ian,

thanks for the quick response. This is a valuable step towards a fully working CMIS integration for our team. Sadly I also had problems with the Filepicker for cmis_field, so I altered some of the code and published it in a separate Issue (#2122905: CMIS Browser overwrites all values of Multiple CMIS Fields). It would be great if you had the time to review the issue as well and tell me how I can help to integrate the proposed fixes into the cmis module mainline.

Kindly,

Lennart