You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Oleg Nechiporenko (JIRA)" <ji...@apache.org> on 2016/11/04 10:02:58 UTC

[jira] [Commented] (AMBARI-18798) Long rack_id value causes sql-error

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

Oleg Nechiporenko commented on AMBARI-18798:
--------------------------------------------

  30339 tests complete (34 seconds)
  151 tests pending


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