-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1
-
Severity 3 - Minor
-
40
-
Issue Summary
- When performing an API call to the *workspaces/
{workspace}
/search/code* endpoint using any token-based authentication, the results return empty
Steps to Reproduce
- Create a workspace access token (just as an example)
- Run the API call using the token for authentication:
$ Curl -X GET -H "Authorization: Bearer <WAT>" "https://api.bitbucket.org/2.0/workspaces/<workspace>/search/code?search_query=<query>"
Expected Results
- Code Search results should be returned
Actual Results
- The results array returns empty, even though there are results that match the query:
{ "size": 0, "page": 1, "pagelen": 10, "query_substituted": false, "values": [] }
Workaround
- Run the API using an app password for authentication:
$ Curl -X GET -u <username>:<apppassword> "https://api.bitbucket.org/2.0/workspaces/<workspace>/search/code?search_query=<query>"