axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/configuration FileProvider.java
Date Thu, 22 Jul 2004 02:01:12 GMT
dims        2004/07/21 19:01:12

  Modified:    java/src/org/apache/axis/configuration FileProvider.java
  Log:
  Fix for AXIS-1470 - Axis client will fail with strict security policy
  from Mike Traum
  
  Revision  Changes    Path
  1.52      +5 -1      ws-axis/java/src/org/apache/axis/configuration/FileProvider.java
  
  Index: FileProvider.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/configuration/FileProvider.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- FileProvider.java	25 May 2004 19:41:43 -0000	1.51
  +++ FileProvider.java	22 Jul 2004 02:01:12 -0000	1.52
  @@ -107,7 +107,11 @@
        * or not the file is read-only.
        */
       private void check() {
  -        readOnly = configFile.canRead() & !configFile.canWrite();
  +        try {
  +            readOnly = configFile.canRead() & !configFile.canWrite();
  +        } catch (SecurityException se){
  +            readOnly = true;            
  +        }
   
           /*
            * If file is read-only, log informational message
  
  
  

Mime
View raw message