openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Mockserver Issue when the value of a key has a comma

Open Myge91 opened this issue 9 years ago • 2 comments

Hello,

I have found an issue in the mockserver. When you call a read with an expand and the keys has a comma in the value the mockserver assumes that I have a keyfield more than expected

MyEntitySet(myKey='2,5')?$expand=MyExpandEntity

As you can see in the simple example above I just have one key. The mockserver says I have two keys, This is the error message from the mockserver: MockServer: Invalid key predicate. The quantity of provided keys does not match the expected value -

In the file Mockserver-dbg.js line 1872: var aRequestedKeys = sKeys.split(','); it looks like this is the the bugline

I have uploaded an example on Github where you can download an example where the error occours: MockserverBugExample To run the example you have to add the url parameter responderOn=true otherwise the mockserver will not run

I have found this issue in sapui5 version 1.46.12 but this error occours also in the latest openui5 version 1.48.5.

Regards

Jan

Myge91 avatar Aug 11 '17 09:08 Myge91

Hi @Myge91

I have created internal incident with the following id: 1780384691 The colleagues, will answer you here.

Kind Regards, Gery

gerym avatar Aug 11 '17 13:08 gerym

@Myge91, Thank you for the detailed description. The dev team notified us that key values with comma are not supported. For more details, please refer to https://openui5nightly.hana.ondemand.com/#/topic/3459c372aaaa4c31ab87bb0e174adcc3

stephania87 avatar Aug 31 '17 14:08 stephania87