DO NOT REPLY [Bug 10361] - JDBCRealm requires restart if JDBC connection fails.

2003-08-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10361

JDBCRealm requires restart if JDBC connection fails.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-08-26 01:14 ---
Fixed for tomcat5 - please confirm with HEAD of tomcat 5 (or when 5.0.10 is
available). Upon confirmation - will backport to tomcat 4.1 Will not port to
tomcat 4.0.

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



DO NOT REPLY [Bug 10361] - JDBCRealm requires restart if JDBC connection fails.

2002-06-30 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10361

JDBCRealm requires restart if JDBC connection fails.





--- Additional Comments From [EMAIL PROTECTED]  2002-07-01 00:39 
---
I did a bit of additional testing on this and found that the problem I was 
seeing was reporting a "Communications link failure: java.io.IOException" but 
must have actually been wrapped and thrown in an SQLException.  The 
modification to recurse and try at least twice would still be helpful to avoid 
the login failure for the first arrival to a failed JDBC connection.  The 
private signature of authenticate that has the firstTry boolean argument still 
applies, but the suggested modification to the catch would acutally be 
something like the following:

   } catch (SQLException e) {
  if (firstTry && dbConnection != null) { 
close(dbConnection);  // close the connection
return authenticate(username, password, false); // try a 2nd time
 }
 else {   // give up and hope something changes before next login
// bla bla bla, etc. etc.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: