Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Batch Test improvements
[aaf/authz.git]
/
cadi
/
core
/
src
/
main
/
java
/
org
/
onap
/
aaf
/
cadi
/
filter
/
CadiFilter.java
diff --git
a/cadi/core/src/main/java/org/onap/aaf/cadi/filter/CadiFilter.java
b/cadi/core/src/main/java/org/onap/aaf/cadi/filter/CadiFilter.java
index
cd8eff4
..
01bf6f2
100644
(file)
--- a/
cadi/core/src/main/java/org/onap/aaf/cadi/filter/CadiFilter.java
+++ b/
cadi/core/src/main/java/org/onap/aaf/cadi/filter/CadiFilter.java
@@
-303,7
+303,14
@@
public class CadiFilter implements Filter {
private boolean noAuthn(HttpServletRequest hreq) {
if (pathExceptions!=null) {
String pi = hreq.getPathInfo();
private boolean noAuthn(HttpServletRequest hreq) {
if (pathExceptions!=null) {
String pi = hreq.getPathInfo();
- if (pi==null) return false; // JBoss sometimes leaves null
+ if (pi==null) {
+ // Attempt to get from URI only (Daniel Rose)
+ pi = hreq.getRequestURI().substring(hreq.getContextPath().length());
+ if(pi==null) {
+ // Nothing works.
+ return false; // JBoss sometimes leaves null
+ }
+ }
for (String pe : pathExceptions) {
if (pi.startsWith(pe))return true;
}
for (String pe : pathExceptions) {
if (pi.startsWith(pe))return true;
}