Closed boghyon closed 2 years ago
Hello @boghyon ,
Thank you for sharing this finding. I've created an internal incident 1870102366. The status of the issue will be updated here in GitHub.
Regards, Gery
Note: the above JSBin sample fails now since the public proxy server https://cors-anywhere.herokuapp.com
is no longer usable (See the announcement https://github.com/Rob--W/cors-anywhere/issues/301). And OData sample services such as Northwind don't support CORS yet: https://github.com/OData/ODataSamples/issues/29
Hello, We currently support mockserver in maintenance mode, meaning that only regression issues are handled. Therefore, if this usa case functionality wasn't supported it won't be fixed.
If this issue is still relevant please consider to raise this issue/requirement to the Fiori Tech Program. We also accept contribution. Please use this contribution process guide: https://github.com/SAP/openui5/blob/master/CONTRIBUTING.md#contribution-content-guidelines
Thanks and regards, Licam
OpenUI5 version:
Tested with 1.52.7 and 1.55.0-SNAPSHOT
URL (minimal example if possible):
https://jsbin.com/nojaru/edit?js,console
Steps to reproduce the problem:
Given: Entities with a nullable property whose value can be an actual
null
(instead of empty string). In the example case above, it's the"Region"
property from theEmployees
set.read
success callback, observe how the mock server returns 0 employees when filtered by "Region" withvalue1: null
andoperator: "EQ"
. Ifoperator: "NE"
is used, all employees are returned as if no filter were applied.useMockServer
tofalse
and wait until the real results have arrived (with the same filter)What is the expected result?
Filtering with a mock server behaves like filtering without.
What happens instead?
Surprise and confusion
Any other information? (attach screenshot if possible)
The example uses the proxy service
https://cors-anywhere.herokuapp.com
. It might be possible that the example fails to work due to too many requests having been sent through the proxy. In this case, try running the example at a later time.