Provider crashes if protocol is omitted from base URL #6
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/terraform-provider-gitea#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you omit the protocol from the gitea provider's base_url parameter, e.g. "https://", the provider crashes.
I attached the log below.
Seems to be a problem in the Gitea golang SDK but could also be handled in the provider.
This error appeared to me because I used a self-signed certificate without Subject Alternative Name.
Until I figured out the problem, I wasted a few hours.
I think it happens with any malformed requests.
I can not recreate this issue with Gitea 1.20.5. If not specifying the protocol in the gitea url, I get:
Error: Get "gitea.example.com/api/v1/version": unsupported protocol scheme "
If I specify something other than http and https , I get an appropriate error.
If this issue is related the certificate used, then the that issue should be described @wandersonwhcr.