Skip to content

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

@lscpike

Description

@lscpike

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions