W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1998

Bug in AuthRealm.java! (2.0alpha1)

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Tue, 03 Feb 1998 09:27:27 +0100
Message-Id: <199802030827.JAA15933@www43.inria.fr>
To: www-jigsaw@w3.org

 I found a bug in AuthRealm.java (And ResourceStoreManager.java). It is caused
 by a change made in StoreEntry.java during the week before the release.
 If you have configured some realms in the http server, this bug cause a server
 crash when you stop it and try to start it again.
 So you can choose to fix this bug or you can choose not to test realms before
 the next release.

 To fix this bug:

1) in org.w3c.jigsaw.auth.AuthRealm add an initialize method :

 public void initialize(Object values[]) {
   super.initialize(values);
   if (repository == null)
      repository = new File(getServer().getAuthDirectory(), 
			    getIdentifier()+".db");
 }

2) in org.w3c.tools.resources.store.ResourceStoreManager remove this line:

 salvage();

 (at the end of the file)

 Benoit Mahe.


- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium (W3C)
                    Architecture domain - Jigsaw Team           

  http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89 
---------------------------------------------------------------------



- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium (W3C)
                    Architecture domain - Jigsaw Team           

  http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89 
---------------------------------------------------------------------
Received on Tuesday, 3 February 1998 03:27:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:27 GMT