You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "M Carissimi (JIRA)" <ji...@apache.org> on 2018/01/22 21:51:00 UTC

[jira] [Reopened] (OLINGO-883) Datetime literal is case sensitive

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

M Carissimi reopened OLINGO-883:
--------------------------------

This issue is still occurring in 2.0.10.

Invoking a URL with $filter=((FROM_DATE%20eq%20DateTime%272007-01-01T00:00:00Z%27)) fails for two reasons:
 # "DateTime" is not accepted, only "datetime" is recognised as valid
 # the "Z" at the end of the date time is not correctly parsed

In both cases we see a org.apache.olingo.odata2.api.uri.UriSyntaxException:Invalid filter expression: '((FROM_DATE eq DateTime'2007-01-01T00:00:00'))'

I have checked the code in version 2.0.10 and it contains the changes in commit [https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=891d3ddd4011bebf36443d398d45b0fffbeb7795,] but clearly there's something else stopping the URL from being parsed correctly

Can you please review this issue as it's making it impossible for clients using Spotfire to use our service?

> Datetime literal is case sensitive
> ----------------------------------
>
>                 Key: OLINGO-883
>                 URL: https://issues.apache.org/jira/browse/OLINGO-883
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.5
>            Reporter: Dirk Mahler
>            Assignee: Christian Amend
>            Priority: Major
>             Fix For: V2 2.0.7
>
>
> We're using Spotfire's ODATA connector to retrieve data. For datetime columns the following filter is generated:
> {code}
> MyTimeStamp ge DateTime'2016-01-01T00:00:00'
> {code}
> Olingo fails parsing the filter because it expects "DateTime" to be in lower-case, i.e. "datetime"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)