Michael Bolz created OLINGO-755:
-----------------------------------

             Summary: 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


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)

Reply via email to