Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 838C217B2F for ; Wed, 5 Nov 2014 01:35:33 +0000 (UTC) Received: (qmail 53752 invoked by uid 500); 5 Nov 2014 01:35:28 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 53709 invoked by uid 500); 5 Nov 2014 01:35:28 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 53698 invoked by uid 99); 5 Nov 2014 01:35:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 01:35:28 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Nov 2014 01:35:06 +0000 Received: (qmail 46519 invoked by uid 99); 5 Nov 2014 01:32:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 01:32:34 +0000 Date: Wed, 5 Nov 2014 01:32:34 +0000 (UTC) From: "Srikanth Sundarrajan (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-862) Falcon entity Rest API - filter by tags also returns entities that do not have tags. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197306#comment-14197306 ] Srikanth Sundarrajan commented on FALCON-862: --------------------------------------------- Use Collections::isEmpty() instead of size() == 0 > Falcon entity Rest API - filter by tags also returns entities that do not have tags. > ------------------------------------------------------------------------------------- > > Key: FALCON-862 > URL: https://issues.apache.org/jira/browse/FALCON-862 > Project: Falcon > Issue Type: Bug > Components: webapp > Affects Versions: 0.6 > Reporter: Balu Vellanki > Assignee: Balu Vellanki > Fix For: 0.6 > > Attachments: FALCON-862.patch > > Original Estimate: 2h > Remaining Estimate: 2h > > To reproduce : Create and submit two process entities. One with tag "test=blah" and another without any tags. > GET http://falcon-node:15000/api/entities/list/process?fields=tags&tags=test=blah should return only one process entity. Instead it returns both process entities -- This message was sent by Atlassian JIRA (v6.3.4#6332)