[JBoss JIRA] (TEIID-5563) Separate the Teiid connectors into their own repo
by Van Halbert (Jira)
Van Halbert created TEIID-5563:
----------------------------------
Summary: Separate the Teiid connectors into their own repo
Key: TEIID-5563
URL: https://issues.jboss.org/browse/TEIID-5563
Project: Teiid
Issue Type: Task
Components: Build/Kits, Integration Tests
Affects Versions: 12.x
Reporter: Van Halbert
Assignee: Steven Hawkins
Separate the Teiid connectors into their own repo to make it easier to manage the Teiid project dependencies separate from the connectors.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 7 months
[JBoss JIRA] (TEIID-5559) odata4 NPE when accessing VDB including FK relationship across models
by Steven Hawkins (Jira)
[ https://issues.jboss.org/browse/TEIID-5559?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-5559.
-----------------------------------
Fix Version/s: 12.0
11.2.1
Resolution: Done
Updated the building of the metadata such that navigations are built after the main metadata and add the necessary references to both sides of the navigation.
> odata4 NPE when accessing VDB including FK relationship across models
> ---------------------------------------------------------------------
>
> Key: TEIID-5559
> URL: https://issues.jboss.org/browse/TEIID-5559
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.12.16.6_4
> Reporter: Marc Shirley
> Assignee: Steven Hawkins
> Priority: Major
> Fix For: 12.0, 11.2.1
>
>
> Receive error [2] when attempting to access table that utilizes a foreign key to another model with URL like [1]. access to the other model (that the foreign key references) works correctly.
> [1] http://127.0.0.1:8080/odata4/fktest/fkmodel/
> [2]
> JBWEB000309: type JBWEB000066: Exception report
> JBWEB000068: message
> JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.
> JBWEB000070: exception
> org.teiid.core.TeiidRuntimeException
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:58)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
> JBWEB000071: root cause
> java.lang.NullPointerException
> org.teiid.olingo.service.ODataSchemaBuilder.addReverseNavigation(ODataSchemaBuilder.java:308)
> org.teiid.olingo.service.ODataSchemaBuilder.buildNavigationProperties(ODataSchemaBuilder.java:251)
> org.teiid.olingo.service.ODataSchemaBuilder.buildEntityTypes(ODataSchemaBuilder.java:144)
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:54)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 7 months
[JBoss JIRA] (TEIID-5559) odata4 NPE when accessing VDB including FK relationship across models
by Steven Hawkins (Jira)
[ https://issues.jboss.org/browse/TEIID-5559?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-5559:
---------------------------------------
The pr has been updated to use references rather than multiple schema per document.
> odata4 NPE when accessing VDB including FK relationship across models
> ---------------------------------------------------------------------
>
> Key: TEIID-5559
> URL: https://issues.jboss.org/browse/TEIID-5559
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.12.16.6_4
> Reporter: Marc Shirley
> Assignee: Steven Hawkins
> Priority: Major
>
> Receive error [2] when attempting to access table that utilizes a foreign key to another model with URL like [1]. access to the other model (that the foreign key references) works correctly.
> [1] http://127.0.0.1:8080/odata4/fktest/fkmodel/
> [2]
> JBWEB000309: type JBWEB000066: Exception report
> JBWEB000068: message
> JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.
> JBWEB000070: exception
> org.teiid.core.TeiidRuntimeException
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:58)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
> JBWEB000071: root cause
> java.lang.NullPointerException
> org.teiid.olingo.service.ODataSchemaBuilder.addReverseNavigation(ODataSchemaBuilder.java:308)
> org.teiid.olingo.service.ODataSchemaBuilder.buildNavigationProperties(ODataSchemaBuilder.java:251)
> org.teiid.olingo.service.ODataSchemaBuilder.buildEntityTypes(ODataSchemaBuilder.java:144)
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:54)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 7 months
[JBoss JIRA] (TEIID-5561) Prevent alias collisions with built-in odata schema
by Steven Hawkins (Jira)
Steven Hawkins created TEIID-5561:
-------------------------------------
Summary: Prevent alias collisions with built-in odata schema
Key: TEIID-5561
URL: https://issues.jboss.org/browse/TEIID-5561
Project: Teiid
Issue Type: Quality Risk
Components: OData
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 12.1
It is problematic to have a Teiid model/schema with the name:
olingo-extensions
teiid
edm
as that will use an alias that conflicts with built-in handling. We should provide an error/warning as appropriate or come up with the logic to introduce a non-conflicting alias.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 7 months
[JBoss JIRA] (TEIID-5559) odata4 NPE when accessing VDB including FK relationship across models
by Steven Hawkins (Jira)
[ https://issues.jboss.org/browse/TEIID-5559?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-5559:
---------------------------------------
Here's what will work: https://github.com/teiid/teiid/pull/1107
The code will now load all of the structural metadata first, then process the fks.
> What is update referenced schemas involve? I mean what needs to be updated?
You have to add the CsdlSchema for the fk to the pk side and vice versa to the provider.
> odata4 NPE when accessing VDB including FK relationship across models
> ---------------------------------------------------------------------
>
> Key: TEIID-5559
> URL: https://issues.jboss.org/browse/TEIID-5559
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.12.16.6_4
> Reporter: Marc Shirley
> Assignee: Steven Hawkins
> Priority: Major
>
> Receive error [2] when attempting to access table that utilizes a foreign key to another model with URL like [1]. access to the other model (that the foreign key references) works correctly.
> [1] http://127.0.0.1:8080/odata4/fktest/fkmodel/
> [2]
> JBWEB000309: type JBWEB000066: Exception report
> JBWEB000068: message
> JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.
> JBWEB000070: exception
> org.teiid.core.TeiidRuntimeException
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:58)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
> JBWEB000071: root cause
> java.lang.NullPointerException
> org.teiid.olingo.service.ODataSchemaBuilder.addReverseNavigation(ODataSchemaBuilder.java:308)
> org.teiid.olingo.service.ODataSchemaBuilder.buildNavigationProperties(ODataSchemaBuilder.java:251)
> org.teiid.olingo.service.ODataSchemaBuilder.buildEntityTypes(ODataSchemaBuilder.java:144)
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:54)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 7 months
[JBoss JIRA] (TEIID-5557) Restrict imports to a single schema
by Steven Hawkins (Jira)
[ https://issues.jboss.org/browse/TEIID-5557?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-5557:
---------------------------------------
The first step will be to issue a warning from the JDBC translator if:
- useFullSchemaName is true
- if more than one schema is used to pull metadata
> Restrict imports to a single schema
> -----------------------------------
>
> Key: TEIID-5557
> URL: https://issues.jboss.org/browse/TEIID-5557
> Project: Teiid
> Issue Type: Quality Risk
> Components: Connector API
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Priority: Major
> Fix For: 12.x, 13.0
>
>
> To better align with SQL/MED and to simplify legacy import properties it would be best to restrict foreign imports to a single schema. This will remove quite a bit of confusion around potential duplicate object names.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 7 months
[JBoss JIRA] (TEIID-5559) odata4 NPE when accessing VDB including FK relationship across models
by RH Bugzilla Integration (Jira)
[ https://issues.jboss.org/browse/TEIID-5559?page=com.atlassian.jira.plugin... ]
RH Bugzilla Integration updated TEIID-5559:
-------------------------------------------
Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1655711
Bugzilla Update: Perform
> odata4 NPE when accessing VDB including FK relationship across models
> ---------------------------------------------------------------------
>
> Key: TEIID-5559
> URL: https://issues.jboss.org/browse/TEIID-5559
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.12.16.6_4
> Reporter: Marc Shirley
> Assignee: Steven Hawkins
> Priority: Major
>
> Receive error [2] when attempting to access table that utilizes a foreign key to another model with URL like [1]. access to the other model (that the foreign key references) works correctly.
> [1] http://127.0.0.1:8080/odata4/fktest/fkmodel/
> [2]
> JBWEB000309: type JBWEB000066: Exception report
> JBWEB000068: message
> JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.
> JBWEB000070: exception
> org.teiid.core.TeiidRuntimeException
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:58)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
> JBWEB000071: root cause
> java.lang.NullPointerException
> org.teiid.olingo.service.ODataSchemaBuilder.addReverseNavigation(ODataSchemaBuilder.java:308)
> org.teiid.olingo.service.ODataSchemaBuilder.buildNavigationProperties(ODataSchemaBuilder.java:251)
> org.teiid.olingo.service.ODataSchemaBuilder.buildEntityTypes(ODataSchemaBuilder.java:144)
> org.teiid.olingo.service.ODataSchemaBuilder.buildMetadata(ODataSchemaBuilder.java:54)
> org.teiid.olingo.service.OlingoBridge.getHandler(OlingoBridge.java:54)
> org.teiid.olingo.web.ODataFilter.internalDoFilter(ODataFilter.java:228)
> org.teiid.olingo.web.ODataFilter.doFilter(ODataFilter.java:100)
> org.teiid.olingo.web.CorsFilter.doFilter(CorsFilter.java:80)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 7 months