diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-06-21 15:08:47 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-06-21 15:08:54 -0500 |
commit | 19afb93b23f264471c6e8db77b54e9a301a3114b (patch) | |
tree | d791495495ce243ab16333623671166c8c813cee /auth/auth-core/src/main | |
parent | a7024ad2f0df65a2005e29d24a5974304d2b58c6 (diff) |
Update REST Samples for required behavior
Issue-ID: AAF-361
Change-Id: Ia6dabfa3eeec2253c3f017ddc2d70afe4afbd54b
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-core/src/main')
-rw-r--r-- | auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/HttpCode.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/HttpCode.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/HttpCode.java index 0bfe310a..d209ddcd 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/HttpCode.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/HttpCode.java @@ -78,11 +78,14 @@ public abstract class HttpCode<TRANS extends Trans, CONTEXT> { * @return */ public String pathParam(HttpServletRequest req, String key) { - String rv = match.param(req.getPathInfo(), key); - if(rv!=null) { - rv = rv.trim(); - if(rv.endsWith("/")) { - rv = rv.substring(0, rv.length()-1); + String rv = req.getParameter(key); + if(rv==null) { + rv = match.param(req.getPathInfo(), key); + if(rv!=null) { + rv = rv.trim(); + if(rv.endsWith("/")) { + rv = rv.substring(0, rv.length()-1); + } } } return rv; |