Hi Devs,

Could you please commit below attached patch to the kernel. In order to fix
jira  [1].

https://wso2.org/jira/browse/APIMANAGER-2646.

Regards
Roshan.
-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94752126789*
Email: [email protected]
*WSO2, Inc. :** wso2.com <http://wso2.com/>*
lean.enterprise.middleware.
Index: src/main/java/org/wso2/carbon/registry/core/jdbc/realm/RegistryAuthorizationManager.java
===================================================================
--- src/main/java/org/wso2/carbon/registry/core/jdbc/realm/RegistryAuthorizationManager.java	(revision 205987)
+++ src/main/java/org/wso2/carbon/registry/core/jdbc/realm/RegistryAuthorizationManager.java	(working copy)
@@ -37,7 +37,7 @@
 
     public String computePathOnMount(final String path) {
         for (Map.Entry<String, String> e : pathMap.entrySet()) {
-            if (path.startsWith(e.getKey())) {
+            if (path.startsWith(e.getKey()) && !path.startsWith(e.getValue())) {
                 return e.getValue() + path.substring(e.getKey().length());
             }
         }
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to