Open matthewhartstonge opened 2 years ago
Thanks matthewhartstonge ill try to take a look at this as soon as i can
Having a think about this - If we stored a "private" read-only computed schema property we should be able to check if the strings have changed internally.
Hi @matthewhartstonge. Did you find some workaround to at least complete the apply? I'm stuck on this.
Hi @renatomjr, no - we ended up migrating our organisation to Github not too long after so didn't have to worry about this..
Hi! @DrFaust92 is there any update on this? Currently its impossible to apply any changes after creation/import.
Opened a temp fix that would ignore avatar on update to allow to use project. ill try to fix avatar update as well
Hi @DrFaust92 - did you have any luck fixing the avatar updating?
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Possible other resources with
link.avatar.href
?Terraform Configuration Files
Debug Output
The diff suppression will always suppress once an image is configured for the Project i.e. no updates ever as the URI returned from bitbucket will always contain
https://bitbucket.org/account/user
.This of course leads to the image never being picked up as needing to be updated under the Terraform diff:
Regardless, the update payload always sends the old Bitbucket image URL, which Bitbucket rejects as the URL doesn't have a filename ending in
{jpeg, png, gif}
Modding the client library I extracted the returned HTTP 400 response body:
Panic Output
N/A
Expected Behavior
bitbucket_project
should be able to be updated if they have an existing avatar.Actual Behavior
HTTP 400 Bad request - as the Bitbucket API doesn't support image uri's without a
{.png, .jpeg, .gif}
ending.Steps to Reproduce
terraform apply
Important Factoids
References
No.