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

Make appropriate changes for GET requests that we will send as POST with custom header

    XMLWordPrintableJSON

Details

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

    Description

      We have GET request, that can exceed url limit of chars. We will change them into POST requests, with custom headers, and BE will treat them as GET requests.

      Example:

      http://c6401.ambari.apache.org:8080/api/v1/clusters/mycluster/hosts?page_size=25&from=0&Hosts/host_name.in( *HERE CAN BE 2000 HOST NAMES* )&fields=Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,metrics/disk,metrics/load/load_one,metrics/cpu/cpu_system,metrics/cpu/cpu_user,metrics/memory/mem_total,metrics/memory/mem_free,alerts/summary&minimal_response=true
      

      Attachments

        1. AMBARI-6381.patch
          20 kB
          Oleg Nechiporenko
        2. AMBARI-6381-1.6.1patch
          20 kB
          Oleg Nechiporenko

        Activity

          People

            onechiporenko Oleg Nechiporenko
            onechiporenko Oleg Nechiporenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: