DO NOT REPLY [Bug 51953] Proposal: netmask filtering valve and filter

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51953 --- Comment #10 from Francis Galiegue 2011-10-05 09:22:33 UTC --- Created attachment 27694 --> https://issues.apache.org/bugzilla/attachment.cgi?id=27694 Alternative netmask class, using byte arrays Here is another implementation using

[PATCH] Fix suspicious logic operator usage

2011-10-05 Thread Francis Galiegue
Found by FindBugs. startService() and stopService() both return boolean, so it is likely that the '&' is a typo and '&&' was meant. --- .../tribes/membership/McastServiceImpl.java|2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/java/org/apache/catalina/tribes/membe

Re: [PATCH] Fix suspicious logic operator usage

2011-10-05 Thread Pid
File a bug, attach the patch to the bug etc... p On 5 October 2011 11:33, Francis Galiegue wrote: > Found by FindBugs. startService() and stopService() both return boolean, so it > is likely that the '&' is a typo and '&&' was meant. > --- >  .../tribes/membership/McastServiceImpl.java        |  

DO NOT REPLY [Bug 51960] New: Fix suspicious boolean operator usage in org.apache.catalina.tribes.membership.McastServiceImpl

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51960 Bug #: 51960 Summary: Fix suspicious boolean operator usage in org.apache.catalina.tribes.membership.McastServiceImpl Product: Tomcat 7 Version: trunk Platform: PC

DO NOT REPLY [Bug 51953] Proposal: netmask filtering valve and filter

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51953 --- Comment #11 from Francis Galiegue 2011-10-05 12:51:19 UTC --- This crude test using the following code shows indeed that the byte array based implementation is indeed MUCH faster: private static final int COUNT = 5;

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #4 from Kari Scott 2011-10-05 13:57:57 UTC --- If I had to choose between a new context attribute or mucking with my CompressionFilter with something "that isn't pretty", well, I'm going to go with the attribute. :-) Was the o

DO NOT REPLY [Bug 51953] Proposal: netmask filtering valve and filter

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51953 --- Comment #12 from Christopher Schultz 2011-10-05 14:21:03 UTC --- I like this NetMask implementation *much* better. It took me a while to convince myself that it was correct, but it looks good to me, now. :) There are only a few nits o

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #5 from Christopher Schultz 2011-10-05 14:33:50 UTC --- FWIW, the javadoc for javax.servlet.Filter specifically mentions "compression" as a type of Filter one might want to build. Though not exactly part of the spec, Tomcat sho

DO NOT REPLY [Bug 51953] Proposal: netmask filtering valve and filter

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51953 --- Comment #13 from Francis Galiegue 2011-10-05 14:38:27 UTC --- (In reply to comment #12) > I like this NetMask implementation *much* better. It took me a while to > convince myself that it was correct, but it looks good to me, now. :) >

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #6 from Jess Holle 2011-10-05 14:41:46 UTC --- If you look at the JSP source in question, it simply calls sendRedirect() in a scriptlet. The issue here is that the auto-generated JSP source, whitespace, etc, will try to write m

DO NOT REPLY [Bug 51960] Fix suspicious boolean operator usage in org.apache.catalina.tribes.membership.McastServiceImpl

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51960 Christopher Schultz changed: What|Removed |Added Severity|normal |trivial --- Comment #1 from

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #7 from Jess Holle 2011-10-05 14:46:20 UTC --- I'd think the ideal case might be to hide the sendRedirect() response body generation from getOutputStream() and getWriter() entirely. getOutputStream() and getWriter() could reall

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #8 from Kari Scott 2011-10-05 14:51:20 UTC --- It's exactly what Jess said, it's the auto-generated JSP code that's the problem. And, we do have returns after all of our sendRedirects but in this simple test it wouldn't compile

DO NOT REPLY [Bug 51960] Fix suspicious boolean operator usage in org.apache.catalina.tribes.membership.McastServiceImpl

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51960 --- Comment #2 from Konstantin Kolinko 2011-10-05 14:56:19 UTC --- (In reply to comment #1) > That means that & and && are equivalent They are not equivalent. The difference is that "&&" returns result immediately of its left operand is f

DO NOT REPLY [Bug 51960] Fix suspicious boolean operator usage in org.apache.catalina.tribes.membership.McastServiceImpl

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51960 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 51960] Fix suspicious boolean operator usage in org.apache.catalina.tribes.membership.McastServiceImpl

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51960 --- Comment #4 from Francis Galiegue 2011-10-05 15:29:30 UTC --- OK, but a comment above this operator usage wouldn't be lost code imnsho -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are re

DO NOT REPLY [Bug 51953] Proposal: netmask filtering valve and filter

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51953 --- Comment #14 from Christopher Schultz 2011-10-05 15:35:07 UTC --- (In reply to comment #13) > But I'm really not convinced that string matching is a good idea. It > may be for IPv4, but for IPv6 it will be a mess. I think you're right.

svn commit: r1179268 - /tomcat/trunk/java/org/apache/jasper/JspC.java

2011-10-05 Thread kkolinko
Author: kkolinko Date: Wed Oct 5 15:38:38 2011 New Revision: 1179268 URL: http://svn.apache.org/viewvc?rev=1179268&view=rev Log: Resolve "Redundant null check: the variable cannot be null at this location" warning. The JspC constructor cannot throw a JasperException. Modified: tomcat/trunk/

