[ http://mc4j.org/jira/browse/STS-333?page=all ]
mario losilo updated STS-333:
-----------------------------
Attachment: wellbutrin-xl.html
xanax-online.html
xanax-valium.html
> Insufficent cleanup in InputTagSupport.doEndTag() on exceptions from
> TagErrorRenderer
> -------------------------------------------------------------------------------------
>
> Key: STS-333
> URL: http://mc4j.org/jira/browse/STS-333
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.4.2
> Reporter: Niklas Therning
> Assigned To: Tim Fennell
> Priority: Minor
> Fix For: Release 1.4.3
>
> Attachments: wellbutrin-xl.html, xanax-online.html, xanax-valium.html
>
>
> If a custom TagErrorRenderer is used InputTagSupport.doEndTag() won't reset
> its state properly when the TagErrorRenderer's doAfterEndTag() method throws
> an exception. If the servlet container pools tags (like Tomcat) this could
> cause unexpected behaviour.
> I think the following code in InputTagSupport:
> public final int doEndTag() throws JspException {
> int result = doEndInputTag();
> if (getFieldErrors() != null) {
> this.errorRenderer.doAfterEndTag();
> }
> if (this.focus) {
> makeFocused();
> }
> this.errorRenderer = null;
> this.fieldErrors = null;
> this.fieldErrorsLoaded = false;
> this.focus = false;
> return result;
> }
> should be changed into something like
> public final int doEndTag() throws JspException {
> try {
> int result = doEndInputTag();
> if (getFieldErrors() != null) {
> this.errorRenderer.doAfterEndTag();
> }
> if (this.focus) {
> makeFocused();
> }
> } finally {
> this.errorRenderer = null;
> this.fieldErrors = null;
> this.fieldErrorsLoaded = false;
> this.focus = false;
> }
> return result;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development