summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_auth_sl20
diff options
context:
space:
mode:
authorThomas <>2023-09-07 20:33:19 +0200
committerThomas <>2023-09-07 20:33:19 +0200
commit4762b04a0fe72b2993697e6877d81cbb4ba08bf4 (patch)
treea1052a1938e44e7b01c27a1d07fa074f68529c6b /eaaf_modules/eaaf_module_auth_sl20
parentd406280d08066d4c269899a49eb8b275a747044b (diff)
downloadEAAF-Components-4762b04a0fe72b2993697e6877d81cbb4ba08bf4.tar.gz
EAAF-Components-4762b04a0fe72b2993697e6877d81cbb4ba08bf4.tar.bz2
EAAF-Components-4762b04a0fe72b2993697e6877d81cbb4ba08bf4.zip
fix(sl20): wrong error-response in case of a invalid data-url access
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20')
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
index 7ba58108..a2b2a132 100644
--- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
+++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
@@ -5,7 +5,6 @@ import java.util.Map;
import org.apache.commons.fileupload2.core.FileUploadException;
import org.apache.commons.lang3.StringUtils;
-import org.apache.hc.core5.http.ContentType;
import org.jose4j.base64url.Base64Url;
import org.springframework.beans.factory.annotation.Autowired;
@@ -69,10 +68,9 @@ public abstract class AbstractReceiveQualEidTask extends AbstractAuthServletTask
log.debug("Received SL2.0 result: " + sl20Result);
}
try {
- response.setContentType(ContentType.APPLICATION_JSON.toString());
- response.sendError(500, "Internal Server Error.");
+ SL20ResponseUtils.buildErrorResponse(response, "2000", "General transport Binding error");
- } catch (final IOException e1) {
+ } catch (final Exception e1) {
log.error("Can NOT send error message. SOMETHING IS REALY WRONG!", e);
}