You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2019/04/29 21:37:58 UTC
[directory-ldap-api] branch master updated: Applied fix for
DIRAPI-300
This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git
The following commit(s) were added to refs/heads/master by this push:
new 821565d Applied fix for DIRAPI-300
821565d is described below
commit 821565d38784c688a60f4e340704592a33cde015
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Mon Apr 29 23:37:51 2019 +0200
Applied fix for DIRAPI-300
---
.../java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java b/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java
index 5fd6103..ba0edeb 100644
--- a/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java
+++ b/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java
@@ -357,6 +357,8 @@ public class Dsmlv2Engine
return;
}
+ String batchResponseTag = null;
+
if ( respWriter != null )
{
StringBuilder sb = new StringBuilder();
@@ -379,7 +381,7 @@ public class Dsmlv2Engine
sb.append( batchRequest.getRequestID() );
sb.append( "\">" );
- respWriter.write( sb.toString() );
+ batchResponseTag = sb.toString();
}
// Processing each request:
@@ -424,6 +426,9 @@ public class Dsmlv2Engine
return;
}
+ // We can now write the tag, as we don't have an error
+ respWriter.write( batchResponseTag );
+
// (Request == null when there's no more request to process)
while ( request != null )
{