-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_servicebus_subscription_rule correlation_filter with whitespace label causes crash #18891
Comments
Hey @UptiveJohnA Thanks for bringing this to our attention, will look into this! |
Hey @UptiveJohnA, I've been digging into this today and have fixed the crash. Unfortunately, I couldn't see a clean way to just add an empty label to the correlation filter because of the way Terraform views that block. If Terraform sees a block like:
It'll view that whole block as empty so the provider can't tell what attribute in that block needs to be specified as empty. It's a weird edge case and the best I can do is to just return an error that says at least one attribute must not be empty for correlation filters. |
Hey!
Awesome work!
I see. Well I would argue that an informative error message is way better
than the previous behaviour. I found this by chance, was not trying to
actually provison an empty filter in the end. My pipeline just crashed my
pipeline when I used what I assumed was a valid placeholder value.
Really appriciate that you took your time and improved the code base!
Regards
Den tors 17 nov. 2022 22:47Matthew Frahry ***@***.***> skrev:
… Hey @UptiveJohnA <https://github.com/UptiveJohnA>, I've been digging into
this today and have fixed the crash. Unfortunately, I couldn't see a clean
way to just add an empty label to the correlation filter because of the way
Terraform views that block.
If Terraform sees a block like:
correlation_filter {
label = ""
}
It'll view that whole block as empty so the provider can't tell what
attribute in that block needs to be specified as empty. It's a weird edge
case and the best I can do is to just return an error that says at least
one attribute must not be empty for correlation filters.
—
Reply to this email directly, view it on GitHub
<#18891 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWXOFTUHZVR4RRVKRGDCTE3WI2RXHANCNFSM6AAAAAARKGZ2SE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This functionality has been released in v3.33.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.2
AzureRM Provider Version
3.0.0
Affected Resource(s)/Data Source(s)
azurerm_servicebus_subscription_rule
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
I thought we would provision a filter with a blank white space filter, or if that was forbidden get some kind of warning
Actual Behaviour
The script crashed
Steps to Reproduce
Provision a subscription rule with a whitespace label in the correlation_filter
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: