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

Fix issue found during coverity scan in one of the ranger usersync unit tests.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.6.2
    • 0.7.0
    • Ranger, usersync
    • None

    Description

        • CID 155460: FindBugs: Dodgy code
          (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
          /ugsync/src/test/java/org/apache/ranger/usergroupsync/TestRegEx.java:
          32 in ()

      __________________________________________________________________________
      ______________________________

          • CID 155460: FindBugs: Dodgy code
            (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
            /ugsync/src/test/java/org/apache/ranger/usergroupsync/TestRegEx.java:
            32 in ()
            26
            27 import org.junit.Before;
            28 import org.junit.Test;
            29
            30 public class TestRegEx {
            31 protected String userNameBaseProperty =
            "ranger.usersync.mapping.username.regex";
            >>> CID 155460: FindBugs: Dodgy code
            (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
            >>> Unread public/protected field:
            org.apache.ranger.usergroupsync.TestRegEx.groupNameBaseProperty.
            32 protected String groupNameBaseProperty =
            "ranger.usersync.mapping.groupname.regex";
            33 protected RegEx userNameRegEx = null;
            34 protected RegEx groupNameRegEx = null;
            35 List<String> userRegexPatterns = null;
            36 List<String> groupRegexPatterns = null;
            37

      Attachments

        Activity

          People

            spolavarapu Sailaja Polavarapu
            spolavarapu Sailaja Polavarapu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: