You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/10/09 16:44:00 UTC

[jira] [Commented] (KARAF-6769) censor parameter does not work when using alias.

    [ https://issues.apache.org/jira/browse/KARAF-6769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614749#comment-17614749 ] 

ASF subversion and git services commented on KARAF-6769:
--------------------------------------------------------

Commit add9ea127dae8dbd8c8dbe965f4d02d2e3c644da in karaf's branch refs/heads/main from Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=add9ea127d ]

Merge pull request #1638 from awrb/KARAF-6769

[KARAF-6769] - fix a bug where command options are not censored when using their aliases

> censor parameter does not work when using alias.
> ------------------------------------------------
>
>                 Key: KARAF-6769
>                 URL: https://issues.apache.org/jira/browse/KARAF-6769
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.8
>            Reporter: Venkatrangan Govindarajan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> When using censor attribure for a karaf Option like below
>  
> {code:java}
> // code placeholder
>  @Option(name = "-aaaAdmin",
>             aliases = { "--aaaAdminName" },
>             description = "AAA admin username",
>             required = true,
>             censor = true,
>             multiValued = false)
>     private String userName;
> {code}
> When executing the command with --aaaAdminName does not censor the values. It works well when using -aaaAdmin.  
>  
> It should work with alias also.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)