Bug 1122470

Summary: Teiid Designer doesn't clean up vdb.xml properly (Data Roles - conditions)
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Matus Makovy <mmakovy>
Component: ToolingAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: atangrin, dlesage, vhalbert
Target Milestone: ---   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Teiid Designer was not deleting permission tags cleanly from vdb.xml. A code change has been applied and, as a result, the tags now delete correctly from the XML file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-17 18:07:10 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:

Description Matus Makovy 2014-07-23 10:45:29 UTC
I don't know if it is a bug or there is some reason for that.

When I create a condition for Data Role(& Save VDB) and then remove the condition(& Save VDB) Teiid Designer doesn't delete whole <permission> tag only the <condition> tag

For example:
Before removing

<permission>
<resource-name>Products_view.PRODUCTDATA</resource-name>
<condition constraint="true">ISAMEXINT=1</condition>
</permission>

After removing:

<permission>
<resource-name>Products_view.PRODUCTDATA</resource-name>
</permission>

I my opinion Teiid Designer should delete whole <permission> tag and leave nothing behind, in case this tag contains only <resource-name> tag

Comment 1 JBoss JIRA Server 2014-07-23 16:17:49 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2260 to Resolved

Comment 2 Matus Makovy 2014-09-02 09:22:34 UTC
verified on 8.3.4

Comment 3 JBoss JIRA Server 2014-11-17 16:25:39 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2260 to Closed