openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.core.util.MockServer: issue when EDM.DateTimeOffset in key predicate

Open jasper07 opened this issue 10 years ago • 4 comments

OpenUI5 version: 1.3X.X

Steps to reproduce the problem:

  1. Create an entity with 2 key fields one of the properties is type EDM.DateTimeOffset
  2. Query the Entity using mockdata
  3. Inspect the results

What is the expected result? context path should look like /MyEntity(Key1='1234',Key2=datetimeoffset'2016-04-30T16%3A00%3A00Z')

What happens instead? in the Mockserver i can see the query is not parsing JSON Date

/MyEntity(Key1='1234',Key2=Date(1234567890)')

the result is the OData Model Context path resembles ')'

Any other information? (attach screenshot if possible) if i change Key2 to type EDM.DateTime I get the following expected result

/MyEntity(Key1='1234',Key2=datetime'2016-04-30T16%3A00%3A00Z')

jasper07 avatar May 04 '16 09:05 jasper07

Hi John,

I forwarded this internally as 1670303058 to the team that knows better about this kind of things than I do...

Regards Andreas

akudev avatar May 10 '16 09:05 akudev

Hi John, MockServer doesn't support EDM.DateTimeOffset properties. See documentation: https://openui5.hana.ondemand.com/#docs/guide/3459c372aaaa4c31ab87bb0e174adcc3.html Thanks, Alex

avizov avatar May 10 '16 09:05 avizov

Hi Alex, FYI - the entire non-SAP world does not have access to your internal servers #justsaying

grahamrobbo avatar May 10 '16 10:05 grahamrobbo

@grahamrobbo: thanks :-)

codeworrior avatar May 10 '16 11:05 codeworrior