Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-33686

Incompatibility with Spanish Latin America language in Chrome

XMLWordPrintable

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      If using Spanish - Latin America (es-419) as preferred language in Google Chrome browser, some functionalities in JIRA can cause a 500 Internal Server Error, as the following:

      2013-06-12 09:33:46,648 http-bio-9060-exec-11 ERROR admin 573x398x1 15465ge 127.0.0.1 /rest/project-templates/1.0/templates [jersey.spi.container.ContainerResponse] Mapped exception to response: 500 (Internal Server Error)
      javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag
          at com.sun.jersey.server.impl.model.HttpHelper.clientError(HttpHelper.java:265)
          at com.sun.jersey.server.impl.model.HttpHelper.getAcceptLanguage(HttpHelper.java:222)
          at com.sun.jersey.server.impl.VariantSelector.selectVariant(VariantSelector.java:290)
          at com.sun.jersey.spi.container.ContainerRequest.selectVariant(ContainerRequest.java:679)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  <+2> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)  <+1> (WebApplicationImpl.java:287)
          at com.sun.proxy.$Proxy1948.selectVariant(Unknown Source)  <+3> (Status.java:347) (SecurityExceptionMapper.java:23) (SecurityExceptionMapper.java:15)
          at com.sun.jersey.spi.container.ContainerResponse.mapException(ContainerResponse.java:452)  <+5> (WebApplicationImpl.java:1406) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537)
       
      ...
      Caused by: java.text.ParseException: String, es-419, is not a valid language tag
          at com.sun.jersey.core.header.LanguageTag.parse(LanguageTag.java:122)
          at com.sun.jersey.core.header.AcceptableLanguageTag.<init>(AcceptableLanguageTag.java:69)
          at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(HttpHeaderReader.java:418)
          at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(HttpHeaderReader.java:416)
          at com.sun.jersey.core.header.reader.HttpHeaderReader.readList(HttpHeaderReader.java:465)
          at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptableList(HttpHeaderReader.java:436)
          at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptLanguage(HttpHeaderReader.java:423)  <+1> (HttpHelper.java:220)
      

      We have a KB suggesting a workaround for this:
      https://confluence.atlassian.com/kb/500-internal-server-error-due-to-parseexception-es-419-is-not-a-valid-language-tag-369295958.html

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              aquadrospetry Andre Quadros Petry (Inactive)
              Votes:
              74 Vote for this issue
              Watchers:
              84 Start watching this issue

                Created:
                Updated: