[GLASSFISH-18335] delete-node endpoint is missing in 4.0 Created: 07/Feb/12  Updated: 29/Jan/13  Resolved: 29/Jan/13

Status: Resolved
Project: glassfish
Component/s: rest-interface
Affects Version/s: 4.0_b22
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Anissa Lam Assignee: Jason Lee
Resolution: Works as designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The delete-node endpoint used to be
"management/domain/nodes/node/NODE-NAME/delete-node" for 3.1.2

However, in 4.0, calling this returns 404.
Using the HTML interface also didn't do anything, just refresh the screen.



 Comments   
Comment by Jason Lee [ 08/Feb/12 ]

To delete a node you need to issue a DELETE request:

curl -sv -S -H 'Accept: application/json' -H 'X-Requested-By: dummy' -X DELETE http://localhost:4848/management/domain/nodes/node/foo

Comment by Anissa Lam [ 08/Feb/12 ]

Thats fine if we don't want to provide the same endpoint as in 3.1.2, GUI can code accordingly.

However, you should fix the HTML interface, although i know you hate it
There are others who is using it, and it will be nice to continue maintaining it so it is useful. Unless you want to remove this HTML interface all together.

Comment by Jason Lee [ 08/Feb/12 ]

I'm going to see if I can get permission to remove the HTML interface. It's clunky and buggy, and the source of other, more serious bugs. Lowering the priority on this.

Comment by Jason Lee [ 29/Jan/13 ]

The delete-node URI was removed on 10/13/2011 (and moved, presumably, to an annotation): http://svnsearch.org/svnsearch/repos/GLASSFISH/search?p=/trunk/main/nucleus/admin/rest/rest-service/src/main/java/org/glassfish/admin/rest/generator/CommandResourceMetaData.java&rev=50230&filename=CommandResourceMetaData.java

Generated at Wed Jun 03 12:44:19 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.