Svatopluk Dedic created NETBEANS-5908:
-----------------------------------------
Summary: Potential space-in-string issue in Java parameters
Key: NETBEANS-5908
URL: https://issues.apache.org/jira/browse/NETBEANS-5908
Project: NetBeans
Issue Type: Bug
Components: serverplugins - GlassFish
Affects Versions: 12.4, 12.5
Reporter: Svatopluk Dedic
During implementation of [#3099|https://github.com/apache/netbeans/pull/3099]
I've identified a potential issue when {{StartupExtender}} delivers some spaces
in an option (Profiler does, if NB or userdir is installed in a dir that has a
space in its path).
{{ServerTasks.appendOptions}} assumes that properties MAY have (unquoted)
spaces in their values; but non-property (without =) arguments are appended 'as
is' (assuming they are already quoted).
I'd suggest to use new {{StartupExtender.getRawArguments (see the mentioned
PR)}}, and quote as necessary for the processing in Glassfish. Please use
{{BaseUtilities.escapeParameters}} instead just surrounding by doublequote -
escapeParameters handles literal doublequote + backslashes .
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists