[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/", "");
     }
 
     /**