Author: scottbw
Date: Sat Nov 19 20:51:58 2011
New Revision: 1204073

URL: http://svn.apache.org/viewvc?rev=1204073&view=rev
Log:
Fixed an issue with resource identifiers in GET requests for the policies API

Modified:
    
incubator/wookie/trunk/src/org/apache/wookie/controller/PoliciesController.java

Modified: 
incubator/wookie/trunk/src/org/apache/wookie/controller/PoliciesController.java
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/controller/PoliciesController.java?rev=1204073&r1=1204072&r2=1204073&view=diff
==============================================================================
--- 
incubator/wookie/trunk/src/org/apache/wookie/controller/PoliciesController.java 
(original)
+++ 
incubator/wookie/trunk/src/org/apache/wookie/controller/PoliciesController.java 
Sat Nov 19 20:51:58 2011
@@ -53,6 +53,13 @@ public class PoliciesController extends 
     Policy[] policies;
     
     //
+    // For some reason the main controller resourceId method isn't parsing
+    // the resource part correctly
+    //
+    resourceId = request.getPathInfo().trim();
+    if (resourceId != null) resourceId = StringUtils.stripStart(resourceId, 
"/");
+    
+    //
     // The resource id is the policy scope. E.g., calling
     // policies/* would get the global policies
     //


Reply via email to