Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1267290

Summary: Copying XML Schema Model problem
Product: [JBoss] JBoss Data Virtualization 6 Reporter: skaleta <skaleta>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED NOTABUG QA Contact: Matus Makovy <mmakovy>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 13:21:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
project with schemas none

Description skaleta 2015-09-29 14:45:23 UTC
Created attachment 1078402 [details]
project with schemas

When creating new XML Schema (XSD) Model by copying from existing model (see steps to reproduce), action fails with error (and new empty schema) for some schemas (e.g. schemas in attachement).

Error message: 
Error attempting to load a Model Editor Page plugin
ID = org.teiid.designer.xsd.ui.editor.XsdSimpleDatatypesEditorPage@611ddac3

Exception Stack Trace:
... 
Caused by: org.xml.sax.SAXParseException ... ... lineNumber: 1; columnNumber: 1; Premature end of file.

I assume it might be something with line endings of Windows text files, because it happened only for files originally created in Windows for me (However some schemas created in Windows works properly).

Steps to reproduce:
1. Import attached project
2. Right-click on project and select New > Teiid Metadata Model
3. Set new name and select "XML Schema (XSD)" Model Class, "Datatype" Model Type, Module Builder: "Copy from existing model of the same model class" and click Next >
4. browse for existing: <ImportedProjectName>/notWorking.xsd (or notWorking2.xsd) and click OK and Finish

Comment 1 Barry LaFond 2015-12-07 13:21:26 UTC
Using only JIRA now.  Marking as closed