Hi,
I found a couple of fixes for phpClient.
1.
cmis_service.php, line 717
change:
<cmisra:content>
<cmisra:mediatype>
{content_type}
</cmisra:mediatype>
<cmisra:base64>
{content}
</cmisra:base64>
</cmisra:content>
to:
<cmisra:content>
<cmisra:mediatype>{content_type}</cmisra:mediatype>
<cmisra:base64>{content}</cmisra:base64>
</cmisra:content>
2.
cmis_service.php, line 887 method postObject
change:
function
postObject($folderId, $objectName, $objectType, $properties = array (),
$content = null, $content_type = "application/octet-stream", $options =
array ()) {
$myURL = $this->getLink($folderId, "down");
// TODO: Need
Proper Query String Handling
// Assumes that the 'down' link does not
have a querystring in it
if (is_array($properties)) {
$hash_values =
$properties;
} else {
$hash_values = array ();
}
if (!isset
($hash_values["cmis:objectTypeId"])) {
$hash_values["cmis:objectTypeId"] = $objectType;
}
if (!isset
($hash_values['title'])) {
$hash_values['title'] = $objectName;
}
if
(!isset ($hash_values['summary'])) {
$hash_values['summary'] =
$objectName;
}
$this->postEntry($myURL, $hash_values);
}
to:
function postObject($folderId, $objectName, $objectType, $properties =
array (), $content = null, $content_type = "application/octet-stream",
$options = array ()) {
$myURL = $this->getLink($folderId, "down");
//
TODO: Need Proper Query String Handling
// Assumes that the 'down' link
does not have a querystring in it
if (is_array($properties)) {
$hash_values = $properties;
} else {
$hash_values = array ();
}
if
(!isset ($hash_values["cmis:objectTypeId"])) {
$hash_values["cmis:objectTypeId"] = $objectType;
}
if (!isset
($hash_values['title'])) {
$hash_values['title'] = $objectName;
}
if
(!isset ($hash_values['summary'])) {
$hash_values['summary'] =
$objectName;
}
RETURN $this->postEntry($myURL,
$hash_values,$CONTENT,$CONTENT_TYPE);
}
best regards