[ 
https://issues.apache.org/jira/browse/AMBARI-18798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Nechiporenko updated AMBARI-18798:
---------------------------------------
    Attachment: AMBARI-18798.patch

> 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)

Reply via email to