-
1. Re: GPD deployment and commons file upload version
koen.aers Jul 24, 2006 10:33 AM (in response to alf_dave)I saw this issue earlier. I will change this for the next GPD releases into a ';' if http requires this. Unfortunately this is hardcoded so it requires recompilation :-(
Regards,
Koen -
2. Re: GPD deployment and commons file upload version
olivier_debels Jul 24, 2006 11:57 AM (in response to alf_dave)Hi,
You can also take a look at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85253&postdays=0&postorder=asc&start=0
For a temporary solution (until this is fixed in gpd) you can tweak the DeployServlet (in webapp) to use your own DiskFileUploadEx (extension of DiskFileUpload in commons-fileupload). Just override the getBoundary method to use a ',' when calling parser.parse instead of a ';'.protected byte[] getBoundary(String contentType) { ParameterParser parser = new ParameterParser(); parser.setLowerCaseNames(true); Map params = parser.parse(contentType, ','); String boundaryStr = (String) params.get("boundary"); if (boundaryStr == null) return null; byte boundary[]; try { boundary = boundaryStr.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingException e) { boundary = boundaryStr.getBytes(); } return boundary; }
This will at this moment let you deploy using gpd without having to switch back to commons-fileupload 1.0...
Olivier. -
3. Re: GPD deployment and commons file upload version
koen.aers Jul 24, 2006 12:02 PM (in response to alf_dave)Thanks for the suggestion Olivier
Regards,
Koen -
4. Re: GPD deployment and commons file upload version
alf_dave Jul 24, 2006 12:17 PM (in response to alf_dave)Thanks - that worked well.
Regards,
David Caruana
Alfresco -
5. Re: GPD deployment and commons file upload version
ashokmadi Oct 15, 2006 9:15 AM (in response to alf_dave)Can any one please tell me how to provide file upload feature in a workflow or in an action class in JBPM 3.1?
Thanks in advance.
ashok