Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322841 - 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.2.2   Edit
Assignee: Valentin Baciu CLA
QA Contact: Valentin Baciu CLA
URL:
Whiteboard:
Keywords:
Depends on: 322836
Blocks: 322842
  Show dependency tree
 
Reported: 2010-08-16 16:31 EDT by Valentin Baciu CLA
Modified: 2010-08-23 14:05 EDT (History)
2 users (show)

See Also:


Attachments
JUnit (3.41 KB, patch)
2010-08-20 11:19 EDT, Valentin Baciu CLA
no flags Details | Diff
Patch (2.11 KB, patch)
2010-08-20 11:19 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: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.