tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r753039 - /tomcat/trunk/java/org/apache/catalina/users/MemoryUserDatabaseFactory.java
Date Thu, 12 Mar 2009 22:21:55 GMT
Author: markt
Date: Thu Mar 12 22:21:54 2009
New Revision: 753039

URL: http://svn.apache.org/viewvc?rev=753039&view=rev
Log:
Don't try and save a read-only database

Modified:
    tomcat/trunk/java/org/apache/catalina/users/MemoryUserDatabaseFactory.java

Modified: tomcat/trunk/java/org/apache/catalina/users/MemoryUserDatabaseFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/users/MemoryUserDatabaseFactory.java?rev=753039&r1=753038&r2=753039&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/users/MemoryUserDatabaseFactory.java (original)
+++ tomcat/trunk/java/org/apache/catalina/users/MemoryUserDatabaseFactory.java Thu Mar 12
22:21:54 2009
@@ -101,7 +101,9 @@
 
         // Return the configured database instance
         database.open();
-        database.save();
+        // Don't try something we know won't work
+        if (!database.getReadonly())
+            database.save();
         return (database);
 
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message