Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

Admin REST jvm-options error "is invalid because it does not start with a '-'"

$
0
0

Hello,

I have been playing with admin rest services and almost everything works except setting jvm-options. When I try to set an option first of all the option is not set second all existing JVM options are cleared from configuration.

These are the examples that I have tried against the 3.1.2.2 and 4.0.b89

curl -X POST -H "X-Requested-By: GlassFish REST HTML interface" -d id=-test http://localhost:4848/management/domain/configs/config/server-config/jav... -v
curl -X POST -H "X-Requested-By: GlassFish REST HTML interface" -d id=\-test http://localhost:4848/management/domain/configs/config/server-config/jav... -v
curl -X POST -H "X-Requested-By: GlassFish REST HTML interface" -d "id=-test" http://localhost:4848/management/domain/configs/config/server-config/jav... -v
curl -X POST -H "X-Requested-By: GlassFish REST HTML interface" -d "id=--test" http://localhost:4848/management/domain/configs/config/server-config/jav... -v
curl -X POST -H "X-Requested-By: GlassFish REST HTML interface" -d "id=%2Dtest" http://localhost:4848/management/domain/configs/config/server-config/jav... -v
curl -X POST -H "X-Requested-By: GlassFish REST HTML interface" -d "id=%97test" http://localhost:4848/management/domain/configs/config/server-config/jav... -v
curl -X POST -H "X-Requested-By: GlassFish REST HTML interface" -d "id=-%2Dtest" http://localhost:4848/management/domain/configs/config/server-config/jav... -v

The same happens if I try to set the option from rest admin through http://localhost:4848/management/domain/configs/config/server-config/jav....

Are you having the same problem? Is it a bug ?

Thanks


Viewing all articles
Browse latest Browse all 1091

Trending Articles