Skip to content

Commit

Permalink
Fix failure trying to persist configuration
Browse files Browse the repository at this point in the history
The internal credential handler is private and should be skipped (it is
added on start).
  • Loading branch information
rmaucher committed Jul 12, 2023
1 parent 52ed442 commit 7e76d04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/org/apache/catalina/storeconfig/RealmSF.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public void storeChildren(PrintWriter aWriter, int indent, Object aRealm,
}
// Store nested <CredentialHandler> element
CredentialHandler credentialHandler = ((Realm) aRealm).getCredentialHandler();
if (credentialHandler != null) {
if (credentialHandler != null
&& !(credentialHandler.getClass().getName().equals("org.apache.catalina.realm.CombinedRealm$CombinedRealmCredentialHandler"))) {
storeElement(aWriter, indent, credentialHandler);
}
}
Expand Down
4 changes: 4 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
Make parsing of <code>ExtendedAccessLogValve</code> patterns more
robust. (markt)
</fix>
<fix>
Fix failure trying to persist configuration for an internal credential
handler. (remm)
</fix>
</changelog>
</subsection>
<subsection name="Coyote">
Expand Down

0 comments on commit 7e76d04

Please sign in to comment.