Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-20020

Commit signed with SSH key of user with special symbols in the name causes an error in UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 9.5.0
    • None

      Issue Summary

      The commits signed by the user with an ID containing a special symbol like @ cause an error while clicking on a check to verify the signature.

      Steps to Reproduce

      1. Create a user with email as username: user@domain.com
      2. Add an SSH key to the user profile
      3. Make a new commit locally and sign it with the SSH key
      4. Push the commit upstream
      5. Go to Repository => Open Commits
      6. Click on the check mark next to the commit

      Expected Results

      The pop-up appears without any error showing signature details

      Actual Results

      The pop-up appears showing signature details but it is covered by the error Page not found - User user@domain.com does not exist

      In the HAR file the request to REST API is done to the following endpoint:

      /rest/api/latest/users/user%40domain.com?avatarSize=32
      

      And the endpoint returns com.atlassian.bitbucket.user.NoSuchUserException

      While the endpoint

      rest/api/latest/users/user_domain.com?avatarSize=32
      

      returns expected details

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

              95e5dd71de92 David Zhu (Inactive)
              ashaleev Anton Shaleev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: