[
https://issues.apache.org/jira/browse/OLINGO-892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15168576#comment-15168576
]
Michael Bolz commented on OLINGO-892:
-------------------------------------
After a (deeper) look into the OData V2 specification it is defined in section
"[2.2.3.6 Query
Options|https://msdn.microsoft.com/en-us/library/dd541437.aspx]”:
{quote}
Query option names and values MUST be treated as case sensitive.
{quote}
Based on this and that the “asc / desc” are treated as values of the query
option the decision is that the behaviour of Olingo is fine and this is no bug.
As another sample the official OData services also does not allow “ASC/DESC”.
-
http://services.odata.org/V2/(S(1b0tupuyoyuzsoboxpiujm04))/OData/OData.svc/Products?$orderby=Price%20ASC
-
http://services.odata.org/V2/Northwind/Northwind.svc/Customers?$orderby=City%20DESC
> ASC/DESC for $orderby system query option is case sensitive
> -----------------------------------------------------------
>
> Key: OLINGO-892
> URL: https://issues.apache.org/jira/browse/OLINGO-892
> Project: Olingo
> Issue Type: Bug
> Affects Versions: V2 2.0.6
> Reporter: Michael Bolz
> Assignee: Michael Bolz
> Priority: Minor
>
> The {{ASC}} / {{DESC}} for {{$orderby}} system query option is case sensitive.
> This should not be the case because based on V2 specification and [ABNF RFC
> 5234|https://tools.ietf.org/html/rfc5234] (chapter 2.3. Terminal Values on
> page 4) this should be handled as case insensitive.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)