Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11298

Compare only the short username when checking session user against connection user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      When checking that the session user matches the user authenticated on the connection, the usernames compared include the client hostname and the realm

              if (!connection_username.empty()
                  && session_->connected_user != connection_username) {
                return Status::Expected(TErrorCode::UNAUTHORIZED_SESSION_USER,
                    connection_username, session_->connected_user);
              }

      This can result in exceptions like so:

      The user authorized on the connection 'hue/gateway0.xyz.site@XYZ.SITE' does not match the session username 'hue/gateway1.xyz.site@XYZ.SITE'

      We should convert these to short name before comparing.

      Attachments

        Activity

          People

            arawat Abhishek Rawat
            thundergun Vincent Tran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: