This is an automated email from the ASF dual-hosted git repository.

rareddy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git


The following commit(s) were added to refs/heads/master by this push:
     new 6c3781f  OLINGO-1355: correcting the error code check
6c3781f is described below

commit 6c3781f1789355796fb5d7cea6958f60011ea47c
Author: Ramesh Reddy <[email protected]>
AuthorDate: Sun Sep 1 20:57:06 2019 -0500

    OLINGO-1355: correcting the error code check
---
 .../main/java/org/apache/olingo/server/core/requests/BatchRequest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/requests/BatchRequest.java
 
b/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/requests/BatchRequest.java
index 5f39f9b..4572c3e 100644
--- 
a/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/requests/BatchRequest.java
+++ 
b/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/requests/BatchRequest.java
@@ -80,7 +80,7 @@ public class BatchRequest extends ServiceRequest {
         try {
           txnId = handler.startTransaction();
           partResponse = processChangeSet(part, handler);
-          if (partResponse.getResponses().get(0).getStatusCode() > 400) {
+          if (partResponse.getResponses().get(0).getStatusCode() >= 400) {
             handler.rollback(txnId);
           } else {
             handler.commit(txnId);

Reply via email to