<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Activiti process deployment though REST service failing in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-deployment-though-rest-service-failing/m-p/213541#M166671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's hard to say without seeing the entire body of the request. The correct Activiti logic is called (org.activiti.rest.service.api.repository.DeploymentColelctionResource) and it throws the exception due to this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (multipartRequest.getFileMap().size() == 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiIllegalArgumentException("Multipart request with file content is required");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps the request body isn't formatted correctly or could the content length header perhaps not be sent?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:: Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Nov 2015 12:40:23 GMT</pubDate>
    <dc:creator>erikwinlof</dc:creator>
    <dc:date>2015-11-27T12:40:23Z</dc:date>
    <item>
      <title>Activiti process deployment though REST service failing</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-deployment-though-rest-service-failing/m-p/213540#M166670</link>
      <description>Hi,I tried to deploy a process (zip file containing the process only, a very simple process with one human task only) through REST service, But it is failing with this error{message: "Bad request"exception: "Multipart request with file content is required"}The URL I hit is - http://localhost:8080/ac</description>
      <pubDate>Thu, 26 Nov 2015 07:00:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-deployment-though-rest-service-failing/m-p/213540#M166670</guid>
      <dc:creator>kanchan_ghosh</dc:creator>
      <dc:date>2015-11-26T07:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti process deployment though REST service failing</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-deployment-though-rest-service-failing/m-p/213541#M166671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's hard to say without seeing the entire body of the request. The correct Activiti logic is called (org.activiti.rest.service.api.repository.DeploymentColelctionResource) and it throws the exception due to this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (multipartRequest.getFileMap().size() == 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiIllegalArgumentException("Multipart request with file content is required");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps the request body isn't formatted correctly or could the content length header perhaps not be sent?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:: Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 12:40:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-deployment-though-rest-service-failing/m-p/213541#M166671</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2015-11-27T12:40:23Z</dc:date>
    </item>
  </channel>
</rss>

