-
Bug
-
Resolution: Fixed
-
Medium
-
4.13.1, 4.14.8, 5.10.0, 5.9.1
-
3
-
Severity 3 - Minor
-
Problem
When trying to view a file in the Bitbucket Server web UI, an error is thrown saying "An error occurred while executing an external process: Could not read loose ref config" if the file you're trying to view is on a branch called "config".
Steps to reproduce
- In an existing repository with files in it, create a branch called "config" or "Config"
- On the left click "Source"
- At the top, be sure to switch to the "config" or "Config" branch
- Click on any file in the list of files to view it
Expected result
The file contents are displayed
Actual result
An error is displayed saying "An error occurred while executing an external process: Could not read loose ref config".
In addition, the logs show the following exception:
2018-07-24 10:43:41,531 ERROR [http-nio-7990-exec-780] username *OIKMNKx643x60691690x15 4ugm39 1.2.3.4 "GET /projects/PROJ/repos/repo/browse HTTP/1.1" c.a.s.i.w.HandlerExceptionResolverImpl An error occurred while executing an external process: Could not read loose ref config com.atlassian.bitbucket.ServerException: An error occurred while executing an external process: Could not read loose ref config at com.atlassian.stash.internal.scm.git.command.refdb.AbstractGitRefDbCommand.call(AbstractGitRefDbCommand.java:54) at com.atlassian.stash.internal.scm.git.command.refdb.ResolveGitRefDbCommand.call(ResolveGitRefDbCommand.java:44) at com.atlassian.stash.internal.scm.git.command.refdb.ResolveGitRefDbCommand.call(ResolveGitRefDbCommand.java:23) at com.atlassian.stash.internal.scm.git.command.TransformedGitCommand.call(TransformedGitCommand.java:45) at com.atlassian.stash.internal.repository.DefaultRefService.resolveRef(DefaultRefService.java:254)
Workaround
Avoid creating branches whose name is "config".
- is related to
-
BSERV-9553 Pull requests are declined or updates are attributed to the wrong user
-
- Closed
-
Form Name |
---|
This originates from https://getsupport.atlassian.com/browse/PS-27406