Closed tammert closed 1 year ago
I've managed to verify my assumption by debugging locally:
Hey @tammert, thank you for reporting this issue and bringing it to our attention. I've opened a PR - https://github.com/jfrog/froggit-go/pull/101. I will update you once we release Frogbot and Froggit-go with the fix.
Hi @tammert, Froggit-go v1.11.0 and Frogbot v2.11.1 have been released with the fix. Let me know if you have any further questions, and thank you once again for reporting this issue.
Describe the bug Full error:
The cause of the issue on our end was a missing CA cert for our private BitBucket Server. However, instead of a proper error we are seeing a panic. I believe it's because of the following: https://github.com/jfrog/froggit-go/blob/master/vcsclient/bitbucketserver.go#L646-L647 -> in this case, the
resp
object is not nil, but theresp.StatusCode
seems to be. I guess this makes sense, as underwater a TLS error will be thrown, as opposed to a HTTP error.To Reproduce Run
frogbot
, connecting to a non-public BitBucket Server, for which the proper CA cert (or self-signed cert) is not imported into the system truststore.Expected behavior When TLS is not configured properly, I'd expect a TLS error as opposed to a panic.
Versions