Uploaded image for project: 'Eagle (Retired)'
  1. Eagle (Retired)
  2. EAGLE-104

Fix the unit test TestHDFSSecuritylogParser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v0.3.0
    • v0.3.0
    • None
    • None

    Description

      The test fails with following error

      java.lang.StringIndexOutOfBoundsException">
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at
      java.lang.String.substring(String.java:1911) at
      org.apache.eagle.security.util.LogParseUtil.parseUserFromUGI(LogParseUtil.java:39)
      at
      org.apache.eagle.security.securitylog.parse.HDFSSecurityLogParser.parseAttr(HDFSSecurityLogParser.java:78)
      at
      org.apache.eagle.security.securitylog.parse.HDFSSecurityLogParser.parse(HDFSSecurityLogParser.java:52)
      at
      org.apache.eagle.security.TestHDFSSecuritylogParser.test(TestHDFSSecuritylogParser.java:36)
      

      Looks like the problem is that the UGI parsing method is not handling the simple authentication scenario where user name is not a kerberos principal.

      Attachments

        1. EAGLE-104.1.patch
          4 kB
          Prasad Suresh Mujumdar

        Issue Links

          Activity

            People

              prasadm Prasad Suresh Mujumdar
              prasadm Prasad Suresh Mujumdar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: