diff options
-rw-r--r-- | eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java | 6 |
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); } |