Repository navigation
Fix unquoted array string values truncated at parenthesis - #293
Merged
Merged
Conversation
FormattingAndParsingUtils.parseValue() stopped unquoted value parsing
at ')' as well as ']', a rule intended for interval bounds like
"(1,2)". ArraysParser reused the same method for plain string/array
elements, so a literal ')' inside an unquoted array element (e.g.
liststring value "[Foo,Bar(Foo)]") was misread as the end of the
value and silently dropped.
Arrays are only ever delimited by '[', ']' and ',', so '(' and ')'
now have no structural meaning there and are kept as part of the
value.
Fixes gephi/gephi#2989
mbastian
force-pushed
the
fix/liststring-parens-2989
branch
from
August 27, 2026 11:07
b937cd8 to
71a5d97
Compare
MattArtzAnthro
pushed a commit
to MattArtzAnthro/graphstore
that referenced
this pull request
Aug 28, 2026
…i#293) FormattingAndParsingUtils.parseValue() stopped unquoted value parsing at ')' as well as ']', a rule intended for interval bounds like "(1,2)". ArraysParser reused the same method for plain string/array elements, so a literal ')' inside an unquoted array element (e.g. liststring value "[Foo,Bar(Foo)]") was misread as the end of the value and silently dropped. Arrays are only ever delimited by '[', ']' and ',', so '(' and ')' now have no structural meaning there and are kept as part of the value. Fixes gephi/gephi#2989
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
FormattingAndParsingUtils.parseValue()treats)the same as]as an "end of value" delimiter, a rule meant for interval bounds like(1,2).ArraysParserreused this same method for plain array/string elements, where(/)have no structural meaning, so a literal)inside an unquoted array element got misread as the end of the value and silently dropped.[Foo,Bar(Foo)]produced["Foo", "Bar(Foo"]instead of["Foo", "Bar(Foo)"].parseValuenow takes a flag controlling whether)counts as a closing bound (kepttrueforIntervalsParser/TimestampsParser, which need it);ArraysParserpassesfalseand no longer treats(/)as ignorable structural characters, so they're preserved as literal content of unquoted values.Fixes gephi/gephi#2989
Test plan
ArraysParserTest.testParseStringWithParenthesiscovering the reported case plus leading/trailing/unbalanced parens.mvn testpasses for the full suite.