[GLASSFISH-20493] Command Model cache not always updated Created: 08/May/13  Updated: 21/Sep/15

Status: Open
Project: glassfish
Component/s: command_line_interface
Affects Version/s: 4.0_b87_RC3
Fix Version/s: 4.1.1

Type: Bug Priority: Blocker
Reporter: Joe Di Pol Assignee: martin.mares
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I've encountered a case where we changed the default value of a command, but that did not result in the command model cache being invalidated and updated. Details:

The default value for a parameter was changed from "3.0" to "3.2" in the
code like this:

@Param(optional=true, defaultValue="3.2", acceptableValues="3.0,3.2")
String ovmversion; 

But the command cache in $HOME/.gfclient/cache/localhost.localdomain_7001/create-virtualization-provider-type-ovm still lists the old default value for ovmversion:

$ cat create-virtualization-provider-type-ovm
ETag: qa1JOZJjbBkTh8bbvYyQFQ==
{"command":{"@name":"create-virtualization-provider-type-ovm",
"option":[{"@name":"configName","@type":"STRING","@primary":"true"},
{"@name":"_ovaburl","@type":"STRING","@optional":"true","@default":"http:\/\/localhost:7001"},
{"@name":"_ovabuser","@type":"STRING","@optional":"true"},
{"@name":"_ovabpassword","@type":"PASSWORD","@optional":"true"},
{"@name":"ovmurl","@type":"STRING"},{"@name":"ovmuser","@type":"STRING"},
{"@name":"ovmpassword","@type":"PASSWORD"},{"@name":"ovmpool","@type":"STRING"},
{"@name":"ovmtimeout","@type":"STRING","@optional":"true","@default":"3600"},
{"@name":"ovmversion","@type":"STRING","@optional":"true","@default":"3.0","@acceptable-values":"3.0,3.2"},
{"@name":"defaultconfig","@type":"BOOLEAN","@optional":"true","@default":"false"},
{"@name":"force","@type":"BOOLEAN","@optional":"true","@default":"false"}]}}

Generated at Sat Dec 03 11:28:19 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.