Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EB4BA200CDA for ; Fri, 4 Aug 2017 13:50:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E993416D6B0; Fri, 4 Aug 2017 11:50:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39FCC16D6AD for ; Fri, 4 Aug 2017 13:50:09 +0200 (CEST) Received: (qmail 35098 invoked by uid 500); 4 Aug 2017 11:50:08 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 35087 invoked by uid 99); 4 Aug 2017 11:50:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2017 11:50:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BF783C3C66 for ; Fri, 4 Aug 2017 11:50:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MGe00qQEePWl for ; Fri, 4 Aug 2017 11:50:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1ABEE5FC4D for ; Fri, 4 Aug 2017 11:50:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 88797E0D45 for ; Fri, 4 Aug 2017 11:50:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1883B2464E for ; Fri, 4 Aug 2017 11:50:00 +0000 (UTC) Date: Fri, 4 Aug 2017 11:50:00 +0000 (UTC) From: "Sharmadha Sainath (JIRA)" To: dev@atlas.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ATLAS-2022) Regression : Empty results fetched from GET Basic search query MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Aug 2017 11:50:10 -0000 [ https://issues.apache.org/jira/browse/ATLAS-2022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sharmadha Sainath updated ATLAS-2022: ------------------------------------- Attachment: ATLAS-2022.patch Commit https://github.com/apache/atlas/commit/9b72de98072f4b4adcc3179399342fd63494043b introduced using atlasDiscoveryService.searchWithParameters() instead of atlasDiscoveryService.searchUsingBasicQuery() . The latter had the limit and offset check whereas the former one didn't have it. Adding the check in the patch. CC : [~apoorvnaik] [~madhan.neethiraj] [~ayubkhan] > Regression : Empty results fetched from GET Basic search query > -------------------------------------------------------------- > > Key: ATLAS-2022 > URL: https://issues.apache.org/jira/browse/ATLAS-2022 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Affects Versions: 0.9-incubating > Reporter: Sharmadha Sainath > Priority: Blocker > Attachments: ATLAS-2022.patch > > > Basic search query fired as a POST request with attribute , tag filters fetches correct results. > But Basic query fired as a GET request with query params encoded in the URL , returns empty results. > For example : Basic query : typeName = "hive_table" query = http://localhost:21000/api/atlas/v2/search/basic?typeName=hive_table&query=employee > returns > {code} > { > queryType: "BASIC", > searchParameters: { > query: "employee", > typeName: "hive_table", > excludeDeletedEntities: false, > limit: 0, > offset: 0 > }, > queryText: "employee" > } > {code} > Few commits back , following was the response : > {code} > { > queryType: "BASIC", > type: "hive_table", > entities: [ > { > typeName: "hive_table", > attributes: { > owner: "admin", > qualifiedName: "default.employee@cl1", > name: "employee", > description: null > }, > guid: "253aa208-0415-4e86-8611-3858fad78ede", > status: "ACTIVE", > displayText: "employee", > classificationNames: [ ] > } > ] > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)