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

Christian Amend commented on OLINGO-1009:
-----------------------------------------

I think that it would be better if it is configurable. You could make it 
configurable by adding a setting to the serializer or by making it a parameter 
of the EntityCollectionSerializerOptions and the EntitySerializerOptions.

The question I have is about the default. Lets assume someone has implemented a 
service with version 4.2.0 which includes a generic SQL statement creation. In 
this case a client could crash the service by requesting max levels. What would 
you think of either a small default value e.g. 3-4 levels or making the default 
0 and a service developer has to specify max levels explicitly by changing the 
configuration?

Thanks & Best Regards,
Christian

> Provide serilization support for $levels with $expand
> -----------------------------------------------------
>
>                 Key: OLINGO-1009
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1009
>             Project: Olingo
>          Issue Type: New Feature
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.0.0-beta-01
>            Reporter: Ramesh Reddy
>            Assignee: Ramesh Reddy
>             Fix For: (Java) V4 4.3.0
>
>
> Currently Olingo parses the query with $expand with $levels construct, 
> however if the payload contains the nesting of the entities, it does not 
> serialize to the defined $levels



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

Reply via email to