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

A comma in the key value results in Not Found when viewing an item #243

Open
lscpike opened this issue Apr 13, 2022 · 1 comment
Open

A comma in the key value results in Not Found when viewing an item #243

lscpike opened this issue Apr 13, 2022 · 1 comment

Comments

@lscpike
Copy link

lscpike commented Apr 13, 2022

I'm using DynamoDB with a framework called Orleans. It generates a table with 2 string keys; GrainReference and GrainType. GrainType stores a value like "My.Grain.Type.Name,My.State.Name".

This results in a path like http://localhost:8001/tables/grainstate/items/1234%2CMy.Grain.Type.Name%2CMy.State.Name

Therefore, the key is encoded with 2 commas and the backend splits the key into 3 parts. The result is the item is not found.

I think the solution will be to encodeURIComponent() the individual parts of the key and then explicitly unencode in the backend.

@lscpike
Copy link
Author

lscpike commented Apr 13, 2022

If you will accept a PR and can promise a speedy release, please say and I'll put something together today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant