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

GrouperPasswordSave Unable to set local entity password due to colon in username

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 5.5.0, 4.7.1, 5.4.1
    • 2.6.1
    • None
    • None

    Description

      new GrouperPasswordSave().
              assignApplication(GrouperPassword.Application.UI).
              assignUsername("etc:example:localEntities:serviceacct").
              assignPassword("pass").
              save()
      

      java.lang.RuntimeException: username and password cannot both contain a colon due to http basic auth

      The password doesn't have a colon, so the error doesn't make sense. I believe it should have && instead of ||, right? Auth can handle a handle colons in usernames since 2.5.45.

                  if (StringUtils.contains(username, ":") || StringUtils.contains(thePassword, ":")) {
                    throw new RuntimeException("username and password cannot both contain a colon due to http basic auth");
                  }
      

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chad.redman.3@at.internet2.edu Chad Redman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: