Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1870

Modify the logic for buildUnixUserList and parseMembers method in UnixUserGroupBuilder class

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0, master
    • Component/s: usersync
    • Labels:
      None
    • Flags:
      Patch

      Description

      Modify the logic for buildUnixUserList and parseMembers method in UnixUserGroupBuilder class
      1.In the buildUnixUserList method:
      int len = tokens.length;
      if (len = 3) groupId = tokens [3]; case ArrayIndexOutOfBoundsException.
      2.Another similar error in the parseMembers method:
      String[] tokens = line.split(":");
      if (tokens.length = 2) String groupId = tokens [2]; case ArrayIndexOutOfBoundsException.

        Attachments

          Activity

            People

            • Assignee:
              zhangqiang2 Qiang Zhang
              Reporter:
              zhangqiang2 Qiang Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: