Increase Jackson maxNameLength to support DynamoDB attribute names up…#6913
Merged
Increase Jackson maxNameLength to support DynamoDB attribute names up…#6913
Conversation
S-Saranya1
approved these changes
Apr 27, 2026
|
This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
DynamoDB allows attribute names up to 65,535 bytes(docs), but Jackson's default
StreamReadConstraints.maxNameLengthof 50,000 causesStreamConstraintsExceptionwhen the SDK deserializes responses containing attribute names longer than 50K characters. Since Jackson is shaded inside the SDK, customers cannot override this setting.Modifications
maxNameLengthto 65,535 inAwsStructuredPlainJsonFactory.JSON_FACTORYto match the DynamoDB service limit. This is theJsonFactoryused by all JSON-protocol service clients.Testing
AwsStructuredPlainJsonFactoryTestverifying theJsonFactorycan parse a 65,535-charfield name.
LongAttributeNameTest(sync + async clients) that stubs a DynamoDBGetItem response with a 65,535-char attribute name and verifies end-to-end deserialization succeeds.
Types of changes
Checklist
document
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License