Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3726311DFE for ; Fri, 4 Jul 2014 13:55:34 +0000 (UTC) Received: (qmail 59068 invoked by uid 500); 4 Jul 2014 13:55:34 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 59034 invoked by uid 500); 4 Jul 2014 13:55:34 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 59006 invoked by uid 99); 4 Jul 2014 13:55:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 13:55:33 +0000 Date: Fri, 4 Jul 2014 13:55:33 +0000 (UTC) From: "Oleg Nechiporenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-6381) Make appropriate changes for GET requests that we will send as POST with custom header MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-6381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Nechiporenko updated AMBARI-6381: -------------------------------------- Attachment: AMBARI-6381-1.6.1patch > Make appropriate changes for GET requests that we will send as POST with custom header > -------------------------------------------------------------------------------------- > > Key: AMBARI-6381 > URL: https://issues.apache.org/jira/browse/AMBARI-6381 > Project: Ambari > Issue Type: Bug > Components: client > Affects Versions: 1.6.1 > Reporter: Oleg Nechiporenko > Assignee: Oleg Nechiporenko > Priority: Critical > Fix For: 1.6.1 > > Attachments: AMBARI-6381-1.6.1patch, AMBARI-6381.patch > > > 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: > {code} > 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 > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)