You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Aleksandr Mashchenko (JIRA)" <ji...@apache.org> on 2015/02/04 20:11:34 UTC

[jira] [Created] (WW-4457) FileUploadInterceptor uses injected pattern matcher

Aleksandr Mashchenko created WW-4457:
----------------------------------------

             Summary: FileUploadInterceptor uses injected pattern matcher
                 Key: WW-4457
                 URL: https://issues.apache.org/jira/browse/WW-4457
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors
            Reporter: Aleksandr Mashchenko


Currently {{FileUploadInterceptor}} uses injected pattern matcher for checking {{allowedTypes}}, which yields inconsistent behavior with different default pattern matchers. Some mime types which are working fine with {{WildcardHelper}} are not working with the {{RegexPatternMatcher}} because of the special regex character presented in them (e.g. image/svg+xml - {{+}} is a special character in regex).

Are there any point in injecting patter matcher in file upload interceptor?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)