You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "leehoawki (via GitHub)" <gi...@apache.org> on 2023/04/14 01:55:36 UTC
[GitHub] [incubator-devlake] leehoawki opened a new issue, #4927: [Bug][BitBucket] Not able to add Bitbucket connection
leehoawki opened a new issue, #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
I am not able to add Bitbucket connection.
It says : Test Failed.Please check your configuration.
I noticed the BitBucket server's log contains: GET /rest/api/latest/user HTTP/1.1"
<img width="767" alt="1" src="https://user-images.githubusercontent.com/3602079/231921487-b968199b-06ff-4179-99b9-c73d7c2c3785.png">
But according to the BitBucket API doc, it should be /rest/api/latest/users
FYI : https://developer.atlassian.com/server/bitbucket/rest/v809/api-group-system-maintenance/#api-api-latest-users-get
### What do you expect to happen
Add the Bitbucket connection successfully.
### How to reproduce
Create a Bitbucket connection
Endpoint URL: http://testdomain.com:port/rest/api/latest
and then click the Test connection button.
### Anything else
https://github.com/apache/incubator-devlake/blob/v0.15.0/plugins/bitbucket/api/connection.go#L61
I think it should be
res, err := apiClient.Get("users", nil, nil)
in Line 61
### Version
v0.15.0
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] klesh commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1510805345
@leehoawki oh, i'm sorry. The Bitbucket server is not supported.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] klesh commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1547078329
@tim-goto That is great. You may want to check out the `Gitlab` plugin, it does support `cloud` and `server` simultaneously. In general:
It detects the API version when preparing the `ApiClient`
https://github.com/apache/incubator-devlake/blob/8262cb3b830fa3e1a141d5408f8e85fabf6d1603/backend/plugins/gitlab/models/connection.go#L90
Then, some subtasks would behavior different based on the `version` information.
https://github.com/apache/incubator-devlake/blob/b4c1d85cf0d41d07233cf5ee3db16f8a23cc8450/backend/plugins/gitlab/tasks/account_collector.go#L50
However, it is `data source` dependent, and may or may not be suitable for Bitbucket.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] abeizn commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "abeizn (via GitHub)" <gi...@apache.org>.
abeizn commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1508148225
You can try this Endpoint URL: https://api.bitbucket.org/2.0/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] tim-goto commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "tim-goto (via GitHub)" <gi...@apache.org>.
tim-goto commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1545681336
I am interested in contributing as stated in #4568 Some initial pointers to get me started would be great.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] leehoawki commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "leehoawki (via GitHub)" <gi...@apache.org>.
leehoawki commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1535722236
hello is there a plan for bitbucket server support? since I noticed that there is a tab for bitbucket server on the page.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] klesh commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1537074884
Not in the short term, we are short of bandwidth at this point, would like to contribute?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] Startrekzky commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1552354543
Please follow #4568 for the support of the BitBucket Server.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] leehoawki commented on issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "leehoawki (via GitHub)" <gi...@apache.org>.
leehoawki commented on issue #4927:
URL: https://github.com/apache/incubator-devlake/issues/4927#issuecomment-1510546109
> You can try this Endpoint URL: https://api.bitbucket.org/2.0/
Hello, we are not using the Bitbucket cloud.
Our Bitbucket version is v5.14.1 and it seems that the 2.0 API is not available.
Is devlake only able to work with Bitbucket cloud or I should upgrade to a higher version?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] Startrekzky closed issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky closed issue #4927: [Bug][BitBucket] Not able to add Bitbucket connection
URL: https://github.com/apache/incubator-devlake/issues/4927
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org