[JBoss JIRA] Created: (TEIIDDES-557) VDB archives use absolute paths for model files
by Randall Hauch (JIRA)
VDB archives use absolute paths for model files
-----------------------------------------------
Key: TEIIDDES-557
URL: https://jira.jboss.org/browse/TEIIDDES-557
Project: Teiid Designer
Issue Type: Bug
Components: VDB & Execution
Affects Versions: 7.0
Reporter: Randall Hauch
I've been looking at the structure of the VDB files, and although they appear to be in standard JAR format, the archive structure doesn't seem right. Here's the archive listing of one recently-created VDB file:
$ jar -tf PartsFromXml.vdb
META-INF/vdb.xml
/XmlParts/PartsData.xmi
runtime-inf/1200573655.INDEX
/XmlParts/PartsView.xmi
runtime-inf/1842644986.INDEX
Notice the leading '/' on the model files, which is not correct. Here's what I see when I extract the contents:
$ ls -la
total 16
drwxr-xr-x 3 rhauch rhauch 102B Aug 14 10:34 ./
drwxr-xr-x 16 rhauch rhauch 544B Aug 14 10:34 ../
-rw-r--r--@ 1 rhauch rhauch 5.5K Aug 14 10:34 PartsFromXml.vdb
$ jar -xvf PartsFromXml.vdb
inflated: META-INF/vdb.xml
inflated: /XmlParts/PartsData.xmi
inflated: runtime-inf/1200573655.INDEX
inflated: /XmlParts/PartsView.xmi
inflated: runtime-inf/1842644986.INDEX
$ ls -la
total 16
drwxr-xr-x 5 rhauch rhauch 170B Aug 14 10:34 ./
drwxr-xr-x 16 rhauch rhauch 544B Aug 14 10:34 ../
drwxr-xr-x 3 rhauch rhauch 102B Aug 14 10:34 META-INF/
-rw-r--r--@ 1 rhauch rhauch 5.5K Aug 14 10:34 PartsFromXml.vdb
drwxr-xr-x 4 rhauch rhauch 136B Aug 14 10:34 runtime-inf/
Notice that the models were extracted, but because of the leading '/' they were not extracted to the same location as the other files in the archive. Instead, they were extracted to the root of my file system:
$ ls -la /XmlParts
total 24
drwxr-xr-x 4 rhauch admin 136 Aug 14 10:34 .
drwxrwxr-t 35 root admin 1258 Aug 14 10:34 ..
-rw-r--r-- 1 rhauch admin 2367 Aug 11 09:27 PartsData.xmi
-rw-r--r-- 1 rhauch admin 5534 Aug 11 09:27 PartsView.xmi
The entries for the models should be relative (like the rest of the JAR entries) and should not have a leading '/'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (TEIIDDES-514) Create Data Policy Wizard/Editor launched from VDB Editor
by Barry LaFond (JIRA)
Create Data Policy Wizard/Editor launched from VDB Editor
---------------------------------------------------------
Key: TEIIDDES-514
URL: https://jira.jboss.org/browse/TEIIDDES-514
Project: Teiid Designer
Issue Type: Task
Components: Editors, VDB & Execution
Affects Versions: 7.1
Reporter: Barry LaFond
Assignee: Barry LaFond
Priority: Critical
Fix For: 7.1
1) Data Policies are VDB-centric.
2) There can be ZERO or more data policies within a VDB.
3) A data policy can define permissions (CRUD) on models, tables and columns that span "Models".
A) VDB Editor needs to provide some Data Policy access on the basic editor page. Maybe the "User Files" bottom group is broken up into two panels, the RIGHT panel being "Data Policies".
Create a Wizard that can Create AND Edit a data policy.
Wizard/Dialog should be able to Select any of the models contained in the VDB (that allow entitlements. Maybe just relational?)
- Contain an Editable "Name" field.
- Contain an Editable "Role Name" field.
- Contain a Tree-Table with contents of selected Model AND 4 checkboxes to handle CRUD values
- Enablement of CRUD check-boxes should be driven from "Supports Updates" values for both Virtual and Physical relational table data.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (TEIIDDES-539) Previewing a new model created from "Save As" does not result in Preview VDB and throws exception
by Barry LaFond (JIRA)
Previewing a new model created from "Save As" does not result in Preview VDB and throws exception
-------------------------------------------------------------------------------------------------
Key: TEIIDDES-539
URL: https://jira.jboss.org/browse/TEIIDDES-539
Project: Teiid Designer
Issue Type: Bug
Components: Data Preview, VDB & Execution
Affects Versions: 7.1, 7.1.1
Reporter: Barry LaFond
Assignee: Dan Florian
Priority: Critical
Fix For: 7.1.1
1) Had created PartsO and PartsV tested fine.
2) Then created PartsOCopy via Save As action
3) Then tried to preview PartsOCopy.Parts and got exception due to PartsOCopy's PVDB was not created nor deployed.
4) Opened that model in editor, moved table and "saved" resulted in PVDB being created.
5) Executed again and worked.
java.lang.reflect.InvocationTargetException
at com.metamatrix.modeler.internal.dqp.ui.actions.PreviewTableDataContextAction$1.run(PreviewTableDataContextAction.java:170)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: An unexpected error occurred processing the Preview VDB error markers.
at org.teiid.designer.runtime.preview.PreviewManager.previewSetup(PreviewManager.java:892)
at com.metamatrix.modeler.internal.dqp.ui.actions.PreviewTableDataContextAction$1.run(PreviewTableDataContextAction.java:166)
... 1 more
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/Barry_Test_A/1629efb8-7d2d-49bf-b793-11f61b5259c3_Barry_Test_A_PartsOCopy.vdb' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:326)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:200)
at org.eclipse.core.internal.resources.Resource.findMarkers(Resource.java:1013)
at org.teiid.designer.vdb.Vdb.getProblems(Vdb.java:267)
at org.teiid.designer.runtime.preview.PreviewManager.checkPreviewVdbForErrors(PreviewManager.java:243)
at org.teiid.designer.runtime.preview.PreviewManager.previewSetup(PreviewManager.java:889)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months