river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r1468119 [15/15] - in /river/jtsk/skunk/qa_refactor/trunk: qa/src/com/sun/jini/qa/harness/ qa/src/com/sun/jini/test/impl/mahalo/ qa/src/com/sun/jini/test/resources/ qa/src/com/sun/jini/test/share/ qa/src/com/sun/jini/test/spec/javaspace/con...
Date Mon, 15 Apr 2013 15:26:46 GMT
Modified: river/jtsk/skunk/qa_refactor/trunk/src/org/apache/river/api/security/URIGrant.java
URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/org/apache/river/api/security/URIGrant.java?rev=1468119&r1=1468118&r2=1468119&view=diff
==============================================================================
--- river/jtsk/skunk/qa_refactor/trunk/src/org/apache/river/api/security/URIGrant.java (original)
+++ river/jtsk/skunk/qa_refactor/trunk/src/org/apache/river/api/security/URIGrant.java Mon
Apr 15 15:26:44 2013
@@ -135,12 +135,17 @@ class URIGrant extends CertificateGrant 
         if (url == null ) return false;
         Uri implied = null;
         try {
-            implied = AccessController.doPrivileged(new NormaliseURLAction(url));
-        } catch (PrivilegedActionException ex) {
-            Exception cause = ex.getException();
-            cause.printStackTrace(System.err);
-            return false;
+            implied = Uri.urlToUri(url);
+        } catch (URISyntaxException ex) {
+            Logger.getLogger(URIGrant.class.getName()).log(Level.SEVERE, null, ex);
         }
+//        try {
+//            implied = AccessController.doPrivileged(new NormaliseURLAction(url));
+//        } catch (PrivilegedActionException ex) {
+//            Exception cause = ex.getException();
+//            cause.printStackTrace(System.err);
+//            return false;
+//        }
         for (int i = 0; i<l ; i++){
             if (uris[i].implies(implied)) return true;
         }



Mime
View raw message