tracker issue : CF-3130694

select a category, or use search below
(searches all categories and all time range)
Title:

CF Admin incorrectly reads/writes to/from jvm.config

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/05/2012

Components: Administrator

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta / 281780

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Win All

Vote Count: 0

I noticed CF Admin incorrectly reads from, and writes to, the CF Class Path section of jvm.config.

Repro:
1) Load JVM page of CF Admin, and add this CF Class Path: C:\ColdFusion10\cfusion\lib\foo
2) Edit jvm.config, and move that path to the 1st position in the CF Class Path list
3) Load JVM page of CF Admin, and see this in the CF Class Path box:

    -Dcoldfusion.classPath=C:\ColdFusion10\cfusion\lib\foo

4) Without changing anything on JVM page, just click the "Submit" button
5) Open jvm.config, and see the path was moved to the end of the list, as follows:

    -Dcoldfusion.classPath=C:\\ColdFusion10\\cfusion\\lib\\foo

Two bugs:
1) CF Admin's CF Class Path box should never display this text "-Dcoldfusion.classPath="
2) Class Path position is important. If we manually edit jvm.config, and change position of our paths, CF Admin should respect this new positioning and not move our paths to the end of the list

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3130694

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

Related thread: http://prerelease.adobe.com/r/?d5b0cfe629a14bfd8f18170bb92ca19a
Comment by External U.
20350 | March 05, 2012 04:48:30 PM GMT
Verified the same bug on CF 801 and CF 9 as well (Comment added from ex-user id:vnigam)
Comment by Adobe D.
20351 | March 06, 2012 12:32:52 AM GMT
At step 5,the jvm.config adds a comma before the last classpath entry eg: -Dcoldfusion.classPath=paths,-Dcoldfusion.classPath=new path Need to check if the comma needs to be replaced by space (Comment added from ex-user id:vnigam)
Comment by Adobe D.
20352 | March 06, 2012 12:35:12 AM GMT
We definitely need to remove the "-Dcoldfusion.classpath=" that is coming up in the admin. It should not be there at all. It should only be the comma separated list of libraries. This is a critical bug since it would corrupt the jvm.config file and therefore must be fixed. However, order seems to be a bit tricky and we can look into that later.
Comment by Rupesh K.
20353 | March 06, 2012 08:21:20 AM GMT
For change of order user needs to restart the server once he changes jvm.config file. Watching jvm.config file continuously so as to pick up user changes will be an expensive process. Other part has been fixed
Comment by Uday O.
20354 | March 07, 2012 04:36:51 AM GMT
On multi-server instance, for a newly created instance - when I add a path in ColdFusion ClassPath text area(under "Java and JVM" of Admin UI), submit change and try to restart the instance, it does not restart. When looked into jvm.config file of that instance, it was figured out that for "application.home", the path was corrupted(it was missing the backward slash after drive name)
Comment by Akhila K.
20355 | March 09, 2012 05:47:17 AM GMT
I am not sure if the latest issue related to the original bug or the fix which has gone. Plz Verify if this issue did not occur before this fix.
Comment by Uday O.
20356 | March 09, 2012 07:55:34 AM GMT
Regarding bug #1: I've verified this is fixed in CF10 Final (build 10,282462). Regarding bug #2: Issue is two-fold. 1) CF Class Path box doesn't display full list of libraries (it only displays libraries previously entered by user) 2) CF Class Path box assumes user-entered string should be "appended to the end" of the CF Class Path in jvm.config The latter is understandable in most cases. But what if user wants to specify order? Suggestion: Addition of a checkbox "[x] Display full CF Class Path". When checked, a JavaScript replaces the current contents of the CF Class Path box (the string previously entered by user) w/ the full list of CF Class Path libraries from jvm.config. Now user can see full list of libraries and then can specify order. Regarding "For change of order user needs to restart the server once he changes jvm.config file." That wasn't the issue I was discussing. Sorry for the confusion. I was only discussing how CF Class Path box writes user-entered string to the end of the list (even if user previously moved it to the beginning of the list by manually editing jvm.config.. the CF Admin still forces it to the end again). Thanks!, -Aaron
Comment by External U.
20357 | May 27, 2012 03:35:37 PM GMT