juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-220) Potential NPE when using @RestMethod(path="/xxx/*")
Date Fri, 24 Apr 2020 00:49:00 GMT
James Bognar created JUNEAU-220:
-----------------------------------

             Summary: Potential NPE when using @RestMethod(path="/xxx/*")
                 Key: JUNEAU-220
                 URL: https://issues.apache.org/jira/browse/JUNEAU-220
             Project: Juneau
          Issue Type: Bug
          Components: Code
    Affects Versions: 8.1.3
            Reporter: James Bognar


 

It appears you can get an NPE if you define a RestMethod path as "/xxx/*" and then try to
access the resource via "/xxx".
{code:java}
java.lang.NullPointerException
	at org.apache.juneau.rest.util.UrlPathInfo.isTrailingSlash(UrlPathInfo.java:66)
	at org.apache.juneau.rest.util.UrlPathPattern.match(UrlPathPattern.java:98)
	at org.apache.juneau.rest.RestMethodContext.invoke(RestMethodContext.java:864)
{code}
 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message