Download & Extend

CMIS API error in CMIS Field

Project:CMIS API
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:nard0207
Status:active
Issue tags:alfresco, CMIS, CMIS alfresco, CMIS API, CMIS Field

Issue Summary

Hi! As i add a new CMIS Field into a Content Type I get the error in the picture.

I have installed "CMIS API 7.x-1.x-dev". enabled CMIS API, CMIS common, CMIS repositories. I have also added these lines to settings.php file:

<?php
$conf
['cmis_sync_map']['page']['fields'] = array(
 
'title' => 'cmis:name',
 
'custom_cck_field' => 'some cmis custom property'
);

$conf['cmis_sync_map']['page']['fields'] = array(
  array(
'drupal' => 'title', 'cmis' => 'cmis:name', 'drupal to cmis' => TRUE, 'cmis to drupal' => TRUE),
  array(
'drupal' => 'custom_cck_field', 'cmis' => 'some cmis custom property', 'drupal to cmis' => TRUE, 'cmis to drupal' => TRUE),
 
 
// copy cmis:objectId to custom_cck_field2 drupal field.
  // 'drupal to cmis' => FALSE, 'cmis to drupal' => TRUE means that only custom_cck_field2 Drupal field is updated.
  // sync process will not try to update cmis:objectId from custom_cck_field2 field's value.
 
array('drupal' => 'custom_cck_field2', 'cmis' => 'cmis:objectId', 'drupal to cmis' => FALSE, 'cmis to drupal' => TRUE)
);

?>

Any idea how to make CMIS Field work?

Comments

#1

I did same configuration with both synchronization TRUE.
But only default cmis fields are being migrated i am not able to migrate fields of custom content type of alfresco.

Following are my settings.

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

$conf['cmis_sync_map'] = array(
 
'page' => array(
   
'enabled' => TRUE,
   
'cmis_folderPath' => '/testspace',
   
'full_sync_next_cron' => TRUE,
 
'fields' => array(
     array(
'drupal' => 'cck_field_1', 'cmis' => 'cmis:creationDate', 'cmis to drupal' => TRUE, 'drupal to cmis' => TRUE),
       array(
'drupal' => 'cck_field_2', 'cmis' => 'adv:firstName', 'cmis to drupal' => TRUE, 'drupal to cmis' => TRUE),
     array(
'drupal' => 'cck_field_3', 'cmis' => 'adv:middleName', 'cmis to drupal' => TRUE, 'drupal to cmis' => TRUE),
     array(
'drupal' => 'cck_field_4', 'cmis' => 'adv:lastName', 'cmis to drupal' => TRUE, 'drupal to cmis' => TRUE),
    ),
  ),
);
?>

What i get is only creation date is migrated from alfresco content other fields are not being migrated.....
And yes one more thing

when i edit this migrated content and value of cck_field 1,2,3 it gets update on alfresco on cron run.