{"action":"opened","issue":{"url":"https://api.github.com/repos/SAP/openui5/issues/1125","repository_url":"https://api.github.com/repos/SAP/openui5","labels_url":"https://api.github.com/repos/SAP/openui5/issues/1125/labels{/name}","comments_url":"https://api.github.com/repos/SAP/openui5/issues/1125/comments","events_url":"https://api.github.com/repos/SAP/openui5/issues/1125/events","html_url":"https://github.com/SAP/openui5/issues/1125","id":173226016,"number":1125,"title":"OData response to update call in $batch problematic in version 1.38?","user":{"login":"ssimsekler","id":13860600,"avatar_url":"https://avatars.githubusercontent.com/u/13860600?v=3","gravatar_id":"","url":"https://api.github.com/users/ssimsekler","html_url":"https://github.com/ssimsekler","followers_url":"https://api.github.com/users/ssimsekler/followers","following_url":"https://api.github.com/users/ssimsekler/following{/other_user}","gists_url":"https://api.github.com/users/ssimsekler/gists{/gist_id}","starred_url":"https://api.github.com/users/ssimsekler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssimsekler/subscriptions","organizations_url":"https://api.github.com/users/ssimsekler/orgs","repos_url":"https://api.github.com/users/ssimsekler/repos","events_url":"https://api.github.com/users/ssimsekler/events{/privacy}","received_events_url":"https://api.github.com/users/ssimsekler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-25T14:54:59Z","updated_at":"2016-08-25T14:54:59Z","closed_at":null,"body":"**OpenUI5 version:** 1.38.7\r\n\r\n**Browser/version (+device/version):** Chrome 52.0.2743.116 m\r\n\r\n**Any other tested browsers/devices(OK/FAIL):** IE 11 - FAIL\r\n\r\n**Steps to reproduce the problem:**\r\n\r\nThe app uses OData model (v2), i.e. say oODataModel, and the OData model is configured to use batch.\r\n\r\n1. User modifies a simple data for an entity. By this, oODataModel adds a change set containing a MERGE request to the to-be-called $batch request. Additionally, further GET requests are added to the same $batch request.\r\n2. User hits Save which calls oODataModel.submitChanges() and the $batch request is sent to the backend SAP system.\r\n3. Application reads the oData parameter of the event batchRequestCompleted and based on the elements of the requests array, checks the response field of each array element to decide whether the relevant operation was successful or not.\r\n\r\n**What is the expected result?**\r\nE.g. in v1.28: The update operation response is marked as \"success=true\", the HTTP response code is \"204 - No content\"\r\n\r\n**What happens instead?**\r\nIn v1.38: The update operation response is marked as \"success=false\", the HTTP response code says \"0 - abort\"\r\n\r\n**Any other information? (attach screenshot if possible)**\r\n- In both cases, data is updated successfully at the backend system\r\n- For update operations, SAP Gateway seems to always send \"204 - No content\"\r\n- Making the update operation use PUT instead of MERGE does not change the result\r\n\r\n![scn_odata_update_problem_03](https://cloud.githubusercontent.com/assets/13860600/17973827/ca55adcc-6adb-11e6-96a1-dfc2616b6653.jpg)\r\n"}}
{"actor":{"display_login":"ssimsekler"}}