Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.16.2, 6.10.2, 7.1.1
-
None
-
1
-
Severity 3 - Minor
-
5
-
Description
Issue Summary
When the "Clone in Xcode" integration is not enabled, Bitbucket will try to enable it when it receives REST API requests with an "Xcode" user agent. This succeeds when using basic authentication, but fails when using an access token.
Steps to Reproduce
- Be sure "Clone in Xcode" is disabled at <base-url>/account.
- Make a request to the REST API using an access token (not basic auth), with an Xcode user agent: curl -X GET -H "User-Agent: Xcode/".
Expected Results
Bitbucket should allow Xcode as a user agent and the request should succeed.
Actual Results
The user receives a 500 error, and the below exception is thrown in the atlassian-bitbucket.log file:
2020-04-15 12:01:45,404 ERROR [https-jsse-nio-8444-exec-20] *CTFXYJx721x9826216x11 s0w3ye 1.1.1.1 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/rest/api/1.0/application-properties]
Workaround
Navigate to <base-url>/account and enable "Clone in Xcode". This will prevent Bitbucket from attempting to enable it during the API request and triggering this error.