[jboss-jira] [JBoss JIRA] (WFCORE-3748) Copying lot of commands into CLI prompt fails
Guido Jäkel (JIRA)
issues at jboss.org
Fri May 25 07:11:00 EDT 2018
[ https://issues.jboss.org/browse/WFCORE-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582212#comment-13582212 ]
Guido Jäkel edited comment on WFCORE-3748 at 5/25/18 7:10 AM:
--------------------------------------------------------------
I use "bash here documents" to pass dynamic commands to the CLI. Switching from WF-10 to WF-12, this fails while direct passing stdin with an Out-Of-Bounds-Exception at 1kB text. But if i use {{--file=/dev/stdin}} to pass the stream, i may work around the issue.
was (Author: gjaekel):
I use "bash here documents" to pass dynamic commands to the CLI. Switching from WF-10 to WF-12, this fails while direct passing stdin with an Out-Of-Bounds-Exception at 1kB text. But if i use {{ --file=/dev/stdin}} to pass the stream, i may work around the issue.
> 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