[
https://issues.jboss.org/browse/TEIIDDES-1300?page=com.atlassian.jira.plu...
]
Paul Richardson commented on TEIIDDES-1300:
-------------------------------------------
The columns are derived from TeiidColumnInfo objects, which already have validation
checking performed on construction. It seems that this validation is already failing due
to the ":" in the name and the TeiidColumnInfo instance's status set to
Error. This status is in turn assigned to the status of the encompassing TeiidXMLFileInfo
instance. However, this info object's status is never checked by the xml import wizard
(TeiidXMLImportWizard), unlike the flat file wizard (TeiidMetadataImportWizard) (see
TeiidMetadataImportFormatPage.validatePage()).
Proposals:
a) Have the XML wizard page (TeiidXmlImportXmlConfigurationPage) observe the status of the
info object and error until the columns have been changed by the user.
b) TeiidColumnInfo has a nameValidator inside it used for the validation. This also has
the ability to 'fix' the name to make it valid. Modify the constructor responsible
for setting the name, to fix the name before assigning it. This would impact both the xml
and file wizards, but I think would be helpful to both.
Personally, favour option b but I think the page validation, mentioned in option a, does
need fixing as well.
Validate Column Names in XML to Relational Importer
---------------------------------------------------
Key: TEIIDDES-1300
URL:
https://issues.jboss.org/browse/TEIIDDES-1300
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 7.7
Reporter: Ted Jones
Assignee: Paul Richardson
Fix For: 7.7.1
Need to validate the names used to create columns in the transformation to consume an XML
document. Some elements are namespace qualified and can be of the form
{ns_prefix}:elementName. The colon will cause a validation error and should be parsed and
removed prior to creating the column and generating the transformation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira