[teiid-issues] [JBoss JIRA] (TEIID-4361) OData V4 - filter is not working if speces are replaced with '+'
Juraj Duráni (JIRA)
issues at jboss.org
Mon Aug 1 05:56:00 EDT 2016
[ https://issues.jboss.org/browse/TEIID-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juraj Duráni updated TEIID-4361:
--------------------------------
Description:
If spaces in the URL are replaced with '+', Teiid returns error:
{code:plain|title=Working URL}
http://localhost:8080/odata4/static.1/Source/auth?$filter=id eq 1
{code}
{code:plain|title=Not-working URL}
http://localhost:8080/odata4/static.1/Source/auth?$filter=id+eq+1
{code}
{code:xml|title=VDB}
<vdb name="static" version="1">
<model name="Source" type="VIRTUAL">
<metadata type="DDL">
<![CDATA[create view auth (id integer primary key) as select 1]]>
</metadata>
</model>
</vdb>
{code}
{code:xml|title=Error}
<error xmlns="http://docs.oasis-open.org/odata/ns/metadata">
<code>null</code>
<message>
The types 'Edm.Boolean' and 'Edm.Int32' are not compatible.
</message>
</error>
{code}
was:
If spaces in the URL are replaced with '+', Teiid returns error:
{code:plain|title=Working URL}
http://localhost:8080/odata4/static.1/Source/auth?$filter=id eq 1
{code}
{code:plain|title=Not-working URL}
http://localhost:8080/odata4/static.1/Source/auth?$filter=id+eq+1
{code}
{code:xml|title=VDB}
<vdb name="static" version="1">
<model name="Source" type="VIRTUAL">
<metadata type="DDL">
<![CDATA[create view auth (id integer primary key) as select 1]]>
</metadata>
</model>
</vdb>
{code}
> OData V4 - filter is not working if speces are replaced with '+'
> ----------------------------------------------------------------
>
> Key: TEIID-4361
> URL: https://issues.jboss.org/browse/TEIID-4361
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.12.5
> Reporter: Juraj Duráni
> Assignee: Steven Hawkins
>
> If spaces in the URL are replaced with '+', Teiid returns error:
> {code:plain|title=Working URL}
> http://localhost:8080/odata4/static.1/Source/auth?$filter=id eq 1
> {code}
> {code:plain|title=Not-working URL}
> http://localhost:8080/odata4/static.1/Source/auth?$filter=id+eq+1
> {code}
> {code:xml|title=VDB}
> <vdb name="static" version="1">
> <model name="Source" type="VIRTUAL">
> <metadata type="DDL">
> <![CDATA[create view auth (id integer primary key) as select 1]]>
> </metadata>
> </model>
> </vdb>
> {code}
> {code:xml|title=Error}
> <error xmlns="http://docs.oasis-open.org/odata/ns/metadata">
> <code>null</code>
> <message>
> The types 'Edm.Boolean' and 'Edm.Int32' are not compatible.
> </message>
> </error>
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the teiid-issues
mailing list