[
https://issues.apache.org/jira/browse/OLINGO-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aarzoo Aggarwal updated OLINGO-1274:
------------------------------------
Description:
We create an entity query relation like below -
The request - [http://ip:host/odata/entity(x)?$filter=z%20eq%203|http://iphost/]
Very obviously , we cannot create a filter on a single entity.But the problem
is that the response that we recieve is as below -
{
"error": {
"code": null,
"message": "The system query option '$filter' is not allowed."
}
}
We expect a valid status code to be returned here .
was:
We create an entity with A primary key reference.
The request - [http://ip:host/odata/entity?$select=key,col1,|http://iphost/]col2
The same request when tried with select query parameter having columns except
the primary key like -
[http://ip:host/odata/entity?$select=col1,|http://iphost/]col2 - stops working
with json format.
Getting the same result works fine with request header set as -
Accept=application/xml
It gives a null pointer exception with Accept=application/json with following
trace -
java.lang.NullPointerException: null
at
org.apache.olingo.server.core.uri.UriHelperImpl.findPropertyRefValue(UriHelperImpl.java:125)
at
org.apache.olingo.server.core.uri.UriHelperImpl.buildKeyPredicate(UriHelperImpl.java:88)
at
org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.getEntityId(ODataJsonSerializer.java:334)
at
org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeEntity(ODataJsonSerializer.java:399)
at
org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeEntitySet(ODataJsonSerializer.java:312)
at
org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.entityCollection(ODataJsonSerializer.java:198
> URIParserError gives null response code in response body
> --------------------------------------------------------
>
> Key: OLINGO-1274
> URL: https://issues.apache.org/jira/browse/OLINGO-1274
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core, odata4-client, odata4-commons, odata4-server
> Affects Versions: (Java) V4 4.4.0
> Reporter: Aarzoo Aggarwal
> Priority: Major
>
> We create an entity query relation like below -
> The request -
> [http://ip:host/odata/entity(x)?$filter=z%20eq%203|http://iphost/]
> Very obviously , we cannot create a filter on a single entity.But the problem
> is that the response that we recieve is as below -
> {
> "error": {
> "code": null,
> "message": "The system query option '$filter' is not allowed."
> }
> }
>
> We expect a valid status code to be returned here .
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)