Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 948C010561 for ; Tue, 17 Dec 2013 18:43:55 +0000 (UTC) Received: (qmail 73587 invoked by uid 500); 17 Dec 2013 18:43:55 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 73553 invoked by uid 500); 17 Dec 2013 18:43:55 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 73545 invoked by uid 99); 17 Dec 2013 18:43:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 18:43:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of karlpauls@gmail.com designates 74.125.82.46 as permitted sender) Received: from [74.125.82.46] (HELO mail-wg0-f46.google.com) (74.125.82.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 18:43:51 +0000 Received: by mail-wg0-f46.google.com with SMTP id m15so6345018wgh.1 for ; Tue, 17 Dec 2013 10:43:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YmrTDTFDgrOwAweLezGcd0MTiQDzsj9+su0HXx/C0I4=; b=zMSfu5bgKT8KnTD+7FNM+bzrpba2Q8XRESY7AWv5O/90eOHQUoopyFj9D5KTb9lJAT PJWmENdDXx2Fvcy8K5SDfYC8MWq6F9amIogS0VobdkFmRxv8kV0/YfRsKWrRmeV+GJ9n Je0Inve5j97pwB3nw2nTsWE+GorhDlkwqFc12Binf5xRdNWqLRc637LZoi1LC7lhuyCa WwDOn4AItInuEzOLEyYkbIat6//xwPelG+ukNoil6T6vl+dEFOWLdhHj94SL+Ap4A8r5 Eq7lSvFz/+zWJm1wuftmWdRD69w1QT9QoyTL43futukg6AyN0cggEIRAvyM4ZIrW5y0E FVDg== MIME-Version: 1.0 X-Received: by 10.194.90.144 with SMTP id bw16mr20405306wjb.1.1387305810220; Tue, 17 Dec 2013 10:43:30 -0800 (PST) Received: by 10.216.239.10 with HTTP; Tue, 17 Dec 2013 10:43:30 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Dec 2013 19:43:30 +0100 Message-ID: Subject: Re: getServiceReferences + empty filter From: Karl Pauls To: "dev@felix.apache.org" Content-Type: multipart/alternative; boundary=047d7bfcf35c035e1b04edbf4e0d X-Virus-Checked: Checked by ClamAV on apache.org --047d7bfcf35c035e1b04edbf4e0d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable what makes you think that this is "technically" a valid filter string? regards, Karl On Tuesday, December 17, 2013, Raymond Auge wrote: > Hey All, > > Is it expected that passing a minimal filter string should fail when > fetching ServiceReferences? > > For instance: "()" is technically a valid filter string. > > But this fails: > > _bundleContext.getServiceReferences(clazz, "()") > > with > > org.osgi.framework.InvalidSyntaxException: Missing closing parenthesis: (= ) > at org.apache.felix.framework.Felix.getServiceReferences(Felix.java:3453) > at > > org.apache.felix.framework.Felix.getAllowedServiceReferences(Felix.java:3= 531) > at > > org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleC= ontextImpl.java:432) > > I mean it's not a big deal, just unexpected. > > -- > *Raymond Aug=E9* > (@rotty3000) > Senior Software Architect > *Liferay, Inc.* (@Liferay) > --=20 Karl Pauls karlpauls@gmail.com http://twitter.com/karlpauls http://www.linkedin.com/in/karlpauls https://profiles.google.com/karlpauls --047d7bfcf35c035e1b04edbf4e0d--