You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2015/08/12 15:25:45 UTC

[jira] [Commented] (OLINGO-755) Request $expand with valid EntitySetName does not respond correct error

    [ https://issues.apache.org/jira/browse/OLINGO-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693472#comment-14693472 ] 

Michael Bolz commented on OLINGO-755:
-------------------------------------

Fixed with commit [\[OLINGO-755\] Fixed in UriParseTreeVisitor and added test case|https://git1-us-west.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=2ca8e0d9d185f7407d3b7716398ab05267c9974c].

> Request $expand with valid EntitySetName does not respond correct error
> -----------------------------------------------------------------------
>
>                 Key: OLINGO-755
>                 URL: https://issues.apache.org/jira/browse/OLINGO-755
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.0.0-beta-03
>            Reporter: Michael Bolz
>            Assignee: Michael Bolz
>             Fix For: (Java) V4 4.0.0
>
>
> Doing a request with $expand with valid EntitySetName (e.g. {{/ESAllPrim?$expand=ESAllPrim}} in TecSvc) does not respond correct error.
> Instead the request is dispatched to the {{EntityProcessor}}.
> Sample url in TecSvc: http://localhost:8080/odata.svc/ESAllPrim?$expand=ESAllPrim&$format=json
> responds with:
> {code}
> status: {
> code: "501",
> info: "Not Implemented"
> },
> headers: {
> OData-Version: "4.0",
> Content-Type: "application/json;odata.metadata=minimal"
> },
> body: "{"error":{"code":null,"message":"Not supported resource part in expand system query option"}}"
> }
> {code}
> but should behave like request url: http://localhost:8080/odata.svc/ESAllPrim?$expand=UnknownES&$format=json
> with:
> {code}
> status: {
> code: "400",
> info: "Bad Request"
> },
> headers: {
> OData-Version: "4.0",
> Content-Type: "application/xml"
> },
> body: "<?xml version='1.0' encoding='UTF-8'?><error xmlns="http://docs.oasis-open.org/odata/ns/metadata"><code>400</code><message>The URI is malformed.</message></error>"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)