Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D237178AC for ; Thu, 12 Mar 2015 17:22:40 +0000 (UTC) Received: (qmail 89158 invoked by uid 500); 12 Mar 2015 17:22:40 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 89125 invoked by uid 500); 12 Mar 2015 17:22:40 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 89112 invoked by uid 99); 12 Mar 2015 17:22:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2015 17:22:40 +0000 Date: Thu, 12 Mar 2015 17:22:40 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CXF-6292) Init parameters on OSGi service are not picked up 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/CXF-6292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14359008#comment-14359008 ] Sergey Beryozkin edited comment on CXF-6292 at 3/12/15 5:22 PM: ---------------------------------------------------------------- For some reasons init_prefix is set to "" in CXF OSGI properties...Should it be set to "org.apache.cxf.servlet." ? was (Author: sergey_beryozkin): For some reasons init_prefix is set to "" there...Should it be set to "org,apache.cxf.servlet." ? > Init parameters on OSGi service are not picked up > ------------------------------------------------- > > Key: CXF-6292 > URL: https://issues.apache.org/jira/browse/CXF-6292 > Project: CXF > Issue Type: Bug > Components: JAX-RS, Transports > Affects Versions: 2.7.15 > Reporter: Jostein Gogstad > > File: https://github.com/apache/cxf/blob/cxf-2.7.15/rt/transports/http/src/main/resources/OSGI-INF/blueprint/osgiservlet.xml > I _assume_ that the properties set on the service are init-params to {{org.apache.cxf.transport.servlet.ServletController}}. Some frameworks, pax-web-extender-whiteboard in my case, require one of the following for init parameters > # init-params are prefixed with {{init.}} OR > # There's a property {{init-prefix}} on the service specifying the prefix. This property may be blank > With the service as it stands no parameters are set on the servlet by pax-web-extender-whiteboard. They are skipped at this if-statement: https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-extender-whiteboard/src/main/java/org/ops4j/pax/web/extender/whiteboard/internal/tracker/ServletTracker.java#L180-L182 > This makes it impossible to secure the servlet. -- This message was sent by Atlassian JIRA (v6.3.4#6332)