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.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960449#3960449
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960449
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user