Hi,
Looking for a simpler solution for bug 25822 (tomcat shouldn't write tomcat-users.xml at startup), I would like to know if there is a good raison to call database.save() just after a database.open() since not update could have take place.
The only justification would be to raise an error when the associated file is read-only.
Extrat from MemoryUserDatabaseFactory.getObjectInstance :


        // Return the configured database instance
        database.open();
        database.save();
        return (database);

I tested removing "database.save()" : tomcat starts without problem, errors are only occuring when really trying to change thinngs from admin interface.
Could this change be accepted to close bug 25822 ?
Thanks.


Xavier Poinsard.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to