Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,633
Community Members
 
Community Events
176
Community Groups

Bamboo receives 404 when calling BitBucket Cloud users API when creating/updating repository

When creating/updating a linked repository or a plan specific repository that is referencing a BitBucket Cloud repository a 404 is returned when the BitBucket Cloud users or teams API is called.

2020-04-13 12:13:15,778 WARN [http-nio-8085-exec-18] [RESTCall] Response from GET https://api.bitbucket.org/2.0/users/mikerudat/ (404)

2020-04-13 12:13:15,778 ERROR [http-nio-8085-exec-18] [BitbucketApiServiceImpl] 

com.opensymphony.webwork.dispatcher.json.JSONException: JSONObject["uuid"] not found.

at com.opensymphony.webwork.dispatcher.json.JSONObject.get(JSONObject.java:419)

at com.opensymphony.webwork.dispatcher.json.JSONObject.getString(JSONObject.java:590)

at com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl.getUuidForUserOrTeam(BitbucketApiServiceImpl.java:319)

at com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl.getUuidForAnEmailOrUsername(BitbucketApiServiceImpl.java:218)

at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validateUsername(BitbucketCloudServerConfigurator.java:456)

at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validateUsernamePasswordCredentials(BitbucketCloudServerConfigurator.java:374)

at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validate(BitbucketCloudServerConfigurator.java:271)

at com.atlassian.bamboo.plugins.bitbucket.v2.configurator.BitbucketCloudServerConfigurator.validateForConnectionTesting(BitbucketCloudServerConfigurator.java:292)

at com.atlassian.bamboo.configuration.repository.VcsConfigurationHelperImpl.validateVcsConfigurationForConnectionTesting(VcsConfigurationHelperImpl.java:125)

The username is being passed vs the UUID of the account for the user.  It appears the API call passing the username has been inactivated due to GDPR and the UUID should now be used in Bamboo.

Issuing a curl command against the endpoint does succeed when passing the UUID

curl https://api.bitbucket.org/2.0/users/%7B114aa7e6-a24f-4b58-be59-7620706c07b2%7D

We are using Bamboo 7.0.2

Thank You,

Mike

1 answer

1 accepted

0 votes
Answer accepted

Hi, the same bug is contained in version 6.10.3. Is it fixed in 6.10.5?

No, as we found the bug in the latest version 7.0.2

We are encountering the issue as well in version 6.9.1.

Like Sreekanth Reddy Seelam likes this

Awesome, the workaround was successful.  I added

JVM_SUPPORT_RECOMMENDED_ARGS="-Dbamboo.bitbucket.cloud.use.workspace.api=true"

to bin/setenv.sh for our linux installation.  Thank You!

Like mustafa.ak likes this

does the fix work on version 6.9.1?

I only tested with 7.0.2

Thank you very much Mike..

Worked for me..

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events