Open lscpike opened 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.
If you will accept a PR and can promise a speedy release, please say and I'll put something together today.
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.