youngmon/atlassian-qna huggingface dataset:
User Directory privacy
Asked by Agus:

Hi

I'm using bitbucket for our organization and I would like that not all the developers (they are grouped inside user groups called 'project XXX devs') be able to see the whole User Directory list.

I prefer them not being able to see the name of all the customers and external collaborators that work on the projects they are not working at.

I haven't found a privacy permission that allows me to achieve this.

Thanks!


Answers:
author: Theodora Boudale
body: Hi [@Agus](/t5/user/viewprofilepage/user-id/5510426) and welcome to the community!

The **User directory** in a Bitbucket Cloud workspace is available via **Workspace settings** . Only users who have been granted administrator access to a workspace can access **Workspace settings** (and the **User directory** page).

There is no permission that controls the privacy of **User directory** among administrators. If this user group has admin access to your workspace, you will need to change that so that the developers can't see the **Workspace settings** option. You can do this if you go to the **User groups** page of this workspace (from **Workspace settings** ) \> select a certain user group \> select **Edit** \> uncheck the option **Can administer all workspace and repository settings**.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora

comments: author: Agus
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) !

Thanks for your answer! Actually my concern is not only the **User directory** but also the '**People**' tab where any user with restricted access only to one repository/project will be able to see the whole user base of the workspace.

I tried with your suggestion of verifying that the '**Can administer all workspace and repository settings** ' is off for an example user, but the '**People**' tab with the whole workspace user list is still visible. Is there any way to avoid this?


author: Theodora Boudale
body: Hi [@Agus](/t5/user/viewprofilepage/user-id/5510426),

I'm afraid that the visibility of the **People** page cannot be restricted, any user with workspace access will be able to view this page.

We have a feature request for the ability to restrict access to that page:

* <https://jira.atlassian.com/browse/BCLOUD-22755>

You can add your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the product managers better understand the demand for features. You are more than welcome to leave feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket Webhooks with Proxy
Asked by Andrew Gehring:

If we configure an inbound proxy (nginx), and set server.proxy-name\|port, how do we get webhooks to provide the proxies URL?


Answers:
author: Charlie Misonne
body: Hi Andrew and welcome to the Atlassian community!

server.proxy-name is for your inbound (reverse) proxy indeed. If your webhooks need to go through an outbound proxy that is totally unrelated.

Outbound proxies use the Java/JVM properties:

* `http.proxyHost`
* `http.proxyPort` (default: 80)
* `http.nonProxyHosts` (default: \<none\>)
* `https.proxyHost`
* `https.proxyPort`

`You need to set these as JVM parameters in the_start-webapp.sh file if you're on Linux: `  

    JVM_SUPPORT_RECOMMENDED_ARGS="-Dhttp.proxyUser=atlaspirate -Dhttp.proxyPassword=yarrrrr -Dhttps.proxyUser=atlaspirate -Dhttps.proxyPassword=yarrrrr"

You can also set the environment variable in the systemd service on Linux.

And if you run it as a Windows service you need to set in it the java service settings.

