Class ConfluencePatternsChecker

java.lang.Object
com.opensymphony.xwork2.security.DefaultAcceptedPatternsChecker
com.atlassian.confluence.impl.struts.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    logPatternChange(Set<String> newPatterns)
     

    Methods inherited from class com.opensymphony.xwork2.security.DefaultAcceptedPatternsChecker

    getAcceptedPatterns, isAccepted, setAcceptedPatterns, setAcceptedPatterns, setAcceptedPatterns, setAdditionalAcceptedPatterns, setOverrideAcceptedPatterns

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfluencePatternsChecker

      public ConfluencePatternsChecker()
  • Method Details

    • logPatternChange

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