This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257183 - VM Options Customize : defective parsing of double equals
Summary: VM Options Customize : defective parsing of double equals
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-16 20:40 UTC by jmehrens
Modified: 2015-12-16 20:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jmehrens 2015-12-16 20:40:10 UTC
The VM Option Customize for the project settings is unable to parse the double equals which leads to scrambling the VM options command on save.

The JAAS API (http://docs.oracle.com/javase/7/docs/jre/api/security/jaas/spec/com/sun/security/auth/login/ConfigFile.html) uses '==' as a override of JAAS configurations.  

For example, "-Djava.security.auth.login.config==../path/to/jaas.config" on save converts to "../path/to/jaas.config  -Djava.security.auth.login.config" which is invalid.

What is happening with the parsing is that it looks like two entries. One is "-Djava.security.auth.login.config" as a key with a empty string value and an empty string key with "../path/to/jaas.config" as the value.

From the java.util.Properties documentation you can use a Unicode escape sequence of '\u003d' but that issues the literal escape characters to the JVM.

At a minimum the customize dialog should issue a warning when either empty keys or empty values are found during parsing which would signal that the save is not going to work right.