[jira] [Created] (CXF-8353) MediaTypeProviderFactory not handling all invalid media types

2020-10-06 Thread Andy McCright (Jira)
Andy McCright created CXF-8353:
--

 Summary: MediaTypeProviderFactory not handling all invalid media 
types
 Key: CXF-8353
 URL: https://issues.apache.org/jira/browse/CXF-8353
 Project: CXF
  Issue Type: Bug
  Components: JAX-RS
Affects Versions: 3.4.0
Reporter: Andy McCright
Assignee: Andy McCright


According to https://tools.ietf.org/html/rfc2045#section-5.1 there are a lot of 
characters that are not allowed in the type or subtype fields of a MIME 
/MediaType.  Currently, CXF only checks for '/' in the subtype.

Instead it should be checking for:
 tspecials :=  "(" / ")" / "<" / ">" / "@" /
   "," / ";" / ":" / "\" / <">
   "/" / "[" / "]" / "?" / "="
   ; Must be in quoted-string,
   ; to use within parameter values



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (CXF-8353) MediaTypeHeaderProvider not handling all invalid media types

2020-10-06 Thread Andy McCright (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy McCright updated CXF-8353:
---
Summary: MediaTypeHeaderProvider not handling all invalid media types  
(was: MediaTypeProviderFactory not handling all invalid media types)

> MediaTypeHeaderProvider not handling all invalid media types
> 
>
> Key: CXF-8353
> URL: https://issues.apache.org/jira/browse/CXF-8353
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 3.4.0
>Reporter: Andy McCright
>Assignee: Andy McCright
>Priority: Minor
>
> According to https://tools.ietf.org/html/rfc2045#section-5.1 there are a lot 
> of characters that are not allowed in the type or subtype fields of a MIME 
> /MediaType.  Currently, CXF only checks for '/' in the subtype.
> Instead it should be checking for:
>  tspecials :=  "(" / ")" / "<" / ">" / "@" /
>"," / ";" / ":" / "\" / <">
>"/" / "[" / "]" / "?" / "="
>; Must be in quoted-string,
>; to use within parameter values



--
This message was sent by Atlassian Jira
(v8.3.4#803005)