# Summary

The CMIS API project aims to provide a generic API for integrating with CMIS compliant Enterprise CMS (ECM) systems.

# Project URL

https://www.drupal.org/project/cmis

# Where is the code?

https://www.drupal.org/node/376359/git-instructions/8.x-1.x

# Estimated completion date

We expect to finish during Q1 2016

# Dependencies

None

# Who's doing the port?

Ruben Teijeiro (rteijeiro) - Tieto

# What help do they need?

Unknown

# D8 roadmap

Unknown

# Background and reference information

Unknown

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rteijeiro created an issue. See original summary.

rteijeiro’s picture

Status: Active » Needs work
mgifford’s picture

stella’s picture

Any update on this? We have a project that might need this module and if so, could potentially be able to help with a port.

mimran’s picture

i was added a patch for cmis field module under this task as a sub-issue, yes i can also volunteer for this module

aschiwi’s picture

Is there an update on the status of this project? What if we had an interest in porting this to Drupal 8 for a client project and ended up needing to do it ourselves? Would that be desired or is too much work already being done?

rteijeiro’s picture

Hi, sorry for my belated reply in this thread.

There are some people interested in having this module ported to Drupal 8. In my company we started to port it but the project was put on hold so sadly we haven't the opportunity to finish the job.

I think we should join efforts instead working separately. I have some contacts that probably will happy to help. How do you suggest we should move forward?

aschiwi’s picture

Same here, project was put on hold, so we currently have no use for it. We can get in touch with you if we end up needing the module, okay?

ageorge’s picture

Just wondering how far along this port to Drupal 8 is?

florisg’s picture

There is an initial port, no routing configuration or compliant directory structure.
We're happy to collaborate

dj1999’s picture

FileSize
284.66 KB

Hi,

we started last week complete rewriting this module.
Use this client to communication: https://github.com/dkd/php-cmis-client

To install it you need (temporary) to module vendor folder copy this client and dependency:
- in command line go to cmis module root folder (eg. modules/cmis or modules/contrib/cmis)
- call command: composer require "dkd/php-cmis": "^1.0"
- enable module
- go to admin/config/cmis/connection/cmis_connection_entity create new configuration
- browse it click to Browse link.

Field:
- add field to your content type eg. admin/structure/types/manage/page/fields
- set the created config to field eg. admin/structure/types/manage/page/form-display

Unfortunatelly no more is ready yet.

I hope it is a good start to porting this module to Drupal 8.

Regards!
Joe

dj1999’s picture

FileSize
355.81 KB

Created wrong patch yesterday. Here is the correct. Or can use this sandbox repo: https://www.drupal.org/sandbox/dj1999/2801989

rteijeiro’s picture

Thanks for your patch @dj1999 but it doesn't apply. It seems the patch is also added to the patch.

+++ /dev/null
@@ -1,10 +0,0 @@
diff --git a/cmis_api-2608214-12.patch b/cmis_api-2608214-12.patch

Could you remove it and recreate the patch again, please?

dj1999’s picture

FileSize
330.88 KB

Sorry. Patch again.

rteijeiro’s picture

For all of you interested in this module. You can start to test it thanks to @dj1999: http://cgit.drupalcode.org/cmis/commit/?id=674bad1

Feel free to open new issues with your feedback so we can move the discussion to the module issue queue.

udaikumar26’s picture

HI,
Has the porting been completed? We are using drupal 8 to make a CMIS connection to alfresco. After adding the CMIS connection when i click on browse link,it goes to HTTP 500 internal server error with following exception thrown.

Got error 'PHP message: Uncaught PHP Exception Exception: "Php CMIS Client library is not properly installed." at /home/vcap/app/htdocs/modules/cmis/src/CmisConnectionApi.php line 94\n'.

Can you please suggest what to do.

udaikumar26’s picture

Issue tags: +edit content

I have successfully tested the connection between drupal 8 and alfresco 5. I am able to browse the contents/documents and view its properties. I can also create a document or delete. However i don't see the ability to edit the content. Can we edit alfresco content from within drupal? Can we update a document?

udaikumar26’s picture

Issue tags: -edit content +porting

Is the porting to drupal 8 complete?

udaikumar26’s picture

Title: [cmis] CMIS API » [cmis] CMIS API Got error 'PHP message: Recoverable fatal error: Object of class DateTime could not be converted to string

AH01071: Got error 'PHP message: Recoverable fatal error: Object of class DateTime could not be converted to string in /home/vcap/app/htdocs/modules/cmis/cmis.module on line 179 #0 /home/vcap/app/htdocs/core/includes/bootstrap.inc(566): _drupal_error_handler_real(4096, 'Object of class...', '/home/vcap/app/...', 179, Array)\n#1 [internal function]: _drupal_error_handler(4096, 'Object of class...', '/home/vcap/app/...', 179, Array)\n#2 /home/vcap/app/htdocs/modules/cmis/cmis.module(179): implode(', ', Array)\n#3 /home/vcap/app/htdocs/modules/cmis/cmis.module(135): _cmis_get_property('my:publishedDat...', Object(Dkd\\PhpCmis\\DataObjects\\Property))\n#4

This error is thrown when trying to view properties of a custom content which has a date time field.

mmjvb’s picture

@udaikumar26 Please undo your last change. For support use the issue queue of the module itself. This issue is for the D8 port of the module.

udaikumar26’s picture

Title: [cmis] CMIS API Got error 'PHP message: Recoverable fatal error: Object of class DateTime could not be converted to string » CMIS API Got error

@mmjvb i am not able to undo the change

mmjvb’s picture

Title: CMIS API Got error » [cmis] CMIS API
terescode’s picture

Here is a patch against the 8.x-2.x branch that fixes the following two issues. With this patch on top of the 8.2-2.x branch, I was able to successfully upload and browse documents using the modal CMIS browser with both the remote public Alfresco server and a local lightweightCmisServer.

  1. CmisConnectionApi: With the upgrade on the 8.x-2.x branch to using the dev-master branch of the dkd/php-cmis-client repo, the checkClient() call is extraneous since both the php-cmis-client and drupal 8 use guzzle 6.
  2. CmisBrowser: The getDocument() method is incorrectly passing the document ID as the stream ID/rendition ID on the call to DocumentInterface::getContentStream(). If you look at the APIdoc for this call, the first parameter is optional and meant to be a rendition/stream id. The actual document id is passed on to Session::getContentStream() by passing $this as the first parameter inside DocumentInterface::getContentStream(). Since the intent here is to get a content stream by ID and not stream ID, it doesn't make sense to pass the document ID where the API is expecting a stream ID. Internally, it causes the streamId query parameter to be added to the generate URL to access the document but since no such rendition exists, the GET fails.
GaëlG’s picture

For people trying to get version 2 with composer, see #2883917: Release 8.x-2.x.

hammadsaeed’s picture

Hi, Has the porting being completed?
If not then is there any alternate way to establish CMIS connection between Drupal 8.7 and Alfresco 6.2 GA in a dockerized installation?

Grimreaper’s picture

Status: Needs work » Fixed

Hello,

The Drupal 8 version has a release now https://www.drupal.org/project/cmis/releases/8.x-2.0-alpha1

Regards,

mmjvb’s picture

Status: Fixed » Needs review

With an alpha, Status is Needs review. Fixed is when there is a Stable released.

apaderno’s picture

Issue tags: -porting