Log inSkip to main contentSkip to sidebar
IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
Bitbucket Server returns a 401 ("You are not permitted to view this page" error) on the dashboard when a user has recent pushes to repositories they no longer have access to.
Steps to reproduce
Create a user (not a system admin) and give it permissions to a particular repository (or project)
Push to the repository as that user
Revoke permissions for the repository (or project) for this user
View the dashboard page
Expected
Dashboard page loads correctly, with the recent pushes to the repository that the user no longer has access to filtered out.
Actual
The dashboard page does not load correctly (a 401 error page is returned). Note that if you remain on the dashboard while permissions are revoked, the XHR request to pull request suggestions will throw a 401, but the page will still work.
ymartin - as a possible workaround, you can be granted at least REPOSITORY_READ permissions to the repository you pushed to. Note that the dashboard only shows recent pushes in the last 48 hours, so after 48 hours it should be possible to access the dashboard again.
Stefan
added a comment - ymartin - as a possible workaround, you can be granted at least REPOSITORY_READ permissions to the repository you pushed to. Note that the dashboard only shows recent pushes in the last 48 hours, so after 48 hours it should be possible to access the dashboard again.
I faced same issue because of "recently viewed" repositories listing.
That is really annoying. I cannot keep permissions on a project I have been granted temporarily...
Is there any workaround to get back my dashboard after permission removal ?
Yves Martin
added a comment - I faced same issue because of "recently viewed" repositories listing.
That is really annoying. I cannot keep permissions on a project I have been granted temporarily...
Is there any workaround to get back my dashboard after permission removal ?
Stefan
VICTOR-OSEGHALE (Inactive)
Affected customers:
5This affects my team
Watchers:
7Start watching this issue
Created:
Updated:
Resolved:
{"errorMessages":["jqlTooComplex"],"errors":{}}
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
ymartin - as a possible workaround, you can be granted at least REPOSITORY_READ permissions to the repository you pushed to. Note that the dashboard only shows recent pushes in the last 48 hours, so after 48 hours it should be possible to access the dashboard again.