aaronshaf / dynamodb-admin

GUI for DynamoDB Local or dynalite
MIT License
1.34k stars 133 forks source link

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

Open lscpike opened 2 years ago

lscpike commented 2 years ago

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 commented 2 years ago

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