[
https://issues.apache.org/jira/browse/OLINGO-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364692#comment-14364692
]
Michael Bolz commented on OLINGO-593:
-------------------------------------
Hello [~freds],
as you mentioned in OData V4 it is specified that:
{quote}
...the response body MUST contain the exact count of items matching the request
..., formatted as a simple primitive integer value with media type text/plain.
{quote}
see chapter [11.2.9 Requesting the Number of Items in a
Collection|http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html#_Ref359763299].
Hence, all {{Processor}} methods for which the content type is hard defined in
the specification does not contain a content type parameter.
Kind regards,
Michael
> CountEntityCollectionProcessor:countEntityCollection misses content type
> parameter
> ----------------------------------------------------------------------------------
>
> Key: OLINGO-593
> URL: https://issues.apache.org/jira/browse/OLINGO-593
> Project: Olingo
> Issue Type: Question
> Components: odata4-server
> Affects Versions: (Java) V4 4.0.0-beta-02
> Reporter: Frederic Souchu
> Priority: Minor
>
> The countEntityCollection method does not provide the expected content type.
> It is then impossible to pick the right serializer (unless $count is expected
> to be always produced as a single raw value??).
> {code}
> final ODataFormat format = ODataFormat.fromContentType(????);
> ODataSerializer serializer = odata.createSerializer(format);
> ....
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)