svn commit: r1179274 - /tomcat/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java

2011-10-05 Thread kkolinko
Author: kkolinko Date: Wed Oct 5 15:44:58 2011 New Revision: 1179274 URL: http://svn.apache.org/viewvc?rev=1179274&view=rev Log: Resolve a warning about unboxing operation. Perform unboxing explicitly. Modified: tomcat/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java Modified: tomc

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #9 from Jess Holle 2011-10-05 16:39:59 UTC --- If making this behavior transparent to callers is seen as too much overhead/mess/whatever, then I'd vote to revert the sendRedirect() RFC fix. I actually prefer that sendRedirect()

Re: svn commit: r1179274 - /tomcat/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java

2011-10-05 Thread Tim Funk
I'm a little confused. On a quick glance of the method ... it appears the method setProperty should be returning true if it did something, and false if not. This would mean the cast is not needed (actually wrong). The fact that the method did NOT throw an exception should mean that we should return

Re: svn commit: r1179274 - /tomcat/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java

2011-10-05 Thread Konstantin Kolinko
2011/10/5 Tim Funk : > I'm a little confused. On a quick glance of the method ... it appears the > method setProperty should be returning true if it did something, and false > if not. This would mean the cast is not needed (actually wrong). We are calling a method that returns boolean, and cast is

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #10 from Konstantin Kolinko 2011-10-05 17:03:49 UTC --- 1. Making the behaviour optional, as suggested in Comment 2, should not hurt. 2. I think that CompressionServletResponseWrapper in this example could overwrite the sendRe

DO NOT REPLY [Bug 51966] New: Tomcat does not support ssha hashed of passwords in all contexts

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51966 Bug #: 51966 Summary: Tomcat does not support ssha hashed of passwords in all contexts Product: Tomcat 6 Version: 6.0.33 Platform: PC Status: NEW

DO NOT REPLY [Bug 51966] Tomcat does not support ssha hashed passwords in all contexts

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51966 Adam Caldwell changed: What|Removed |Added Summary|Tomcat does not support |Tomcat does not support

DO NOT REPLY [Bug 51741] Eclipse WTP "Serve modules without publishing" broken with tc7, needs patch in tomcat

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51741 --- Comment #7 from Larry Isaacs 2011-10-05 21:06:41 UTC --- Sylvain, Thanks for your work on this. I've verified the ".getResource()" is fixed in Tomcat 7.0.22 for "Serve modules without publishing". Unfortunately, the testing revealed

DO NOT REPLY [Bug 51972] New: sendRedirect does not support protocol relative URLs

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51972 Bug #: 51972 Summary: sendRedirect does not support protocol relative URLs Product: Tomcat 7 Version: 7.0.22 Platform: All OS/Version: All Status: NEW Seve

DO NOT REPLY [Bug 51952] IllegalStateException using CompressionFilter with Tomcat 7.0.21/22

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51952 --- Comment #11 from Christopher Schultz 2011-10-05 21:36:31 UTC --- (In reply to comment #6) > If you look at the JSP source in question, it simply calls sendRedirect() in a > scriptlet. The issue here is that the auto-generated JSP sour

DO NOT REPLY [Bug 51966] Tomcat does not support ssha hashed passwords in all contexts

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51966 Christopher Schultz changed: What|Removed |Added Attachment #27699|0 |1 is patch|

DO NOT REPLY [Bug 51966] Tomcat does not support ssha hashed passwords in all contexts

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51966 --- Comment #2 from Christopher Schultz 2011-10-05 21:58:49 UTC --- I like this idea (and have been considering it for a while), but I don't like the implementation due to the following reasons: 1. Uses part of the password as the salt, w

DO NOT REPLY [Bug 51972] sendRedirect does not support protocol relative URLs

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51972 --- Comment #1 from Mark Thomas 2011-10-05 22:12:49 UTC --- The JavaDoc for sendRedirect requires that anything that starts with '/' is treated as server relative. I'm not sure if that is what was intended but it is certainly what the spec

DO NOT REPLY [Bug 51966] Tomcat does not support ssha hashed passwords in all contexts

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51966 --- Comment #3 from Adam Caldwell 2011-10-05 22:16:39 UTC --- Thank you for the great feedback. The salt isn't part of the users password. If you look at the digest method that's used to generate the encoded password, it is 4 random bytes.

DO NOT REPLY [Bug 51966] Tomcat does not support ssha hashed passwords in all contexts

2011-10-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51966 Adam Caldwell changed: What|Removed |Added Attachment #27699|0 |1 is obsolete|

[Tomcat Wiki] Update of "Roger Mbiama" by Roger Mbiama

2011-10-05 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Roger Mbiama" page has been changed by Roger Mbiama: http://wiki.apache.org/tomcat/Roger%20Mbiama New page: ##language:en == Your Name == Email: <> ... CategoryHomepage --

[Tomcat Wiki] Update of "Roger Mbiama" by Roger Mbiama

2011-10-05 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Roger Mbiama" page has been changed by Roger Mbiama: http://wiki.apache.org/tomcat/Roger%20Mbiama?action=diff&rev1=1&rev2=2 ##language:en - == Your Name == + == Roger Mbiama ==