aws / aws/aws-sdk-java-v2

DynamoDbEnhanced queries fail on attributes that contain `~`

オープン
#3,945 コメント 1 件 リアクション 0 件 担当者 1 名 @debora-ito が担当を希望しています GitHub で見る
bug dynamodb-enhanced p2
主要言語
Java
スター
2.6k
フォーク
1k
平均マージ
2日 9時間
マージ済み PR(30日)
51

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。