]
Luca Stancapiano updated JBFORUMS-247:
--------------------------------------
Attachment: ForumsJSFPortlet.java
I send you patched ForumsJSFPortlet class
forums and commons-fileupload-1.1
---------------------------------
Key: JBFORUMS-247
URL:
http://jira.jboss.com/jira/browse/JBFORUMS-247
Project: JBoss Forums
Issue Type: Bug
Environment: JBoss as from
http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_0_5_GA_CP06,
JBoss Portal from
http://anonsvn.jboss.org/repos/portal/trunk since 9 july 2007,
JBoss Forums from
http://anonsvn.jboss.org/repos/labs/labs/jbossforums/branches/forums101P26 since 9 july
2007
Reporter: Luca Stancapiano
Assigned To: Ryszard Kozmik
Attachments: ForumsJSFPortlet.java
hi....I send you to see
http://jira.jboss.com/jira/browse/JBPORTAL-1550 by me reported.
It is the same problem......if you post messages using 'multipart/form-data'
through commons-fileupload libs, you miss character encoding because there is a
incompatibility between tomcat 5.5.23 and fileupload 1.1, and then if you try to send
messages with characters as à, è, ì, ò, ù you 'll get problems of decoding with
strange characters of response. Also for Forums I send you a patch. I substituted
getString() method of org.apache.commons.fileupload.disk.DiskFileItem class with
getString( String ...) method, passing inside the character encoding of the request:
org.jboss.portlet.forums.ui.ForumsJSFPortlet : row 560
I write :
newParams.put(item.getFieldName(), new
String[]{item.getString(req.getCharacterEncoding())});
instead of:
newParams.put(item.getFieldName(), new String[]{item.getString()});
org.jboss.portlet.forums.ui.ForumsJSFPortlet : row 564
I write:
String value = item.getString(req.getCharacterEncoding());
instead of:
String value = item.getString();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: