diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-06-17 13:51:22 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-06-17 13:51:22 +0200 |
commit | e9f365ecbbdf20a67e81179780121f3f922a87c6 (patch) | |
tree | 8145d25295e49b24088922522bf195003eb231cd /id/server/idserverlib/src/main/java/at | |
parent | 8b51a5eef55764746eebdeaa19b31e7eda3813e3 (diff) | |
download | moa-id-spss-e9f365ecbbdf20a67e81179780121f3f922a87c6.tar.gz moa-id-spss-e9f365ecbbdf20a67e81179780121f3f922a87c6.tar.bz2 moa-id-spss-e9f365ecbbdf20a67e81179780121f3f922a87c6.zip |
redirect to dispatch error is not necessary if SP protocol does not support errormessages
Diffstat (limited to 'id/server/idserverlib/src/main/java/at')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/entrypoints/DispatcherServlet.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/entrypoints/DispatcherServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/entrypoints/DispatcherServlet.java index 3a5026948..0d34fcb87 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/entrypoints/DispatcherServlet.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/entrypoints/DispatcherServlet.java @@ -493,14 +493,18 @@ public class DispatcherServlet extends AuthServlet{ } catch (Throwable e) { Logger.warn("An authentication error occured: ", e);; // Try handle module specific, if not possible rethrow - if (!info.generateErrorMessage(e, req, resp, protocolRequest)) { - throw e; - } + if (!info.generateErrorMessage(e, req, resp, protocolRequest)) + handleErrorNoRedirect(e.getMessage(), e, req, + resp); + } + } catch (WrongParametersException ex) { handleWrongParameters(ex, req, resp); + } catch (MOAIDException ex) { handleError(null, ex, req, resp, protocolRequestID); + } catch (Throwable e) { handleErrorNoRedirect(e.getMessage(), e, req, resp); |