Menu

unable to remove property with dollar sign in key

Help
2013-08-09
2013-08-11
  • Christian Meißner

    Hi,

    i have run "ant test:run" and now i have a property key which i can't remove from configuration:

    here you see a listing of configuration:

    bin/signserver.sh getconfig global
    out = class java.io.PrintStream
    This node has the following Global Configuration:
    Key : GLOB.WORKER2.CLASSPATH Value : org.signserver.module.tsa.TimeStampSigner
    Key : NODE.$HOSTNAME.TEST2 Value : TESTVALUE
    Key : GLOB.WORKER1.CLASSPATH Value : org.signserver.module.statusproperties.StatusPropertiesWorker

    and here you can see what happens if i try to remove property

    bin/signserver.sh removeproperty node 'NODE.$HOSTNAME.Test2'
    removing the global property NODE.$HOSTNAME.Test2 with scope NODE.

    See current configuration with the getconfig command, activate it with the reload command
    Error, the property $HOSTNAME.Test2 doesn't seem to exist

    How can i fix the Problem

    br

    Christian

     
  • Markus Kilås

    Markus Kilås - 2013-08-11

    Hi Christian,
    I was unable to reproduce your problem.
    I did:
    bin/signserver setproperty node '$HOSTNAME.Test2' TESTVAL
    getconfig now shows the same as in your cas:
    Key : NODE.$HOSTNAME.TEST2 Value : TESTVAL
    bin/signserver.sh removeproperty node 'NODE.$HOSTNAME.Test2'
    CP: ./conf:./lib/SignServer-AdminCLI.jar:./res/cesecore::./conf/jboss:/opt/jboss-5.1.0.GA/client/jbossall-client.jar
    removing the global property NODE.$HOSTNAME.Test2 with scope NODE.

    See current configuration with the getconfig command, activate it with the reload command
    Property Removed

    Maybe the property is already removed from the database and you will have to run "bin/signserver reload all".

    Regards,
    Markus

     

Log in to post a comment.