You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2022/04/22 13:31:00 UTC
[jira] [Updated] (ISIS-3017) [Wicket Viewer] WebRequestCycleForIsis does not display recognizable error.
[ https://issues.apache.org/jira/browse/ISIS-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber updated ISIS-3017:
-----------------------------
Summary: [Wicket Viewer] WebRequestCycleForIsis does not display recognizable error. (was: WebRequestCycleForIsis does not display recognizable error.)
> [Wicket Viewer] WebRequestCycleForIsis does not display recognizable error.
> ---------------------------------------------------------------------------
>
> Key: ISIS-3017
> URL: https://issues.apache.org/jira/browse/ISIS-3017
> Project: Isis
> Issue Type: Bug
> Components: Wicket Viewer
> Affects Versions: 2.0.0-M7
> Reporter: Miklós Győrfi
> Assignee: Andi Huber
> Priority: Major
>
> In WebRequestCycleForIsis onException there is a code:
> {code:java}
> val exceptionRecognizerService = getExceptionRecognizerService();
> val recognizedIfAny = exceptionRecognizerService.recognize(ex);
> if(recognizedIfAny.isPresent()) {
> return respondGracefully(cycle);
> } {code}
> So it recognizes the error, but does not display it.
>
> Maybe
>
> {code:java}
> val exceptionRecognizerService = getExceptionRecognizerService();
> val recognizedIfAny = exceptionRecognizerService.recognize(ex);
> if(recognizedIfAny.isPresent()) {
> getMessageBroker().ifPresent(broker->{
> String msg = recognizedIfAny.get().toMessage(getCommonContext().getTranslationService());
> if (msg != null) {
> broker.addMessage(
> msg);
> }
> });
> return respondGracefully(cycle);
> }
> {code}
> could work well.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)