[prev in list] [next in list] [prev in thread] [next in thread] 

List:       woden-dev
Subject:    [jira] [Updated] (WSS-513) Fails to parse Timestamp headers in Thai locale
From:       "Colm O hEigeartaigh (JIRA)" <jira () apache ! org>
Date:       2014-09-22 10:33:33
Message-ID: JIRA.12742621.1411088858000.93071.1411382013749 () Atlassian ! JIRA
[Download RAW message or body]


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

Colm O hEigeartaigh updated WSS-513:
------------------------------------
    Fix Version/s: 1.6.17
                   2.0.2

> Fails to parse Timestamp headers in Thai locale
> -----------------------------------------------
> 
> Key: WSS-513
> URL: https://issues.apache.org/jira/browse/WSS-513
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.6.16
> Environment: Java runtimes running under the th_TH locale
> We experienced it on Windows but it should be OS independent.
> Reporter: Kamishima, Kiyoshi
> Assignee: Colm O hEigeartaigh
> Priority: Critical
> Fix For: 2.0.2, 1.6.17
> 
> 
> In Thai, they seem to be using the Buddhist calendar and JRE defaults to using it. \
> And the SimpleDateFormatter ctor which takes only a pattern uses the default locale \
> to see which calendar system to use. \
> http://docs.oracle.com/javase/7/docs/technotes/guides/intl/calendar.doc.html \
> http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html You can \
> see how the API works like this:
> > jrunscript -J-Duser.language=th -J-Duser.country=TH -e "println( new \
> > java.text.SimpleDateFormat('yyyy-MM-dd\'T\'HH:mm:ss.SSS\'Z\'').parse('2014-01-01T00:00:00.000Z').toString() \
> > )"
> Tue Jan 01 00:00:00 JST 1471
> On the other hand, org.apache.ws.security.util.XmlSchemaDateFormat.parse() always \
> expects the Gregorian calendar is used. If that is the case, it should have \
> configured the formatter with a fixed locale regardless of the default locale.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic