Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-758

Handle special characters in passwords starting from -r

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.1
    • 0.5.1, 0.6.0
    • admin
    • None

    Description

      Problem Statement:
      Ranger install fails if password starts with '-r'

      Steps to Reproduce:
      1) Deploy cluster with out ranger
      2) Try to add ranger with specific password
      Ranger DB password = -ran*ger_$admin+

      Actual result:
      When password contains '-r' at beginning, parsing does not work properly:

      2015-11-23 17:19:52,462  [I] --------- Verifying Ranger DB connection ---------
      2015-11-23 17:19:52,462  [I] Checking connection
      SQLException : SQL state: 28P01 org.postgresql.util.PSQLException: FATAL: password authentication failed for user "rangeradmin" ErrorCode: 0
      2015-11-23 17:19:52,705  [E] Can't establish connection 
      

      Expected Result:
      Ranger install should work even with passwords starting with '-r'

      Attachments

        Activity

          People

            gautamborad Gautam Borad
            gautamborad Gautam Borad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: