Class ConfluencePatternsChecker

  • All Implemented Interfaces:
    com.opensymphony.xwork2.security.AcceptedPatternsChecker

    public class ConfluencePatternsChecker
    extends com.opensymphony.xwork2.security.DefaultAcceptedPatternsChecker

    Subclass of the DefaultAcceptedPatternsChecker that does not log warnings when overriding the accepted patterns. In Confluence we are overriding the default patterns with our own stricter pattern (see struts.xml) and these warnings scare customers.

    This class will also log an error if the upstream/default accepted patterns change, to ensure developers integrate relevant upstream changes into our custom pattern when upgrading the Struts library.

    Since:
    8.6.1
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.opensymphony.xwork2.security.AcceptedPatternsChecker

        com.opensymphony.xwork2.security.AcceptedPatternsChecker.IsAccepted
    • Field Summary

      • Fields inherited from class com.opensymphony.xwork2.security.DefaultAcceptedPatternsChecker

        ACCEPTED_PATTERNS, acceptedPatterns, DMI_AWARE_ACCEPTED_PATTERNS, NESTING_CHARS, NESTING_CHARS_STR
    • Constructor Detail

      • ConfluencePatternsChecker

        public ConfluencePatternsChecker()
    • Method Detail

      • logPatternChange

        protected void logPatternChange​(Set<String> newPatterns)
        Overrides:
        logPatternChange in class com.opensymphony.xwork2.security.DefaultAcceptedPatternsChecker