You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrii Tkach (JIRA)" <ji...@apache.org> on 2013/06/06 14:54:21 UTC

[jira] [Commented] (AMBARI-2299) Custom config UI need to be compatible with multi-line values

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

Andrii Tkach commented on AMBARI-2299:
--------------------------------------

+1 for the patch.
                
> Custom config UI need to be compatible with multi-line values
> -------------------------------------------------------------
>
>                 Key: AMBARI-2299
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2299
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Oleg Nechiporenko
>            Assignee: Oleg Nechiporenko
>             Fix For: 1.2.5
>
>         Attachments: AMBARI-2299.patch
>
>
> We need to be able to handle multi-line custom prop values that NEED to be on separate lines.
> For example hadoop.security.auth_to_local needs a value that is multiple distinct lines...
> {noformat}
>     <value>
>        RULE:[2:$1@$0]([jt]t@.*EXAMPLE.COM)s/.*/mapred/
>        RULE:[2:$1@$0]([nd]n@.*EXAMPLE.COM)s/.*/hdfs/
>        DEFAULT
>    </value>
> {noformat}
> When we pop-up the custom prop dialog, show a text area for the value, so we are good there.  But then we always use a single text input field on the Configs page, so it's pretty much impossible to edit.
> Perhaps we can scan the value and see if it contains newlines.  If it contains newlines, then we can display it in a text area rather than a text field.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira