Skip to content

DynamoDbEnhanced queries fail on attributes that contain ~ #3945

Open
@chrylis

Description

@chrylis

Describe the bug

Same bug as #3139 for the character ~.

Expected Behavior

Correct mapping.

Current Behavior

The same exception as reported in other places.

Reproduction Steps

Define a query using an attribute with ~ in the name.

Possible Solution

The current implementation maintains a specific list of characters to be substituted, but the DynamoDB spec allows for close-to-arbitrary naming. While adding ~ to this list will solve the immediate failure, the approach should be revisited to be more robust generally.

Additional Information/Context

No response

AWS Java SDK version used

2.20.50

JDK version used

openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10) OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)

Operating System and version

Gentoo Linux

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.dynamodb-enhancedp2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions