Summary: | Bug on StandardPipeline.removeValve(Valve valve) for T5.5.16+ | ||
---|---|---|---|
Product: | Tomcat 5 | Reporter: | David Gagnon <dgagnon> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | paul.kemler |
Priority: | P2 | ||
Version: | 5.5.16 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: | The patch on the removeValve Method |
Description
David Gagnon
2006-06-05 14:01:56 UTC
Created attachment 18402 [details]
The patch on the removeValve Method
Seems like a good suggestion: can you please submit your patch in diff -u format? Thank you. Hi, Here is the diff. My patch had a little type by the way i.e.: == instead of = Anyway the following works Regards /David diff -u StandardPipeline.java StandardPipelinePatched.java --- StandardPipeline.java 2006-06-15 15:31:12.637965896 -0400 +++ StandardPipelinePatched.java 2006-06-15 15:30:45.894031592 -0400 @@ -530,6 +530,9 @@ current = current.getNext(); } + // PATCH: Empty the pipeline if only the basic valve is there + if (first == basic) first = null; + if (valve instanceof Contained) ((Contained) valve).setContainer(null); *** Bug 35914 has been marked as a duplicate of this bug. *** Patch applied to SVN and will be in 5.5.21 onwards. Thanks for tracking this down and providing the patch. |