Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322842 - Wrong default value generated for base64binary simple types
Summary: Wrong default value generated for base64binary simple types
Status: CLOSED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsd (show other bugs)
Version: 3.2.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3 M2   Edit
Assignee: Valentin Baciu CLA
QA Contact: Valentin Baciu CLA
URL:
Whiteboard:
Keywords:
Depends on: 322836 322841
Blocks:
  Show dependency tree
 
Reported: 2010-08-16 16:31 EDT by Valentin Baciu CLA
Modified: 2010-08-23 13:48 EDT (History)
2 users (show)

See Also:


Attachments
JUnit (3.41 KB, patch)
2010-08-20 11:47 EDT, Valentin Baciu CLA
no flags Details | Diff
Patch (1.42 KB, patch)
2010-08-20 11:47 EDT, Valentin Baciu CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.