Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-3329

Update usage of Servlets.getUserName method to AtlasAuthorizationUtils.getCurrentUserName()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0, 3.0.0
    • None
    • None

    Description

      There are instance in code where User name is retrieved from httpServletRequest.getRemoteUser() via Servlets.getUserName method.
      If request are coming from proxy then doAs user is impersonate as valid Atlas user, getting user name from remote will cause confusion.

      So it make sense to update the usage of Servlets.getUserName to AtlasAuthorizationUtils.getCurrentUserName().

      Attachments

        1. ATLAS-3329.patch
          7 kB
          Nixon Rodrigues

        Issue Links

          Activity

            People

              nixon Nixon Rodrigues
              nixon Nixon Rodrigues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: