Issue Summary
Cannot view files on branches whose refnames start with "config", "head" or other files within the bare repo.
A 500 error is displayed when accessing the file.
This is reproducible on Data Center: yes
Steps to Reproduce
- In an existing repository containing files, create a branch called "config/test"
- On the left, click "Source" to view the list of flies
- At the top, switch to the "config/test" branch
- Click on any file to view it
Expected Results
File contents are displayed.
Actual Results
A 500 error is shown:
The exception below is thrown in the atlassian-bitbucket.log file (there doesn't appear to be anything in atlassian-mesh.log):
2023-08-04 12:17:10,919 ERROR [http-nio-6893-exec-10 url: /b893/projects/PROJ1/repos/repo893a/browse/b.txt, /b893/mvc/projects/PROJ1/repos/repo893a/browse; user: admin] admin @13Z68NOx737x94x0 14alb4x 127.0.0.1 "GET /projects/PROJ1/repos/repo893a/browse/b.txt HTTP/1.1" c.a.s.i.w.HandlerExceptionResolverImpl INTERNAL: Error opening/reading [/Users/jmariano/msb/bitbucket-home/atlassian-bitbucket-8.9.3/shared/data/repositories/1/config/test] io.grpc.StatusRuntimeException: INTERNAL: Error opening/reading [/Users/jmariano/msb/bitbucket-home/atlassian-bitbucket-8.9.3/shared/data/repositories/1/config/test] at io.grpc.Status.asRuntimeException(Status.java:535) at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:479) at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) at com.atlassian.stash.internal.scm.git.mesh.LastSeenClientInterceptor$LastSeenClientListener.onClose(LastSeenClientInterceptor.java:40) at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) at com.atlassian.stash.internal.scm.git.mesh.StatefulClientCallListener.onClose(StatefulClientCallListener.java:34) at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) at com.atlassian.stash.internal.scm.git.mesh.DeadlinePropagatingClientInterceptor$DeadlinePropagatingListener.onClose(DeadlinePropagatingClientInterceptor.java:156) at com.atlassian.stash.internal.scm.git.mesh.ErrorHandlingClientInterceptor$ErrorHandlingCall$1.onClose(ErrorHandlingClientInterceptor.java:149) at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:562) at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:743) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:722) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.lang.Thread.run(Thread.java:750) ... 1 frame trimmed
Workaround
Avoid creating branches whose name starts with "config" or "head".
- mentioned in
-
Page Loading...