[
https://issues.apache.org/jira/browse/AMBARI-18798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15636010#comment-15636010
]
Hudson commented on AMBARI-18798:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #5936 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/5936/])
AMBARI-18798. Long rack_id value causes sql-error (onechiporenko)
(onechiporenko:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d348b65e023d17589767c7a2c45700bf4ad674ed])
* (edit) ambari-web/test/utils/validator_test.js
* (edit) ambari-web/app/styles/application.less
* (edit) ambari-web/app/templates/main/host/summary.hbs
* (edit) ambari-web/test/views/common/helpers/format_word_break_view_test.js
* (edit) ambari-web/app/views/common/helpers/format_word_break_view.js
* (edit) ambari-web/app/messages.js
* (edit) ambari-web/app/utils/validator.js
> Long rack_id value causes sql-error
> -----------------------------------
>
> Key: AMBARI-18798
> URL: https://issues.apache.org/jira/browse/AMBARI-18798
> Project: Ambari
> Issue Type: Bug
> Components: ambari-web
> Affects Versions: 3.0.0
> Reporter: Oleg Nechiporenko
> Assignee: Oleg Nechiporenko
> Fix For: 3.0.0
>
> Attachments: AMBARI-18798.patch
>
>
> * {{rack_id}} value longer than 255 symbols causes sql-error
> {noformat}
> Call: UPDATE hosts SET rack_info = ? WHERE (host_id = ?)
> bind => [2 parameters bound]
> 03 Nov 2016 15:08:25,680 WARN [ambari-client-thread-521] ServletHandler:561
> - Error Processing URI: /api/v1/clusters/c1/hosts -
> (javax.persistence.RollbackException) Exception [EclipseLink-4002] (Eclipse
> Persistence Services - 2.6.2.v20151217-774c696):
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: ERROR: value too long
> for type character varying(255)
> {noformat}
> * UI doesn't check {{rack_id}} length
> * Big {{rack_id}} value looks weird on the host summary page
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)