Is it possible to display BitBucket repository admin contact info (e-mail address) on the access denied page?
By default users get an "Access is Denied" message with a 401 skull and crossbones. It would be useful to see who to e-mail to get added to the repo. This is for a self-hosted Enterprise/Server instance.
Sample screen shot:
Thanks,
Ryan
The official answer, as with all things involving computers, is: yes, it's possible.
But it's not easy - at least not as far as I can tell.
You would need to develop a custom plugin that binds to the "bitbucket.page.errors" web resource context. There's a little more information here: https://developer.atlassian.com/server/bitbucket/reference/web-resource-contexts/
If you can find my email address, send me a note, I might be able to put something together for you - or at least help get you started.
(Do you have any experience writing custom Bitbucket plugins?)
Thanks for the info. I have no experience writing Bitbucket plugins. I was hoping there was a setting somewhere to enable this behavior.
I'm not sure how self-hosted Bitbucket is usually setup, but at my company by default most projects are locked down. If you need access you somehow need to find out who the admin(s) are.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even determining which admin to put in a banner would be tricky. There is a 3-level hierarchy of admins in Bitbucket Server: repo-admins, project-admins, and global-admins. Any one of those could grant you read or read/write access to a given repository.
In a large company the global admins would probably NOT want to be on the banner you are imagining - could turn into a couple emails-per-day !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.