Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322841

Summary: Wrong default value generated for base64binary simple types
Product: [WebTools] WTP Source Editing Reporter: Valentin Baciu <valentinbaciu>
Component: wst.xsdAssignee: Valentin Baciu <valentinbaciu>
Status: CLOSED FIXED QA Contact: Valentin Baciu <valentinbaciu>
Severity: normal    
Priority: P3 CC: ccc, thatnitind
Version: 3.2.1   
Target Milestone: 3.2.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 322836    
Bug Blocks: 322842    
Attachments:
Description Flags
JUnit
none
Patch none

Description Valentin Baciu CLA 2010-08-16 16:31:12 EDT
+++ This bug was initially created as a clone of Bug #322836 +++

Created an attachment (id=176724)
Sample schema

To recreate the problem:
- place the attached schema in a workspace project (if using a simple project, add the validation builder)
- right click the schema and select Generate->XML...
- use the default values in the wizard
- click Finish

The generator produces an XML instance with the following validation errors:

Description	Resource	Path	Location	Type
cvc-datatype-valid.1.2.1: '0' is not a valid value for 'base64Binary'.	Test.xml	TestBase64	line 3	XML Problem
cvc-type.3.1.3: The value '0' of element 'tns:Test' is not valid.	Test.xml	TestBase64	line 3	XML Problem
Comment 1 Valentin Baciu CLA 2010-08-20 11:19:19 EDT
Created attachment 177103 [details]
JUnit
Comment 2 Valentin Baciu CLA 2010-08-20 11:19:34 EDT
Created attachment 177104 [details]
Patch
Comment 3 Valentin Baciu CLA 2010-08-20 11:22:19 EDT
Patches committed and released to WTP 3.2.2 builds > v201008201521 UTC.
Comment 4 Valentin Baciu CLA 2010-08-23 14:05:18 EDT
Verified with M-3.2.2-20100823061035.
Comment 5 Valentin Baciu CLA 2010-08-23 14:05:28 EDT
Closing.