[
https://issues.apache.org/jira/browse/AMBARI-19287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15785924#comment-15785924
]
Hudson commented on AMBARI-19287:
---------------------------------
ABORTED: Integrated in Jenkins build Ambari-branch-2.5 #609 (See
[https://builds.apache.org/job/Ambari-branch-2.5/609/])
AMBARI-19287. Adding custom property should trim white spaces in the
(onechiporenko:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=95ac5be3183b42c91a788aa73dd4cd3b953240c2])
* (edit) ambari-web/app/utils/validator.js
* (edit) ambari-web/test/utils/validator_test.js
* (edit) ambari-web/app/views/common/configs/service_configs_by_category_view.js
> Adding custom property should trim white spaces in the prefix and suffix of
> the key names
> -----------------------------------------------------------------------------------------
>
> Key: AMBARI-19287
> URL: https://issues.apache.org/jira/browse/AMBARI-19287
> Project: Ambari
> Issue Type: Bug
> Components: ambari-web
> Affects Versions: 2.5.0
> Reporter: Jaimin Jetly
> Assignee: Jaimin Jetly
> Fix For: 2.5.0
>
> Attachments: AMBARI-19287.patch, AMBARI-19297_branch-2.5.patch
>
>
> *STR:*
> # Add a custom property by keeping trailing whitespace in the property name
> *Expected behavior:* white spaces at the end and similar white space in the
> beginning of the property name should be trimmed and the property should be
> added and shown in the custom section
> *Actual behavior:* Validation error is shown
> users that copy paste property name from some document to the custom property
> addition dialog often have trailing white spaces and see a validation error
> that leads to confusion.
> Note: Scope of this work is for both single property addition and bulk
> addition of all properties but it is limited to only property name. No logic
> related to property value needs to be changed as part of this task
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)