Can't look image on Bitbucket PR by access denied

Our repo is private and team with access.

I and my colleagues is in team.

We sometimes upload the images when PR but has some problems.

The question is my colleagues couldn't look image after I uploaded .

I also failed to look image colleagues uploaded.

The messages when I openned is "Access denied"

Why we can't look others images?

1 answer

This widget could not be displayed.

We've had this problem as well. As far as I can tell it's caused by inconsistencies with how how Bitbucket resolves permissions.
As per https://blog.bitbucket.org/2014/02/12/new-direct-image-uploads-for-bitbucket/ images uploaded have the same permission as the repository.


However, in the case of a PR from a fork to a main repo, there are a couple repositories with potentially different permissions in play. What we've found is that when initially creating the PR, the images have the permissions of JUST the source repository. Once the PR has been created though, adding images in comments or editing the description to include an image pulls permissions from both source and destination repo.


In practice you can resolve the above issue by either:
• Inviting your co-workers as collaborators on your private fork, Or;
• Don't add images until after you've initially created the PR

 

Hopefully Atlassian will fix the underlying issue at some point and just make sure images have the correct permissions from both source and destination repos during creation.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

169 views 9 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you