ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Nechiporenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-18798) Long rack_id value causes sql-error
Date Fri, 04 Nov 2016 12:53:58 GMT

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

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

Build failed not because of this patch
{noformat}
[INFO] Ambari Web ......................................... SUCCESS [02:38 min]
[INFO] Ambari Server ...................................... FAILURE [15:29 min]
{noformat}

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

Mime
View raw message