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

Script Alert Parameters With Shell Characters Are Not Properly Escaped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.4.0
    • ambari-server
    • None

    Description

      When creating a script alert, the parameters passed to that script should not have any un-escaped special characters. Things like quotes can cause the arguments to be cut:

      Original text passed in:

      Metastore on c6403.ambari.apache.org failed "this is in quotes"
      
      ===============START================
      Tue Feb 9 16:10:17 EST 2016
      -> Argument:  hive_metastore_process
      -> Argument:  Hive Metastore Process
      -> Argument:  HIVE
      -> Argument:  CRITICAL
      -> Argument:  Metastore on c6403.ambari.apache.org failed 
      -> Argument:  this is in quotes
      ================END=================
      

      Attachments

        1. AMBARI-14984.patch
          9 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: