Bitbucket Server and "Failed to parse repository url"

Just upgraded to 2019.3 eager to try out the Bitbucket Server integration, and am receiving a "Failed to parse repository url". The URL is nothing unusual: in the form "https://bitbucket.example.com". I've verified that the youtrack instance can access bitbucket at that URL (using CURL)

Anyone encountering the same issue, or better, has some suggestions for a fix?

Here's what I see in youtrack's logs:

 06/02/20 08:25:11,797 ERROR [@tp793707613-343] [ErrorExceptionMapper          ] [ccogdon@XX.XX.XX.XX] Caught exception during request processing at 
POST /api/admin/integrations/vcsHostingProcessors requested by Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like G
ecko) Version/13.0.5 Safari/605.1.15
java.lang.IllegalArgumentException: Failed to parse repository url
at jetbrains.youtrack.integration.github.rest.bitbucketstandalone.BitbucketStandaloneChangesProcessor.parseUrl(BitbucketStandaloneChangesP
rocessor.kt:57)
at jetbrains.youtrack.integration.github.rest.bitbucketstandalone.BitbucketStandaloneChangesProcessor.parseUrl(BitbucketStandaloneChangesP
rocessor.kt:22)
at jetbrains.youtrack.integration.github.rest.VcsHostingChangesProcessor.updateFrom(VcsHostingChangesProcessor.kt:55)
at jetbrains.youtrack.integration.github.rest.bitbucketstandalone.BitbucketStandaloneChangesProcessor.updateFrom(BitbucketStandaloneChange
sProcessor.kt:41)
...snip...
2 comments
Comment actions Permalink
Official comment

Hello Christopher,

thank you very much for sharing the solution. We're glad the issue is resolved. We'll consider adding this information to our documentation.

Comment actions Permalink

I think I've solved this myself.

The "repository url" needs to be of the form https://bitbucket.example.com/projects/PROJECTNAME/repos/repository-name.

0

Please sign in to leave a comment.