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

Component secretstores.local.file support to read UTF8-BOM #3578

Open
owns opened this issue Oct 23, 2024 · 0 comments
Open

Component secretstores.local.file support to read UTF8-BOM #3578

owns opened this issue Oct 23, 2024 · 0 comments
Labels
kind/enhancement New feature or request

Comments

@owns
Copy link

owns commented Oct 23, 2024

Describe the feature

Component type secretstores.local.file can read a file with UTF8-BOM encoding.
Currently, the initialization will fail:

2024-10-23T16:24:46.7830000 time="2024-10-23T11:24:46.7838666-05:00" level=fatal msg="Fatal error from runtime: process component my-secretstore error: [INIT_COMPONENT_FAILURE]: initialization error occurred for my-secretstore (secretstores.local.file/v1): [INIT_COMPONENT_FAILURE]: initialization error occurred for my-secretstore (secretstores.local.file/v1): invalid character 'ï' looking for beginning of value" app_id=my-worker instance=NAZUSL3HN3Q04 scope=dapr.runtime type=log ver=1.14.4

Changing the encoding to UTF8 (no BOM) fixes the error.
A similar bug was reported: dapr/dapr project issue 3900

Release Note

RELEASE NOTE:
ADD: secretstore component type secretstores.local.file support file encoding UTF8 BOM.

@owns owns added the kind/enhancement New feature or request label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant