[jboss-jira] [JBoss JIRA] (WFCORE-3748) Copying lot of commands into CLI prompt fails

Martin Choma (JIRA) issues at jboss.org
Mon Apr 16 09:54:00 EDT 2018


Martin Choma created WFCORE-3748:
------------------------------------

             Summary: Copying lot of commands into CLI prompt fails
                 Key: WFCORE-3748
                 URL: https://issues.jboss.org/browse/WFCORE-3748
             Project: WildFly Core
          Issue Type: Bug
          Components: CLI
    Affects Versions: 5.0.0.Alpha3
            Reporter: Martin Choma
            Assignee: Jean-Francois Denise


Running commands with --file option works OK. Copying commands one by one works OK

Seems to me as something is beeing overflowed.

{code}
[standalone at localhost:9990 /] # prepare server and client key materials
[standalone at localhost:9990 /] # generate server keystore
[standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:add(type=PKCS12, credential-reference={clear-text=secret},path=/tmp/server.keystore)
{"outcome" => "success"}
[standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:generate-key-pair(alias=server, distinguished-name="CN=server")
{"outcome" => "success"}
[standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:export-certificate(alias=server,path=/tmp/server.certificate.pem,pem=true)
{"outcome" => "success"}
[standalone at localhost:9990 /] # generate client keystore
[standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:add(type=PKCS12, credential-reference={clear-text=secret},path=/tmp/client.keystore)
{"outcome" => "success"}
[standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:generate-key-pair(alias=client, distinguished-name="CN=client")
{"outcome" => "success"}
[standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:export-certificate(alias=clieytron/key-store=client_truststore:import-certificate(alias=server,path=/tmp/server.certificate.pem,validate=false
Closing ')' is missing.
[standalone at localhost:9990 /] # save it all
[standalone at localhost:9990 /] /subsystem=elytron/key-store=server_keystore:store()
{
    "outcome" => "success",
    "result" => undefined
}
[standalone at localhost:9990 /] /subsystem=elytron/key-store=client_keystore:store()
{
    "outcome" => "success",
    "result" => undefined
}
[standalone at localhost:9990 /] /subsystem=elytron/key-store=server_truststore:store()
{
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0216: Management resource '[
    (\"subsystem\" => \"elytron\"),
    (\"key-store\" => \"server_truststore\")
]' not found",
    "rolled-back" => true
}
[standalone at localhost:9990 /] /subsystem=elytron/key-store=client_truststore:store()
{code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list