[
https://issues.jboss.org/browse/WFCORE-1909?page=com.atlassian.jira.plugi...
]
Jean-Francois Denise commented on WFCORE-1909:
----------------------------------------------
Hi David,
thank-you for the additional information. I ran your branch, the value-type is a simple
String, nothing special there. I checked CLI code, no way to internally inject this
character,
I found an explanation to what you are experiencing. It could be that, as our IDE are
offering completion with the combination of "Ctrl- space" (at least NetBeans and
Eclipse), you typed at some point this combination to complete the CLI as you are used to
do in your IDE. In the terminal Ctrl-space means '\0' character...
I was able to reproduce the problem. Type 'Ctrl space', nothing is displayed in
the CLI console although '\0' has been stored.
I am going to see if we can filter out (or make them visible) these characters at the Aesh
level. Aesh sees all characters and has the choice to keep them or not.
Tab completion causes NUL characters ('\0') to be
injected...sometimes
----------------------------------------------------------------------
Key: WFCORE-1909
URL:
https://issues.jboss.org/browse/WFCORE-1909
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: David Lloyd
Assignee: Jean-Francois Denise
Priority: Critical
I noticed while testing my subsystem that sometimes using tab-complete on an attribute
causes NUL ('\0') characters to be injected into the input. These characters are
invisible on the screen but cause XML marshalling to fail as that character is forbidden.
My "less" output of .jboss-cli-history looks something like this:
{noformat}
embed-server --std-out=echo
cd subsystem=discovery
./static-provider=test:add(services=[{uri=^@^@"local",
abstract-type="ejb", abstract-type-authority="jboss"}])
./static-provider=test4:add(services=[{uri="local",
abstract-type="ejb", abstract-type-authority="jboss"}])
{noformat}
In the first "test:add" case I used tab-completion; in the second
"test4:add" case I typed it out by hand. The "^@" are in inverse
video in less, indicating a NUL character.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)