[GLASSFISH-10340] delete-system-property should include the element name as well while printing the error Created: 16/Oct/09  Updated: 22/May/13

Status: Open
Project: glassfish
Component/s: admin
Affects Version/s: V3
Fix Version/s: future release

Type: Improvement Priority: Major
Reporter: sankarpn Assignee: kumara
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: PC


Issuezilla Id: 10,340
Tags: 3_1-exclude

 Description   

When you try to delete the system property which is in use it fails with the
message that the property is in use. But it doesn't print the config element in
which the property is referenced.

In the following case the listener httpls1 is referencing the property, the
error message should say the property is in use by the element httpls1.

aroot@easqeopt19:~# asadmin delete-system-property port
com.sun.enterprise.admin.cli.CommandException: remote failure: System Property
port is referenced by [network-listener:port] in the configuration. Please
remove the references first.

Command delete-system-property failed.

aroot@easqeopt19:~# asadmin get "*" | grep httpls1
configs.config.server-config.network-config.network-listeners.network-listener.httpls1.port=$

{port}

 Comments   
Comment by km [ 16/Oct/09 ]

Sure, later.

Comment by Tom Mueller [ 15/Feb/11 ]

Upping the priority based on the age of the issue. Changing this to an RFE.

This is a change to the DeleteSystemProperty.listRefs method, to add the value of a "name" attribute, if it exists.

Comment by Tom Mueller [ 05/Apr/11 ]

A fix for this issue was initially identified for possible inclusion in the 3.2 release, but after further 3.2 planning, the feature or improvement did not make the cut. This issue is being targeted for a future release. If based on a reevaluation, it is targeted for 3.2, then update the "fix version" again.

Generated at Sun Dec 04 02:19:11 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.