You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Jérémy (JIRA)" <ji...@apache.org> on 2016/11/02 11:03:58 UTC

[jira] [Created] (CMIS-1003) [CMIS PHP Client] Mime Type sent

Jérémy created CMIS-1003:
----------------------------

             Summary: [CMIS PHP Client] Mime Type sent
                 Key: CMIS-1003
                 URL: https://issues.apache.org/jira/browse/CMIS-1003
             Project: Chemistry
          Issue Type: Bug
          Components: cmis-phplib
         Environment: Production
            Reporter: Jérémy
            Priority: Critical


When you send a file to Alfresco via Chemistry CMIS PHP Client, the mime type is sent with whitespace.

It's in the cmis_service.php line 739.

It should not have whitespace like this :

/**
	 * @internal
	 */
	static function getContentTemplate() {
		ob_start();
?>
		<cmisra:content>
			<cmisra:mediatype>{content_type}</cmisra:mediatype>
			<cmisra:base64>{content}</cmisra:base64>
		</cmisra:content>
<?php


		return ob_get_clean();
	}


In the case there is white space, the full text search can not work on those document and the mime type in the share not working.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)