[jboss-jira] [JBoss JIRA] (WFLY-7398) Tab completion causes NUL characters ('\0') to be injected...sometimes

Jean-Francois Denise (JIRA) issues at jboss.org
Fri Oct 28 08:23:00 EDT 2016


    [ https://issues.jboss.org/browse/WFLY-7398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13313398#comment-13313398 ] 

Jean-Francois Denise commented on WFLY-7398:
--------------------------------------------

Thank you for your time,
in case you have some more free cycles,...
As soon as you use tab you get the '\0' right? Whatever the operation?
What about /deployment=toto:add(content=[{url=<TAB>

Any chance to get the services value-type? Perhaps we have strange values there.

Thanks.
JF

> Tab completion causes NUL characters ('\0') to be injected...sometimes
> ----------------------------------------------------------------------
>
>                 Key: WFLY-7398
>                 URL: https://issues.jboss.org/browse/WFLY-7398
>             Project: WildFly
>          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)


More information about the jboss-jira mailing list