tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 62873] New: Tomcat Monitor application will update multi-string values in Windows registry with blank lines
Date Thu, 01 Nov 2018 02:46:21 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=62873

            Bug ID: 62873
           Summary: Tomcat Monitor application will update multi-string
                    values in Windows registry with blank lines
           Product: Tomcat 8
           Version: 8.5.34
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Meta
          Assignee: dev@tomcat.apache.org
          Reporter: brandon.white@tasktop.com
  Target Milestone: ----

This is a Windows-platform specific issue.

The Tomcat Monitor application does not prevent a user from accidentally
inserting blank lines into the Java Options or Java 9 Options text areas. If a
blank line is introduced into either text area and the changes are applied (by
hitting the Apply or OK button), the changes are committed to the associating
multi-string value in the Windows registry.

If a user were to relaunch the Tomcat Monitor application and view the Java or
Java 9 Options again, they would see that the content has been clipped.
Individual options above the blank line would remain but any below would not be
present. If the Windows Registry editor were used to view the associating
multi-string values, they would see all of the content including the blank
line.

Changing the options again from within the Tomcat Monitor application will
succeed but when the options are committed to the registry multi-string value,
any options that existed below the blank line will be removed.

Note that the Windows registry editor will display an error dialog if a user
attempts to save a multi-string value with an empty line present. The message
is: "Data of type REG_MULTI_SZ cannot contain empty strings. Registry Editor
will remove all empty strings found."

Steps to Reproduce:

1) Download latest Tomcat 8 distribution for windows
2) Run service.bat install to install the default tomcat8 service.
3) Run tomcat8w.exe to start the tomcat monitor application. 
4) Switch to the Java tab and edit either the Java Options or Java 9 Options.
Insert a blank line somewhere in the middle of the text area. Click OK
5) Run tomcat8w.exe again. Look at the Java Options or Java 9 Options where the
blank line was inserted. Notice that all options below the blank line are not
visible.
6) Open up the registry editor and navigate to the multi-string value
associated with the Java (9) Options text area:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun
2.0\Tomcat8\Parameters\Java
7) Notice that all content is present (including the blank line) in the
registry value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message