Grouper Loader consumer name may be mangled by GrouperUtil.stripStart, leading to ClassNotFoundException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • 1.5.3
    • Affects Version/s: 1.5.2
    • Component/s: API
    • None
    • Environment:
      Solaris 9, Java 6u18, Tomcat 6.0.16

      edu.internet2.middleware.grouper.util.GrouperUtil.stripStart incorrectly strips the start of the string.

      Example: "CHANGE_LOG_consumer_umndb" will return "db" instead of "umndb"

      "stripChars.indexOf(str.charAt(start))" in the final else statement should be "stripChars.indexOf(str.charAt(start), start)" to prevent characters in stripChars from being matched multiple times.

      A workaround is to use a consumer name that starts with a character that is not present in the stripChars string.

            Assignee:
            Tom Barton (internet2.edu) (Inactive)
            Reporter:
            Ben Grindy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: