This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 86b9958 Make fields accessible to sub-classes of JNDIRealm
86b9958 is described below
commit 86b9958b191a7cb924a54c86205a5a247174f1be
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jun 21 18:12:49 2021 +0100
Make fields accessible to sub-classes of JNDIRealm
Access problem for sub-classes reported via [email protected]
https://tomcat.markmail.org/thread/l6exgocuy46v75ch
---
java/org/apache/catalina/realm/JNDIRealm.java | 10 +++++-----
webapps/docs/changelog.xml | 4 ++++
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/java/org/apache/catalina/realm/JNDIRealm.java
b/java/org/apache/catalina/realm/JNDIRealm.java
index 315d9e6..7f72ae3 100644
--- a/java/org/apache/catalina/realm/JNDIRealm.java
+++ b/java/org/apache/catalina/realm/JNDIRealm.java
@@ -3084,29 +3084,29 @@ public class JNDIRealm extends RealmBase {
* The MessageFormat object associated with the current
* <code>userSearch</code>.
*/
- protected MessageFormat userSearchFormat = null;
+ public MessageFormat userSearchFormat = null;
/**
* An array of MessageFormat objects associated with the current
* <code>userPatternArray</code>.
*/
- protected MessageFormat[] userPatternFormatArray = null;
+ public MessageFormat[] userPatternFormatArray = null;
/**
* The MessageFormat object associated with the current
* <code>roleBase</code>.
*/
- protected MessageFormat roleBaseFormat = null;
+ public MessageFormat roleBaseFormat = null;
/**
* The MessageFormat object associated with the current
* <code>roleSearch</code>.
*/
- protected MessageFormat roleFormat = null;
+ public MessageFormat roleFormat = null;
/**
* The directory context linking us to our directory server.
*/
- protected DirContext context = null;
+ public DirContext context = null;
}
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 598969e..72db4ee 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -111,6 +111,10 @@
Refactor the <code>RemoteIpValve</code> to use the common utility
method
for list to comma separated string conversion. (markt)
</scode>
+ <scode>
+ Refactor <code>JNDIRealm$JNDIConnection</code> so its fields are
+ accessible to sub-classes of <code>JNDIRealm</code>. (markt)
+ </scode>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]