question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

merge update problem with mockserver

See original GitHub issue

Hey there,

I have found an issue with the mockserver. Short description: merge update of some of the properties of a complex type to the mock server removes non-updated properties of the complex type, see log output of a read before/after the change

I want to update 2 fields:

var oData = {
            "Status" : {
                "IsAdditionalNew" : false,
                "IsAdditionalConfirmed" : true
            }
        };

In the Status the model has a third property named “isConfirmed”. After I updated the model with the oData the isConfirmed field disappeared

Before the update the console.log output is: {“__metadata”:{“type”:“MOCKSERVER_BUG.AssignmentStatus”},“IsConfirmed”:false,“IsAdditionalNew”:false,“IsAdditionalConfirmed”:false}

after the update the console.log output is: {“IsAdditionalNew”:false,“IsAdditionalConfirmed”:true}

Here is a short example of the bug: http://plnkr.co/edit/wHq5sw3GvC3UAiarB8lC?p=preview

If you need some more information let me know.

Regards

Jan

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasChadzelekcommented, Feb 28, 2017

“Since the requested behavior is not supported, I will close this issue.”? Isn’t the issue about the fact that the requested behavior is not supported? I do not assume people will change their productive code and introduce workarounds into the way they talk with a real backend system just to make it also work with a mock server.

1reaction
DerGuteWolfcommented, Feb 28, 2017

Hi Ido,

could you at least document this restriction at https://openui5.hana.ondemand.com/#docs/guide/3459c372aaaa4c31ab87bb0e174adcc3.html ? cause this is very surprising to a developer!

Regards, Wolfgang

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - mock-server/mockserver
MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby.
Read more >
jamesdbloom/mockserver - Gitter
i want to get success response and failure response Alternatively for defined times or may be infinitely . is it possible to achieve...
Read more >
A Simple SAPUI5/OpenUI5 App (Template) with OData ...
I add a definition for how the mock server should respond to a MERGE request (by default, SAPUI5 sends a MERGE request for...
Read more >
Test Spring WebClient with MockWebServer from OkHttp
Write tests for your Spring WebClient usage with OkHttp's MockWebServer and mock HTTP responses to test different scenarios.
Read more >
MERGE statement fails with Access Violation at BTreeRow ...
Resolution. This problem is fixed in the following cumulative updates for SQL Server: Cumulative Update 10 for SQL Server 2019 · Cumulative Update...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found