Re: [tools 2.0] ValueParser.getStrings splits on comma?

Christopher Schultz <[email protected]> Wed, 1 Nov 2017 16:00:36 -0400
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <[email protected]>
Claude,

On 10/30/17 12:47 PM, Claude Brisson wrote:
> 
> 
> On 30/10/2017 17:25, Christopher Schultz wrote:
>> Claude,
>>
>> On 10/14/17 6:16 PM, Claude Brisson wrote:
>>> Chris, after you raised this issue I commited a fix in the tools
>>> trunk, see
>>>
>>>    http://svn.apache.org/viewvc?view=revision&revision=1806598
>>>
>>> It sets the default delimiter to the empty string in the default
>>> tools.xml for the ParameterParser and fixes the code so that it does
>>> work. It's backward compatible since the empty string wasn't functional
>>> before. Sorry I didn't react on the list.
>> I think this may be a problem, though, since many may rely on the
>> previous-default which was "," and now the default is "".
> 
> The default is still ',' for the non HTTP ValueVarser tool.
> 
> Since the ParameterParser is *meant* for HTTP, the default was
> previously wrong, not only because HTTP uses key repetition but also, as
> you discovered, because it splits values containing comas.
> 
> Since were releasing a major version, I think it's more reasonable to
> change it, while making it sure that we mention this point in the
> upgrading notes. Users willing to keep the former behavior will just
> have to set back the coma as separator in their tools.xml.

+1

The major version makes all the difference, even if the previous default
was very inappropriate. (Wearing my Bill Rowe hat right now ;)

Thanks,
-chris
signature.asc (application/pgp-signature, 938 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAln6J+UACgkQHPApP6U8
pFgEXw//f3jludSRbTs4NORcP4nsVdP0D7F5QVdjokBZOVu+kZwwB895mQ1YgC6x
74clj8m47UWT2/bsJX1/64YuO1pPUzZKlQuZY4QOlK75BJju/yXRbuXlv0K0gN1E
w+7lz+UA38A9duPdu+NRNjInYlL7d4NJjz5R0aXWlbV3NdhoEQoI1jS09Wzt9fjG
tlm03Dz9G0YauikzWWjh8MsmDDsJhRzW/zf9BylwVkDV4cE54QuBaGe6yG0ux5ld
j7v2azcesJPRJVDLzrML/rf6twK886EbbfEKDMSFJRbnox5HLFsxEVp0t6A31Zvk
fVbzcjasZ4D73BsxaBmbZEKZRyCDhYk+uCcrtbscHMfkyxnJMQsqr65RivPAF6j5
3mbGip9T+dKF7qw+rdEhavNvBnSyl7oiirc97p3IMWXQJcpqAT3ebUCYBFgwAU8l
XvD14l4QRWlPQIGOCHmHMVOlRl4hwgTXc/GDCB8c7xLJRTGVXQWnjbHf01ZoC3Ko
lMywgnhFKtQ1idBVyI2WhHNcNKgQmHnmiSLJCl8wUMCig2tlrQKmGla9O9bncGmb
8UcHjLdjuCGIrhGZr8ejxyzRMPQ+tZ5KEYmsYauMEnIRh+kpfgjcAIwpYElE5Kms
xUdPFOdWYERTTCHQVVgCyGKQv/R8dtU3TNF0B3xDzbgYB4MZ200=
=ps3v
-----END PGP SIGNATURE-----