Skip to content

reject malformed map entries in collections type converter#765

Open
sahvx655-wq wants to merge 1 commit into
Netflix:2.xfrom
sahvx655-wq:map-converter-malformed-entry
Open

reject malformed map entries in collections type converter#765
sahvx655-wq wants to merge 1 commit into
Netflix:2.xfrom
sahvx655-wq:map-converter-malformed-entry

Conversation

@sahvx655-wq

Copy link
Copy Markdown

createMapTypeConverter in DefaultCollectionsTypeConverterFactory splits each comma-separated pair on '=' and reads kv[1] without checking the split produced two parts, so a Map property value like key=12345,bogus throws ArrayIndexOutOfBoundsException from inside the converter. Reject the malformed entry with a ParseException instead, matching how convertBoolean already rejects unparseable input.

@sahvx655-wq

Copy link
Copy Markdown
Author

gentle ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant