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

Bug 322842

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.3 M2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 322836, 322841    
Bug Blocks:    
Attachments:
Description Flags
JUnit
none
Patch none

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

+++ 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:47:23 EDT
Created attachment 177106 [details]
JUnit
Comment 2 Valentin Baciu CLA 2010-08-20 11:47:37 EDT
Created attachment 177107 [details]
Patch
Comment 3 Valentin Baciu CLA 2010-08-20 11:50:44 EDT
Patches committed and released for WTP 3.3 M2 builds > v201008201550 UTC.
Comment 4 Valentin Baciu CLA 2010-08-23 13:47:55 EDT
Verified with I-3.3.0-20100820215027.
Comment 5 Valentin Baciu CLA 2010-08-23 13:48:04 EDT
Closing.