Summary: | Tomcat accept-language parsing doesn't properly handle IETF BCP47 language tags | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Andy Wang <dopey> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.0.55 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Andy Wang
2014-08-13 14:45:23 UTC
This has been fixed in 8.0.x for 8.0.11 onwards. This has also been fixed in 7.0.x for 7.0.56 onwards. The fix is Java 7 specific. Tomcat 7 has to run on Java 6 and there simply isn't the support for BCP47 in the Java 7 API. I'm leaning towards resolving this as WONTFIX. Would it make sense to try to use reflection and only support BCP47 if Java 7+ is used? I was in two minds whether or nor it was worth doing this. In the end, we had another requirement for something similar so this got included in the general solution. It will be in 7.0.60 onwards. |