Hello,

I am new to Drupal and Alfresco but I chose them because of their CMIS integration

it's not working properly at this time, but I would love to help to make it work

I am running Alfresco built on SVN release 16394, Drupal 6.14, CMIS API 6.x-2.1/6.x-2.x-dev and corresponding CMIS Alfresco

In configuring Alfresco Sync Stories (first one I try), I have to choose CMIS type in the following list
"not_set" (Not set)
"D/cm_savedquery" (Requête sauvée)
"D/fm_post" (Article du forum)
"D/cm_dictionaryModel" (Dictionary Model)
"D/imap_imapAttach" (Attachment to the IMAP message)
"D/bpm_workflowDefinition" (Workflow Process Definition)
"D/cm_thumbnail" (Thumbnail)
"D/bpm_task" (Tâche)
"D/bpm_workflowTask" (Tâche du workflow)
"D/wf_rejectedTask" (Rejected)
"D/wcmwf_changeRequestTask" (Change Request)
"D/wf_adhocTask" (Adhoc Task)
"D/wf_approvedParallelTask" (Approved)
"D/wf_reviewTask" (Review)
"D/imwf_moderatedInvitationReviewTask" (Moderated Site Invitation)
"D/wf_rejectedParallelTask" (Rejected)
"D/bpm_startTask" (Tâche de Démarrage du Workflow)
"D/imwf_moderatedInvitationSubmitTask" (D/imwf_moderatedInvitationSubmitTask)
"D/wf_submitAdhocTask" (Start Adhoc Task)
"D/inwf_inviteToSiteTask" (Start)
"D/wf_submitReviewTask" (Start Review)
"D/wf_submitConcurrentReviewTask" (D/wf_submitConcurrentReviewTask)
"D/wf_submitGroupReviewTask" (Start Group Review)
"D/wf_submitParallelReviewTask" (Start Parallel Review)
"D/wcmwf_startTask" (D/wcmwf_startTask)
"D/wcmwf_submitDirectTask" (Web Site Submission (Direct))
"D/wcmwf_submitChangeRequestTask" (Submit Change Request)
"D/wcmwf_submitWebContentTask" (D/wcmwf_submitWebContentTask)
"D/wcmwf_submitReviewTask" (Web Site Submission)
"D/wf_completedAdhocTask" (Adhoc Task Completed)
"D/inwf_rejectInviteTask" (Reject)
"D/inwf_invitePendingTask" (Invitee Accepts)
"D/wcmwf_workflowTask" (D/wcmwf_workflowTask)
"D/wcmwf_verifyBrokenLinksTask" (Verify Broken Links)
"D/wcmwf_submittedTask" (Submitted)
"D/wcmwf_approvedTask" (Approved)
"D/wcmwf_submittedDirectTask" (Submitted)
"D/wcmwf_rejectedTask" (Rejected)
"D/wcmwf_parallelReviewTask" (Review)
"D/wcmwf_submitcancelledTask" (Submission Aborted)
"D/wcmwf_reviewTask" (Review)
"D/wcmwf_submitfailedTask" (Submission Failed)
"D/wcmwf_submitpendingTask" (Submission Pending)
"D/wf_approvedTask" (Approved)
"D/inwf_acceptInviteTask" (Accept)
"D/wcm_avmlayeredcontent" (AVM Layered Content)
"D/wca_deploymentreport" (Website Deployment Report)
"D/imap_imapBody" (Body of the IMAP message)
"D/lnk_link" (D/lnk_link)
"D/wcm_avmcontent" (AVM Content)
"D/wcm_avmplaincontent" selected="selected" (AVM Plain content)
"D/ia_calendarEvent" (Calendar Event)

not knowing which one to take, I have tried most of them
when adding a drupal story,

for some of these CMIS type, the file is created in Alfresco repository but I receive error 400
for other, I just receive error 500

I have also tried to force CMIS type to "document" by tweeking the code, i get the error 400 and same explanation
and I have tried to sync with repository folders in "/Company Home/sites/test/stories/" and "/Company Home/users/admin/stories/"

I have tried some debuging and it seems that the problem comes from
cmis_alfresco_cmisapi_updateProperties (in file cmis_alfresco.cmis.inc) or at least its calling

the 400 error says:

Alfresco Web Script Status 400 - Bad request

The Web Script /alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a has responded with a status of 400 - Bad request.

400 Description: The request sent by the client was syntaxicaly incorrect.

Message: Property title is not a known property for type document
Server: Alfresco Community v3.2.0 (@build-number@) schema 3 003
Time: 22 sept. 2009 09:06:39

Diagnostics: Inspect Web Script (org/alfresco/repository/store/item.put)

the data sent by "CUSTOM-PUT" is

<?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901"><cmis:object><cmis:properties><cmis:propertyString cmis:name="title"><cmis:value>titre</cmis:value></cmis:propertyString><cmis:propertyString cmis:name="content-type"><cmis:value>text/html</cmis:value></cmis:propertyString><cmis:propertyString cmis:name="Name"><cmis:value>titre</cmis:value></cmis:propertyString></cmis:properties></cmis:object></entry>

just in case,
the data sent by "CUSTOM-POST" that comes just before is

<?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901"><title>titre</title><summary></summary><content type="text/html">Y29udGVudQ==</content><cmis:object><cmis:properties><cmis:propertyString cmis:name="Name"><cmis:value>titre</cmis:value></cmis:propertyString><cmis:propertyString cmis:name="ObjectTypeId"><cmis:value>document</cmis:value></cmis:propertyString></cmis:properties></cmis:object></entry>

and the response is

<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:alf="http://www.alfresco.org">
<author><name>admin</name></author>
<content type="text/html" src="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/content"/><id>urn:uuid:bd4fb37c-d903-4720-8de2-6d00e643322a</id>
<link rel="self" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a"/>
<link rel="enclosure" type="text/html" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/content"/><link rel="edit" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a"/>
<link rel="edit-media" type="text/html" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/content"/><link rel="allowableactions" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/permissions"/>

<link rel="relationships" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/rels"/>
<link rel="parents" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/parents"/>
<link rel="allversions" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/versions"/>
<link rel="stream" type="text/html" href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/content"/><link rel="type" href="http://localhost:8080/alfresco/service/api/type/document"/>
<link rel="repository" href="http://localhost:8080/alfresco/service/api/repository"/>
<published>2009-09-22T09:06:39.423+02:00</published>
<summary></summary>
<title>titre</title>
<updated>2009-09-22T09:06:39.486+02:00</updated>
<cmis:object>
<cmis:properties>
<cmis:propertyString cmis:name="BaseType"><cmis:value>document</cmis:value></cmis:propertyString>
<cmis:propertyString cmis:name="ContentStreamFilename"><cmis:value>titre</cmis:value></cmis:propertyString>

<cmis:propertyString cmis:name="CheckinComment"/>
<cmis:propertyInteger cmis:name="ContentStreamLength"><cmis:value>7</cmis:value></cmis:propertyInteger>
<cmis:propertyString cmis:name="VersionLabel"/>
<cmis:propertyString cmis:name="ContentStreamAllowed"><cmis:value>ALLOWED</cmis:value></cmis:propertyString>
<cmis:propertyUri cmis:name="ContentStreamUri"><cmis:value>http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a/content</cmis:value></cmis:propertyUri>
<cmis:propertyBoolean cmis:name="IsLatestVersion"><cmis:value>true</cmis:value></cmis:propertyBoolean>
<cmis:propertyString cmis:name="ContentStreamMimeType"><cmis:value>text/html</cmis:value></cmis:propertyString>
<cmis:propertyBoolean cmis:name="IsVersionSeriesCheckedOut"><cmis:value>false</cmis:value></cmis:propertyBoolean>
<cmis:propertyBoolean cmis:name="IsMajorVersion"><cmis:value>false</cmis:value></cmis:propertyBoolean>
<cmis:propertyString cmis:name="VersionSeriesCheckedOutBy"/>

<cmis:propertyDateTime cmis:name="CreationDate"><cmis:value>2009-09-22T09:06:39.423+02:00</cmis:value></cmis:propertyDateTime>
<cmis:propertyString cmis:name="ChangeToken"/>
<cmis:propertyString cmis:name="LastModifiedBy"><cmis:value>admin</cmis:value></cmis:propertyString>
<cmis:propertyId cmis:name="VersionSeriesId"><cmis:value>workspace://SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a</cmis:value></cmis:propertyId>
<cmis:propertyBoolean cmis:name="IsLatestMajorVersion"><cmis:value>false</cmis:value></cmis:propertyBoolean>
<cmis:propertyString cmis:name="Name"><cmis:value>titre</cmis:value></cmis:propertyString>
<cmis:propertyBoolean cmis:name="IsImmutable"><cmis:value>false</cmis:value></cmis:propertyBoolean>
<cmis:propertyDateTime cmis:name="LastModificationDate"><cmis:value>2009-09-22T09:06:39.486+02:00</cmis:value></cmis:propertyDateTime>
<cmis:propertyUri cmis:name="Uri"/>
<cmis:propertyString cmis:name="CreatedBy"><cmis:value>admin</cmis:value></cmis:propertyString>

<cmis:propertyId cmis:name="VersionSeriesCheckedOutId"/>
<cmis:propertyId cmis:name="ObjectTypeId"><cmis:value>document</cmis:value></cmis:propertyId>
<cmis:propertyId cmis:name="ObjectId"><cmis:value>workspace://SpacesStore/bd4fb37c-d903-4720-8de2-6d00e643322a</cmis:value></cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDelete>true</cmis:canDelete>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetParents>true</cmis:canGetParents>

<cmis:canMove>true</cmis:canMove>
<cmis:canDeleteVersion>true</cmis:canDeleteVersion>
<cmis:canDeleteContent>true</cmis:canDeleteContent>
<cmis:canCheckout>true</cmis:canCheckout>
<cmis:canCancelCheckout>false</cmis:canCancelCheckout>
<cmis:canCheckin>false</cmis:canCheckin>
<cmis:canSetContent>true</cmis:canSetContent>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddToFolder>true</cmis:canAddToFolder>

<cmis:canRemoveFromFolder>true</cmis:canRemoveFromFolder>
<cmis:canViewContent>true</cmis:canViewContent>
<cmis:canAddPolicy>false</cmis:canAddPolicy>
<cmis:canGetAppliedPolicies>false</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>false</cmis:canRemovePolicy>
<cmis:canCreateRelationship>true</cmis:canCreateRelationship>
</cmis:allowableActions>
</cmis:object>
<cmis:terminator/>
<app:edited>2009-09-22T09:06:39.486+02:00</app:edited>

<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
</entry>

Thank you very much

Comments

cbalan’s picture

Status: Active » Closed (fixed)

Hello,

In cmis-6.x-3.x we've revisited cmis_sync module.
Can you please run your test again against cmis-6.x-3.0-rc1 version ?
If this issue occurs again, please open a new issue under http://drupal.org/project/cmis project.

Basic documentation can be found in README.txt file shipped with cmis module.

Closing this ticket.

Thank you for your help,
Catalin Balan