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

Cannot view a commit that has a vertical bar character username

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.0.2
    • 1.3.0, 2.0.0
    • None
    • None

    Description

      Steps to reproduce

      1. Set commit username:
        $ git config --global user.name "ABCDEFG|HIJK"
        
      2. Clone the project from Stash:
        git clone http://kahloun@localhost/scm/TEST/test.git
        Clone was successfully done. In atlassian-stash.log, the following lines were written:
        2012-12-17 13:23:34,957 DEBUG [http-7990-2] 803x3469x1 172.25.38.63,127.0.0.1 "GET /scm/TEST/test.git/info/refs HTTP/1.1" c.a.s.internal.user.UserServiceImpl Authenticating user kahloun
        2012-12-17 13:23:36,471 DEBUG [http-7990-8] 803x3470x1 172.25.38.63,127.0.0.1 "POST /scm/TEST/test.git/git-receive-pack HTTP/1.1" c.a.s.internal.user.UserServiceImpl Authenticating user kahloun
        
      3. Create a commit on the repository.
        $ touch test.txt
        $ git add .
        $ git commit -m "test"
        
      4. Push the commit to Stash.
        $ git push origin master
        
      5. Access the file Stash will have error eg. http://localhost/projects/TEST/repos/test/commits

      The following appear in atlassian-stash.log:

      2012-12-17 13:25:27,632 DEBUG [http-7990-8] kahloun 805x3475x1 oglrpy 10.9.185.91,127.0.0.1 "GET /projects/TEST/repos/test/commits HTTP/1.1" com.atlassian.stash.scm.BaseCommand Executed /usr/local/bin/git rev-list --format=%H|%h|%P|%p|%an|%ae|%at%n%B%n@@object_end@@ --stdin --
      2012-12-17 13:25:28,127 ERROR [http-7990-8] kahloun 805x3475x1 oglrpy 10.9.185.91,127.0.0.1 "GET /projects/TEST/repos/test/commits HTTP/1.1" c.a.s.i.w.HandlerExceptionResolverImpl An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected
      com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected
      	at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na]
      	at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onCancel(GitCommandExitHandler.java:48) ~[na:na]
      	at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:143) ~[stash-spi-1.3.0.jar:na]
      	at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:266) ~[stash-spi-1.3.0.jar:na]
      	at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:233) ~[stash-spi-1.3.0.jar:na]
      	at com.atlassian.stash.scm.BaseCommand.call(BaseCommand.java:81) ~[stash-spi-1.3.0.jar:na]
      	at com.atlassian.stash.internal.history.HistoryServiceImpl.getChangesets(HistoryServiceImpl.java:118) ~[stash-service-impl-1.3.0.jar:na]
      	at sun.reflect.GeneratedMethodAccessor1014.invoke(Unknown Source) ~[na:na]
      ...
      Caused by: java.lang.IllegalStateException: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected
      

      Attachments

        Issue Links

          Activity

            People

              cofarrell CharlesA
              klfoong Foong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: