You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Chad Roberts (JIRA)" <ji...@apache.org> on 2013/06/03 15:21:20 UTC

[jira] [Updated] (AMBARI-2252) Incorrect config_mapping file being used (result of currentStackVersionNumber comparison)

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

Chad Roberts updated AMBARI-2252:
---------------------------------

    Description: 
On the current trunk version, When using stack version 1.3.0 (or 1.3.1), the "currentStackVersionNumber" is an empty string in the configMapping function (below) which is causing the function to incorrectly return "require('data/HDP2/config_mapping')" instead of "require('data/config_mapping')"


configMapping: function() {
      if (stringUtils.compareVersions(App.get('currentStackVersionNumber'), "2.0") === 1 ||
        stringUtils.compareVersions(App.get('currentStackVersionNumber'), "2.0") === 0) {
        return require('data/HDP2/config_mapping');
      }
    return require('data/config_mapping');
  }.property('App.currentStackVersionNumber'),

  was:
When using stack version 1.3.0 (or 1.3.1), the "currentStackVersionNumber" is an empty string in the configMapping function (below) which is causing the function to incorrectly return "require('data/HDP2/config_mapping')" instead of "require('data/config_mapping')"


configMapping: function() {
      if (stringUtils.compareVersions(App.get('currentStackVersionNumber'), "2.0") === 1 ||
        stringUtils.compareVersions(App.get('currentStackVersionNumber'), "2.0") === 0) {
        return require('data/HDP2/config_mapping');
      }
    return require('data/config_mapping');
  }.property('App.currentStackVersionNumber'),

    
> Incorrect config_mapping file being used (result of currentStackVersionNumber comparison)
> -----------------------------------------------------------------------------------------
>
>                 Key: AMBARI-2252
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2252
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>            Reporter: Chad Roberts
>
> On the current trunk version, When using stack version 1.3.0 (or 1.3.1), the "currentStackVersionNumber" is an empty string in the configMapping function (below) which is causing the function to incorrectly return "require('data/HDP2/config_mapping')" instead of "require('data/config_mapping')"
> configMapping: function() {
>       if (stringUtils.compareVersions(App.get('currentStackVersionNumber'), "2.0") === 1 ||
>         stringUtils.compareVersions(App.get('currentStackVersionNumber'), "2.0") === 0) {
>         return require('data/HDP2/config_mapping');
>       }
>     return require('data/config_mapping');
>   }.property('App.currentStackVersionNumber'),

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira