Author: csutherl
Date: 2015-07-08 14:15:11 -0400 (Wed, 08 Jul 2015)
New Revision: 2618
Modified:
branches/7.5.x/src/main/java/org/apache/catalina/realm/RealmBase.java
Log:
BZ1241216: prevent NPE in JBossWeb in RealmBase
Modified: branches/7.5.x/src/main/java/org/apache/catalina/realm/RealmBase.java
===================================================================
--- branches/7.5.x/src/main/java/org/apache/catalina/realm/RealmBase.java 2015-06-22
09:48:12 UTC (rev 2617)
+++ branches/7.5.x/src/main/java/org/apache/catalina/realm/RealmBase.java 2015-07-08
18:15:11 UTC (rev 2618)
@@ -467,6 +467,11 @@
// Check each defined security constraint
String uri = request.getRequestPathMB().toString();
+ // Bug47080 - in rare cases this may be null
+ // Mapper treats as '/' do the same to prevent NPE
+ if (uri == null) {
+ uri = "/";
+ }
String method = request.getMethod();
int i;
Show replies by date