cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6999) Undocumented IllegalArgumentException thrown on getAcceptableLanguages
Date Fri, 26 Aug 2016 12:34:20 GMT

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

Sergey Beryozkin resolved CXF-6999.
-----------------------------------
    Resolution: Not A Problem
      Assignee: Sergey Beryozkin

Please re-open if you can confirm RI (Jersey) reacts differently. You can also avoid the auto-conversion
to Locale and convert manually

> Undocumented IllegalArgumentException thrown on getAcceptableLanguages
> ----------------------------------------------------------------------
>
>                 Key: CXF-6999
>                 URL: https://issues.apache.org/jira/browse/CXF-6999
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.0
>            Reporter: Neeraj Krishna
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>
> The following exception stack trace is observed when an user provides incorrect language
header and getAcceptableLanguages is invoked in the implementation of ExceptionMapper
> err] java.lang.IllegalArgumentException: Illegal locale value : zh-Hans-VN
> 2016-08-02T09:48:39.691+0530
> [App/2]
> err
> [err] at org.apache.cxf.jaxrs.utils.HttpUtils.getLocale(HttpUtils.java:281)
> 2016-08-02T09:48:39.692+0530
> [App/2]
> err
> [err] at org.apache.cxf.jaxrs.utils.ExceptionUtils.convertFaultToResponse(ExceptionUtils.java:86)
> 2016-08-02T09:48:39.692+0530
> [App/2]
> err
> [err] at org.apache.cxf.jaxrs.impl.tl.ThreadLocalHttpHeaders.getAcceptableLanguages(ThreadLocalHttpHeaders.java:57)



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

Mime
View raw message