You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Myroslav Papirkovskyi (JIRA)" <ji...@apache.org> on 2018/03/07 14:05:00 UTC

[jira] [Resolved] (AMBARI-23055) GPL repo is not hidden when default version is chosen in UI

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

Myroslav Papirkovskyi resolved AMBARI-23055.
--------------------------------------------
    Resolution: Fixed

Merged to trunk and branch-2.6

> GPL repo is not hidden when default version is chosen in UI
> -----------------------------------------------------------
>
>                 Key: AMBARI-23055
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23055
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.2
>            Reporter: Vivek Sharma
>            Assignee: Myroslav Papirkovskyi
>            Priority: Critical
>              Labels: pull-request-available, system_test
>             Fix For: 2.6.2
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Ambari server has gpl license disabled i.e.
> {code}
> cat /etc/ambari-server/conf/ambari.properties | grep -i gpl
> gpl.license.accepted=false
> {code}
> - On register version page, upon choosing HDP-2.6.4.0 from the drop-down, the GPL repo field is not masked (see default-version.png)
> - However upon choosing to upload the version from VDF URL, the GPL field is correctly masked (see version-via-vdf.png)
> Looks like the problem is [showRepo()|https://github.com/apache/ambari/blob/branch-2.6/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js#L50] function which calls [isGPLRepo|https://github.com/apache/ambari/blob/branch-2.6/ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js#L46] function where if we do not load version fromVDF URL the showRepo return true
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)