[
https://issues.jboss.org/browse/JBSEAM-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795008#comment-12795008
]
Martin Gainty commented on JBSEAM-4822:
---------------------------------------
every RE parser I have used expects RE reserved characters to be escaped
otherwise the parser will try to perform some action such as replacing the token
with a new token
escape the character ; to \;
and retry
> MultipartRequestImpl incorrect parse filename with semicolon
> ------------------------------------------------------------
>
> Key: JBSEAM-4822
> URL: https://issues.jboss.org/browse/JBSEAM-4822
> Project: Seam 2
> Issue Type: Bug
> Affects Versions: 2.2.0.GA
> Reporter: Krzysztof Borgul
> Priority: Minor
>
> When I uploaded file with semicolon in name,
> org.jboss.seam.web.MultipartRequestImpl.parseParams incorrect parse header
> line:
> Content-Disposition: form-data; name="form:fileUpload"; filename="x;a.txt"
> It was split on four parts:
> Content-Disposition: form-data
> name="form:fileUpload"
> filename="x
> a.txt"
> ,but should be
> Content-Disposition: form-data
> name="form:fileUpload"
> filename="x;a.txt"
> The problem is in the regular expression used as split method parameter.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues