Skip to content
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

Validating strings with StringLenBetween incorrectly fails for UTF-8 encoded values #1425

Open
goodtune opened this issue Feb 17, 2025 · 0 comments · May be fixed by #1426
Open

Validating strings with StringLenBetween incorrectly fails for UTF-8 encoded values #1425

goodtune opened this issue Feb 17, 2025 · 0 comments · May be fixed by #1426
Labels
bug Something isn't working

Comments

@goodtune
Copy link

SDK version

HEAD

Relevant provider source code

...

Terraform Configuration Files

...

Debug Output

n/a

Expected Behavior

With a provider that wants to validate a String with StringLenBetween(1, 5) and a value of "你好世界" is provided, the validation should be successful.

Actual Behavior

Fails with expected length of test_property to be in the range (1 - 5), got 你好世界.

Steps to Reproduce

Unit test in 2f48bd8

References

n/a

@goodtune goodtune added the bug Something isn't working label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant