You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/08/10 10:45:00 UTC

[jira] [Created] (NETBEANS-5908) Potential space-in-string issue in Java parameters

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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists