[
https://issues.jboss.org/browse/TEIIDDES-3168?page=com.atlassian.jira.plu...
]
Barry LaFond commented on TEIIDDES-3168:
----------------------------------------
[~rareddy] In debug I checked the info coming back from the server. The JSON from the CLI
call for "allowed" property definition returned the json below. Which matches
up with your odata 4 processor:
https://github.com/teiid/teiid/blob/master/connectors/odata/translator-od...
I think your allowed values string contains a space after each comma. Guess your string
parser isn't trimming each value?
allowed = "COMPLEX, NAVIGATION, ENTITY, ENTITY_COLLECTION, ACTION,
FUNCTION, COMPLEX_COLLECTION, NAVIGATION_COLLECTION",
{code}
{
"type" => STRING,
"required" => true,
"description" => "Type of OData Schema Item",
"display" => "OData Type",
"read-only" => false,
"advanced" => false,
"allowed" => [
"COMPLEX",
" NAVIGATION",
" ENTITY",
" ENTITY_COLLECTION",
" ACTION",
" FUNCTION",
" COMPLEX_COLLECTION",
" NAVIGATION_COLLECTION"
],
"masked" => false,
"owner" =>
"org.teiid.metadata.Table,org.teiid.metadata.Procedure",
"category" => "EXTENSION_METADATA"
}
{code}
OData4 Imported MXD properties have a space
-------------------------------------------
Key: TEIIDDES-3168
URL:
https://issues.jboss.org/browse/TEIIDDES-3168
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 11.1
Reporter: Ramesh Reddy
Priority: Critical
The Metadata Extension Properties that are imported from server for OData4 translator
have leading space in the definition, thus it creates a wrong VDB which fails to run
during the runtime
{code}
<p:property advanced="false" index="true"
masked="false" name="Type" required="true"
type="string">
<p:allowedValue>COMPLEX</p:allowedValue>
<p:allowedValue> NAVIGATION</p:allowedValue>
<p:allowedValue> COMPLEX_COLLECTION</p:allowedValue>
<p:allowedValue> ENTITY_COLLECTION</p:allowedValue>
<p:allowedValue> NAVIGATION_COLLECTION</p:allowedValue>
<p:allowedValue> ENTITY</p:allowedValue>
<p:allowedValue> FUNCTION</p:allowedValue>
<p:allowedValue> ACTION</p:allowedValue>
</p:property>
{code}
see allowed Values with leading white space. I am not sure this is how the server is
providing.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)