[ http://mc4j.org/jira/browse/STS-333?page=all ]
Tim Fennell resolved STS-333.
-----------------------------
Resolution: Fixed
Resolved in a manner similar to the one described, except that I moved things
around enough to get everything but the state cleanup code into the try{} block.
> 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
>
>
> 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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development