More info on [How to configure an outbound HTTP and HTTPS proxy for Bitbucket Server:](https://confluence.atlassian.com/bitbucketserverkb/how-to-configure-an-outbound-http-and-https-proxy-for-bitbucket-server-779171680.html)


Tags: bitbucket-data-center

data-center

proxy

reverse-proxy
automate file content update and commit the change using python
Asked by Rijin Raju:

i am trying to automate some task ,where i need to connect a bitbucket project and need to visit every repos and branches in each repos delete some content on the file present in every branches and commit the changes remotly using python script.


Answers:
author: Theodora Boudale
body: Hi Rijin and welcome to the community!

We have an API endpoint that can be used to create a commit in a remote repo by uploading a file (a file that exists on the computer where you run this API call):

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post>

If the file exists in the remote repo, its content will be replaced with the content of the file you are uploading. The branch can be specified the same way as the file, e.g. with **curl** you add **-F branch=branch-name** in the request.

The following API endpoints can be used for retrieving all repos in a workspace (that you have access to) and all open branches in a certain repo respectively:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>
* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-branches-get>

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: If I were you I would do this Git:

* for each repo
  * git clone it
    * for each branch
      * git pull it
      * update the file
      * git commit it
  * git push all branches

You can do this using by running the Git commandline client from Python. The nicety is that you don't even need to tie yourself to Bitbucket, which means flexibility (you can migrate to any Git hosting platform in the future).


Tags: bitbucket-cloud

cloud
Pipeline is failing
Asked by rajputj3@bv.com:

I have following pipeline for my client nodejs app and it is failing.

Would you please help?

rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/library/node:14.8.1": failed to resolve reference "docker.io/library/node:14.8.1": docker.io/library/node:14.8.1: not found

Here is pipeline code:

# Template NodeJS build

# This template allows you to validate your NodeJS code.  
# The workflow allows running tests and code linting on the default branch.

image: node:14.8.1  
pipelines:  
branches:  
develop:  
- step:  
name: Build \& Deploy to Test  
deployment: Test  
script:  
- echo $DEPLOYMENT_VARIABLE  
- step:  
name: npm install and build  
caches:  
- node  
script:  
- npm install  
- npm run build  
# - npm test  
# - step:  
# name: Code linting  
# script:  
# - npm install eslint  
# - npx eslint .  
# caches:  
# - node


Answers:
author: Ben
body: Hi rajputj3_bv_com,

The reason you're getting that error message is because the image you're referencing does not exist - please check this search list on Dockerhub for an equivalent image name that you may use:

* [https://hub.docker.com/_/node/tags?page=\&page_size=\&ordering=\&name=14.8](https://hub.docker.com/_/node/tags?page=&page_size=&ordering=&name=14.8)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Code search within a project doesn't work
Asked by Nathaniel_Kelly:

I'd like to do a code search within a project. As far as I can see from the docs, this should work:  

**project:project_name thingToSearchFor**

But I get no results, even though the "**thingToSearchFor**" is in a repo, in the project. Does anyone know the magic syntax to get this working? We have hundreds of repo's and many projects, so I really need to be able to limit search to those repo's in the project only.

This is via the <https://bitbucket.org/search> page...

Thanks


Answers:
author: Nathaniel_Kelly
body: Going to answer myself as this isn't explained in the docs... The "project:" modified uses the project short code. So if you go to <https://bitbucket.org/yourOrg/workspace/projects> then select your project to search in, the URL that it returns will have the short code at the end.  
Use this code to then do the code search.

easy eh?


Tags: bitbucket-cloud

cloud

project

search
Build artifacts not available on rerun
Asked by Neil Scales:

*I tried to create a bug, but BCLOUD was not available to me, so posting it here instead*.

My build pipeline has multiple steps, earlier ones create artifacts and later ones deploy them.

If I rerun failed steps, the artifacts generated before the failed step, are not available to steps after the failed step.


Answers:
author: Theodora Boudale
body: Hi Neil,

Are the steps that are missing the artifacts triggered more than 14 days after the step that generated the artifacts? Artifacts are stored for 14 days following the execution of the step that produced them.

Can you also please confirm the following:

* Expand the **Build teardown** section in the build log of the step that produced the artifacts and check if there is a message about successful upload of artifacts.
* Expand the **Build setup** in the build log of a step where the artifacts are missing; is there any error message regarding artifacts download that indicates the reason for failure?

I am not able to reproduce the error you are reporting for artifacts generated within the last 14 days and after a successful upload of artifacts in the step that generates them. I tried running a pipeline with three steps, where the first one produces the artifacts and the second step fails. After rerunning the second step so that it succeeds, the artifacts are available during the third step.

If your step ran within 14 days after the artifacts were produced and you see no errors in the build logs, I suggest creating a ticket with the support team. In the ticket, you can share the build URL for further investigation.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Invalid redirect_uri when doing OAuth2 with Bitbucket Data Center for incoming external app
Asked by pscheit:

Hi, I am working on a bitbucket server/data center incoming application link.  

I am developing locally so I have bitbucket server running in docker via http behind a caddy proxy, that terminates ssl  
I have a PHP application where I want to do OAuth requests with. Pretty sure that the code is okay, because we have this running in production without issues.

When I hit the bitbucket oAuth2 authorize endpoint - I get a consent response of 412 code and the message -

"HTTP Status 412 -- Precondition Failed Invalid 'redirect_uri' URL parameter provided"  
![image.png](/t5/image/serverpage/image-id/326866i3C524C3119B5DE84/image-size/large?v=v2&px=999 "image.png")

I am using the bitbucket.properties to allow local development:  

atlassian.oauth2.provider.skip.base.url.https.requirement=true  
atlassian.oauth2.provider.skip.redirect.url.https.requirement=true  

as per <https://confluence.atlassian.com/bitbucketserver0720/oauth-2-0-provider-system-properties-1116282016.html>  

I am sure they are active and used, because otherwise I cannot add the redirect url into the application link.  

I am 100% certain that the redirect_uri matches the one I have configured in the application link. I am redirected from the authorization page to the consent page (invalid redirect uri would be detected before?) I do not have any special chars in my URL. Url encoding / with or without %2f doesnt help.  

We have two different redirect uris that were separated by , in the application link, but even if I reduce this to one redirect url, it doesnt help.  

I wonder if there are more checks to the redirect_uri that are failing: Is it doing http requests to verify?   
I enabled debug logs and didnt find something suspicious there, I just see the request in the access log and the 412 responses.  

Bitbucket data center version is 8.19.3 8019003  


Answers:
author: Apoorva
body: Hello [@pscheit](/t5/user/viewprofilepage/user-id/271611)

Hope you're doing good.

The issue you've reported is being tracked in this bug ticket: [OAUTH20-2488](https://jira.atlassian.com/browse/OAUTH20-2488), which is currently open and being worked on by our developers.

As per one of the comments on the ticket, this will be resolved in Bitbucket Data Center versions 8.9.15 and 8.19.4. Both are scheduled to be released between the 1st and 2nd Tuesday of June 2024. It will also be resolved in Bitbucket 9.0.0.  

Hope this helps!

Regards,  
Apoorva

comments: author: pscheit
body: Thanks for that info!  

It's really odd that I didnt find this issue via search on jira.  
My apologies


Tags: bitbucket-data-center

bitbucket-server

data-center

oauth2

server
didn't receive repo transfer email
Asked by Zejia Chen:

received "Repository transfer in progress" in old workspace, but didn't receive so-called "Repository transfer request" email in new workspace. I am the admin (but not the owner) of both workspaces.


Answers:
author: Zejia Chen
body: As a workspace admin but not the owner, how can I accept the transfer?


author: Zejia Chen
body: From <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repositories-and-groups-to-a-workspace/> : "Bitbucket sends an email to the new owner or workspace administrators containing the transfer request with a link to the page that allows the user to accept or reject the transfer."

I just have a small test and find that Bitbucket sends email to the new owner only, not workspace administrators as described.


Tags: bitbucket-cloud

cloud
Docker build fails in bitbucket pipeline but runs fine locally
Asked by Shyam:

Hello,

I have a Dockerfile and the build runs fine locally but when I run the build in bitbucket pipleline, it fails.  

The command it tries to run is   

RUN composer dump-autoload --optimize  
Below is the error  

[application 9/10] RUN composer dump-autoload --optimize  
785
#28 sha256:4d09a23973b2d059ce40d8ec95ef0d2b47fb823ee724b988094850bbe67856cd  
786
#28 0.165 exec /bin/sh: exec format error  
787
#28 ERROR: process "/bin/sh -c composer dump-autoload --optimize" did not complete successfully: exit code: 1  
788
------  
789
> [application 9/10] RUN composer dump-autoload --optimize:  
790
------  
791
process "/bin/sh -c composer dump-autoload --optimize" did not complete successfully: exit code: 1  

<br />

I tried to add --platform linux/amd64 in my docker build command to ensure that I use same platform in both local and pipeline but no luck. :(   

<br />


Answers:
author: Theodora Boudale
body: Hi [@Shyam](/t5/user/viewprofilepage/user-id/5441848),

We would need some additional information in order to debug this:

* A minimal Dockerfile that reproduces the issue
* The bitbucket-pipelines.yml file of the repo (or just the definition of the step that fails)
* In case any of your repos files are used in this step (e.g. when running the composer command) and they are needed for reproducing this error, we would need to see them as well

Since your workspace is on the Standard plan, I suggest creating a ticket with the support team (instead of posting this info here publicly). The support ticket will be visible only to you and Atlassian staff and you can share the URL of the failed build for further investigation.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora

comments: author: Shyam
body: Hello [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ,

Thank you I have created the support ticket and attached the dockerfiles and bitbucket.yml file .   

The ticket ID is BBS-218508 .


author: Theodora Boudale
body: Thank you [@Shyam](/t5/user/viewprofilepage/user-id/5441848), I can see the ticket. One of my colleagues will help you troubleshoot this.


Tags: bitbucket-cloud

cloud
cannot connect to our repo
Asked by Sherwin Julius Abellanosa:

Hi,  

Please be informed that we are having an issue on our repo connection.  

```
stderr: fatal: unable to access '<repo_url>': Empty reply from server
```


Answers:
author: Theodora Boudale
body: Hi Sherwin Julius,

There have been no outages in Bitbucket Cloud in the last few days affecting HTTPS operations. Based on the errors, there seems to be a connectivity issue from this machine to Bitbucket Cloud.

If this server is behind a firewall, please ensure that all IPs Bitbucket is using are allowlisted:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

I suggest reaching out to your network team to check connectivity from this server to Bitbucket Cloud and identify if anything is blocking the connection.

Just a heads up, I removed the screenshots from your post because they showed the URL of a private repo. Please blur any such details in the future when you post screenshots, as this is a public forum.

Kind regards,  
Theodora


author: Sherwin Julius Abellanosa
body: ```
git pull
fatal: unable to access '<repo_url>':
Recv failure: connection was reset
```


Tags: bitbucket-cloud

cloud
How can I transfer current Bitbucket server to a new server
Asked by mike:

Hi All

I have an audit requirement to upgrade OS to Redhat8.7 .

I was provided a new, clean server from infra team since they can not upgrade the OS on the original server.

How can I transfer current Bitbucket server to the new server with all the current data or settings unchanged.

Is there any guideline or handbook

Thanks.


Answers:
author: Charlie Misonne
body: Hi Mike

Yes there is a guide here: [Migrating Bitbucket Data Center to another server](https://confluence.atlassian.com/bitbucketserver/migrating-bitbucket-data-center-to-another-server-776640406.html)

You basically need to perform a fresh install of Bitbucket, copy the home directory to the new server and add/ verify the database connection details in the bitbucket.properties file.


Tags: bitbucket-data-center

bitbucket-server

transfer
Will moving repo to different project also move open pull requests?
Asked by Carl_B:

We have a repo at work that everyone uses that is currently under "Project_A". We want to move this repo under a different project name say "Project_B". Looks like the way to do this is to use the "Move Repository" feature under the repo settings as specified here <https://community.atlassian.com/t5/Bitbucket-questions/How-do-I-move-a-bitbucket-repo-from-one-project-to-another/qaq-p/949423>

I'm assuming this will transfer all the commit history as well, hopefully.

But we also currently have multiple pull requests open under "Project_A". Will using the "Move Repository" also transfer the the pull requests as well as the comment history.

If not is there another way to move the repository to "Project_B" and not lose the comment history on the pull requests. Thanks.


Answers:
author: Theodora Boudale
body: Hi Carl and welcome to the community!

Can you please clarify if this is a Bitbucket Cloud repo or Bitbucket Server/Data center repo? Your question has the tag 'bitbucket-cloud' but the question you linked has a screenshot of Bitbucket Server/Data Center in the replies.

The URL of a Bitbucket Cloud repo on browser starts with <https://bitbucket.org/> while Bitbucket Server/Data Center repos have a different, custom URL.

If you are using Bitbucket Cloud, do you want to move the repo to another project within the same workspace? Or transfer the repo to a different workspace?

In both cases, the commit history is preserved and pull requests are also transferred. If you move the repo within the same workspace from Project A to Project B (this can be done from **Repository settings** \> dropdown **Project**), the pull requests of this repo will not show under the pull requests of Project A but under the pull requests of Project B.

If you plan to transfer the repo to a different workspace instead, you need to take into account that the repo URL will change (so you will need to update that in local clones of the repo and any integrations). If the repo uses Pipelines and Deployment variables, these variables are not preserved after a repo transfer to a different workspace, and you will need to write down their values and recreate them after the transfer. Another thing to take into account is that Wiki and Issue Tracker features are not supported in workspaces administered through admin.atlassian.com. These features will be disabled following a transfer to a workspace administered through admin.atlassian.com.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Fisheye. Problem when creating Atlassian JIRA User Directory.
Asked by Tatiana:

Hello,  
I tried to create Atlassian JIRA User Directory -  
UserDirectories -\>  
Add Directory (Type - Atlassian JIRA) -\>  
Fill required fields (server url, Application Name, Application Password)

Why is the "Save and Test" button disabled (greyed out)?

========

Atlassian FishEye analysis with Crucible code review. (Version:4.4.1 )

JIRA v7.3.4


Answers:
author: Nic Brough -Adaptavist-
body: It's usually greyed out when the remote directory is not responding on the url you've given it (this is before it even looks at user name and password). Have you given it a valid Jira url it can get to?

comments: author: Tatiana
body: Thank you!

Jira url was correct,  
but application ip for fisheye in JIRA  
(Administration -\> UserManagement-\>JiraUserServer)  
was wrong.


Tags: jira
Need help to customize look and feel in Fisheye/Crucible application
Asked by Reetesh Kumar:

Hi,  

We are using Fisheye/Crucible version 3.6.4  
We want to change the look and feel in Fisheye/Crucible application. For this we need your help.  
I have attached the FishEye.png file for your reference.  
Here we want the following modifications  
1. Change the logo at header part at point 1 as shown in screenshot FishEye.png file.  
2. Place the logo at footer part at point 2 as shown in screenshot FishEye.png file.  
3. Move the other links to the right side in the footer part at point 3 as shown in screenshot FishEye.png file.  

We need your help to modify the look and feel in Fisheye/Crucible

The screenshot is not getting attached here so attaching that in commentr part.

<br />

Thanks,  
Reetesh


Answers:
author: Caterina Curti
body: Hi [@Reetesh Kumar](/t5/user/viewprofilepage/user-id/602994),

For similar customization, please refer to the [Customizing FishEye and Crucible Look and Feel](https://confluence.atlassian.com/fishkb/customizing-fisheye-and-crucible-look-and-feel-428802654.html) article.

Cheers,

Caterina - Atlassian


author: Reetesh Kumar
body: ![FishEye.png](https://community.atlassian.com/t5/image/serverpage/image-id/5912i6B02C1D8E0F382F9/image-size/large?v=v2&px=999 "FishEye.png")