aws / aws/aws-sdk-java-v2

DynamoDbEnhanced queries fail on attributes that contain `~`

Ouverte
#3,945 1 commentaire 0 réactions 1 personne assignée Réclamée par @debora-ito Voir sur GitHub
bug dynamodb-enhanced p2
Langage dominant
Java
Étoiles
2.6k
Forks
1k
Merge moyen
2 j 9 h
PR mergées (30 j)
51

Description

### 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](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html) 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.