I happened to find out that if one is in the Settings page, then goes
to Compose, and sends a message, one gets this exception:
javax.servlet.ServletException: Cannot find bean
core_model_mailidentity in any scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageExcepti
on(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:758)
org.apache.jsp.preferences_jsp._jspService(preferences_jsp.java:
1865)
...
I think the reason is that, when the send finishes, it will forward
back to the previous page. In this case it is the Settings page.
But, this bean no longer exists at that point.
Should there be a single place that a compose returns to?
Thanks,
==Leonard
Logged In: YES
user_id=36782
Leonard,
Once again we are tapping into the problem of trying to be too
intelligent.
I will take a look at the mechanism that keeps track of the history
and the redirection and try to find a solution for the problem.
If this adds too much complexity, I would agree to remve this
mechanism, however, in this case we need to decide where to
redirect the user.
I think what I wanted to prevent with this mechanism in first place, was
the users temptation to use the "Back" Button in the browser, which
might simply cause a similiar problem that is even more difficult to trace
down.
Regards,
Dieter
Logged In: YES
user_id=620875
Dieter,
Didn't you have a fix for this? I thought it was fixed in CVS, but now I find
that it is not.
Thanks,
==Leonard
Logged In: YES
user_id=36782
I have committed a workaround that should resolve the issue for the
moment. It seems to work properly in a local test. Probably you can
confirm it.
Regards,
Dieter
Changes:
diff -r1.1 MailIdentityBeanTag.java
25c25
< m_Scope = "request";
---
> m_Scope = "page"; //TODO: this is part of the "fix".
diff -r1.4 preferences.jsp
144a145,148
> <bean:define id="core_model_mailidentity" name="<%=
CoreGlobals.PREFERENCES_BEAN %>"
> property="mailIdentity"
> scope="page" toScope="page"
type="net.wimpi.webmail.mail.model.JwmaMailIdentity"/>
>
Logged In: YES
user_id=620875
I've verified that your fix works at my site, Dieter. Thanks!
After sending the composed mail, I'm returned to the Settings page.
==Leonard
Logged In: YES
user_id=36782
Comment for keeping track:
This issue is basically an effect of Bug #1209951
The workaround fixes the problem, but the root cause has not
been fixed.