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

Ranger public rest api gives 200 response for wrong credential instead of 401

    XMLWordPrintableJSON

Details

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

    Description

      Getting 200 response from ranger server-side(as it is redirecting to login page) using wrong credential instead of 401.
      Because of this urllib2 python module gives 200 response code with no json data in response and gets below error:

      ValueError: No JSON object could be decoded

      Used below rest public api url for above scenario

       http://{ranger_host}:6080/service/public/api/repository?name={repo_name}&type={repo_type}&status=true 

      Attachments

        1. RANGER-674.patch
          1.0 kB
          Gautam Borad

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: