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

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,923 views 7 10
Read article

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