commit | 8065a3b049681eac6e5d61b2aa5b4bf7a21881df | [log] [tgz] |
---|---|---|
author | sonugupta-huawei <sonu.gupta1289@gmail.com> | Fri Sep 08 16:50:17 2017 +0530 |
committer | Henry Yu <hyu2010b@gmail.com> | Mon Oct 02 22:00:32 2017 +0000 |
tree | 1b3ca503f9c857e481c0ea458b3b00f7bdb4e84f | |
parent | 4025a104f6d525fe71f5e604ef0cc0f813d218a4 [diff] |
[ONOS-7023] Error returned after sending json input Change-Id: I1e1f7faa64d5f6e66a7da7e89032d26adfb342da
diff --git a/apps/restconf/utils/src/main/java/org/onosproject/restconf/utils/RestconfUtils.java b/apps/restconf/utils/src/main/java/org/onosproject/restconf/utils/RestconfUtils.java index 2b7763d..e14477f 100644 --- a/apps/restconf/utils/src/main/java/org/onosproject/restconf/utils/RestconfUtils.java +++ b/apps/restconf/utils/src/main/java/org/onosproject/restconf/utils/RestconfUtils.java
@@ -154,12 +154,12 @@ private static String getRawUriPath(URI uri) { String path = uri.getRawPath(); - if (path.equals("/restconf/data")) { + if (path.equals("/onos/restconf/data")) { return null; } - - return path.replaceAll("^/restconf/data/", "").replaceAll("^/restconf/operations/", ""); + return path.replaceAll("^/onos/restconf/data/", "") + .replaceAll("^/onos/restconf/operations/", ""); } /**