Skip to content

Commit

Permalink
Merge pull request #6 from privacybydesign/escape-logs-error-assert-t…
Browse files Browse the repository at this point in the history
…est-controller

Fix: escape error logging in ErrorAssertTestController
  • Loading branch information
bobhageman authored Dec 18, 2023
2 parents d8eac00 + 83a9e35 commit 5a7d68d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import nl.sidn.irma.saml_bridge.model.RedirectInstruction;
import nl.sidn.irma.saml_bridge.model.RequestError;
import nl.sidn.irma.saml_bridge.util.JwtUtil;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
Expand Down Expand Up @@ -73,7 +74,7 @@ private void constructTest(
RequestError requestError,
String endpointUrl) throws IOException, DecodingException {
if (requestError != null) {
log.info("Test Error Assert with requestError: {}", requestError);
log.info("Test Error Assert with requestError: {}", StringEscapeUtils.escapeJava(requestError.toString()));
}

String[][][] condiscon = { { { ATTRIBUTE_KEY } } };
Expand Down

0 comments on commit 5a7d68d

Please sign in to comment.