Issue Details (XML | Word | Printable)

Key: JAXB-928
Type: Bug Bug
Status: In Progress In Progress
Priority: Major Major
Assignee: Iaroslav Savytskyi
Reporter: arnabbiswas1
Votes: 2
Watchers: 2

If you were logged in you would be able to see more operations.

Improper unmarshalling of invalid integer value while schema validation is turned off

Created: 04/Nov/12 01:21 PM   Updated: 25/Jan/13 10:16 AM
Component/s: runtime
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


apache cxf, linux

Tags: unmarshalling jaxb
Participants: arnabbiswas1 and Iaroslav Savytskyi

 Description  « Hide

In our product we use Apache CXF as web services framework. Because of performance restriction, the schema validation has been set to false. Now, for an integer element if invalid value is provided, JAXB is unmarshaling it to som other value. For example,

9999999999 is converted into 1410065407.

988888888888 is converted into 1046410808.

Martin Grebac made changes - 13/Nov/12 12:44 PM
Field Original Value New Value
Assignee Martin Grebac [ snajper ] Iaroslav Savytskyi [ yaroska ]
Iaroslav Savytskyi made changes - 24/Jan/13 04:17 PM
Status Open [ 1 ] In Progress [ 3 ]
Iaroslav Savytskyi added a comment - 25/Jan/13 10:16 AM

Blaise comment here:

According to the spec we have to:

  • set 0 into int
  • set null into Integer
  • throw error.