Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21371

Adding ranger failed when user has custom properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.2
    • 2.5.2
    • ambari-web
    • None

    Description

      Add Ranger service failed when custom core-site has the following properties defined:
      hadoop.proxyuser.root.groups
      hadoop.proxyuser.root.hosts
      JS NPE after clicking next on service configuration step, unselect all recommended settings and click OK.
      app.js:67983 Uncaught TypeError: Cannot read property 'propertyDependsOn' of undefined
      at Class.<anonymous> (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/app.js:67983:123)
      at Array.forEach (native)
      at Class.undoRedoRecommended (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/app.js:67970:24)
      at Class.onSaveRecommendedPopup (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/app.js:67957:10)
      at http://horton-amb.vip.lvs.paypal.com:8080/javascripts/app.js:67939:14
      at Class.onPrimary (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/app.js:205542:20)
      at Class.newFunc as onPrimary (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/vendor.js:2608:16)
      at handler (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/vendor.js:21208:35)
      at HTMLButtonElement.<anonymous> (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/vendor.js:13000:16)
      at HTMLDivElement.dispatch (http://horton-amb.vip.lvs.paypal.com:8080/javascripts/vendor.js:107:4816)

      when we get a "delete property" recommendation on a custom property and we unselect it in the popup window, we will trigger this NPE

      Attachments

        1. AMBARI-21371.patch
          1.0 kB
          Richard Zang

        Issue Links

          Activity

            People

              rzang Richard Zang
              rzang Richard Zang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: