[ 
https://issues.apache.org/jira/browse/OLINGO-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Amend resolved OLINGO-746.
------------------------------------
    Resolution: Done
      Assignee: Christian Amend

Hi Ronny,

since we decoupled the Writer from our URI Parser you have to pass the select 
data to the writer in order to only show the relevant properties. You can do 
this by setting calling the method: 
.expandSelectTree(UriParser.createExpandSelectTree(uriInfo.getSelect(), 
uriInfo.getExpand())) at the EntityProviderWriteProperties that you pass to the 
EntityProvider.

This should solve your issue. If you have further questions please reopen the 
issue.

Best Regards,
Christian

> $select is ignored when serialising the output
> ----------------------------------------------
>
>                 Key: OLINGO-746
>                 URL: https://issues.apache.org/jira/browse/OLINGO-746
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.4
>         Environment: Wildfly 9.0.1 Final, JDK 1.8, ODataServlet
>            Reporter: Ronny Bremer
>            Assignee: Christian Amend
>            Priority: Minor
>
> When I use a $select=Col1,Col2 parameter in my ODataV2 server servlet 
> implementation, it looks like the library is going to ignore that completely.
> I can successfully retrieve the SelectItemList from the uriInfo parameter in 
> both readEntity() and readEntitySet() and I made sure, that my responseData 
> parameter passed into EntityWriter.write does only contain the requested 
> properties.
> However, the JSON/XML on the wire will still contain the entire schema with 
> all unrequested properties set to null.
> This does not seem to be the intended behaviour, at least in my eyes.



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

Reply via email to