Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-407

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.5.3
    • 1.5.2
    • API
    • None
    • Solaris 9, Java 6u18, Tomcat 6.0.16

    Description

      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.

      Attachments

        Activity

          People

            tom.barton.2@at.internet2.edu Tom Barton (internet2.edu)
            bengrindy Ben Grindy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: