You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I noticed that even when a workspace has been set to private, I can call the https://api.bitbucket.org/2.0/repositories/{workspace} w/o credentials and still get a response instead of getting a 401 or similar.
{"values": [], "pagelen": 10, "size": 0, "page": 1}
I get the above response and the pagelen key seems to accurately count the number of projects within the workspace.
I get that there really is not much information in the response but it does seem to reveal a number that I feel should be private. Could I be missing a setting somewhere or is this expected behavior?
G'day!
The pagelen value is by default 10, it is not actually showing the number of results pulled by the API query so rest assured that this information is not being revealed.
This can be increased higher by adding the pagelen value to the URL, you can try this yourself by appending "?pagelen=20" to the end of the query URL, without authentication it will result in:
{"values": [], "pagelen": 20, "size": 0, "page": 1}
Hope this makes sense.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.