Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 710736 Details for
Bug 922180
Race condition in ContextConfig.authenticatorConfig()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
JBWEB7.0.17.GA patch diff
922180.diff (text/plain), 2.46 KB, created by
Aaron Ogburn
on 2013-03-15 17:02:35 UTC
(
hide
)
Description:
JBWEB7.0.17.GA patch diff
Filename:
MIME Type:
Creator:
Aaron Ogburn
Created:
2013-03-15 17:02:35 UTC
Size:
2.46 KB
patch
obsolete
>Index: java/org/apache/catalina/startup/ContextConfig.java >=================================================================== >--- java/org/apache/catalina/startup/ContextConfig.java (revision 2175) >+++ java/org/apache/catalina/startup/ContextConfig.java (working copy) >@@ -117,6 +117,12 @@ > > > /** >+ * Static lock to fix BZ-922180 >+ */ >+ private static final Object authenticatorsInitLock = new Object(); >+ >+ >+ /** > * The Context we are associated with. > */ > protected Context context = null; >@@ -277,23 +283,26 @@ > } > if (authenticator == null) { > // Load our mapping properties if necessary >- if (authenticators == null) { >- try { >- InputStream is=this.getClass().getClassLoader().getResourceAsStream("org/apache/catalina/startup/Authenticators.properties"); >- if( is!=null ) { >- authenticators = new Properties(); >- authenticators.load(is); >- } else { >+ // Synchronize here to avoid deployment failures from an empty authenticators Property set (BZ-922180). >+ synchronized(authenticatorsInitLock) { >+ if (authenticators == null) { >+ try { >+ InputStream is=this.getClass().getClassLoader().getResourceAsStream("org/apache/catalina/startup/Authenticators.properties"); >+ if( is!=null ) { >+ authenticators = new Properties(); >+ authenticators.load(is); >+ } else { >+ log.error(sm.getString( >+ "contextConfig.authenticatorResources")); >+ ok=false; >+ return; >+ } >+ } catch (IOException e) { > log.error(sm.getString( >- "contextConfig.authenticatorResources")); >- ok=false; >+ "contextConfig.authenticatorResources"), e); >+ ok = false; > return; > } >- } catch (IOException e) { >- log.error(sm.getString( >- "contextConfig.authenticatorResources"), e); >- ok = false; >- return; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 922180
: 710736