Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B78D1879B for ; Fri, 13 Nov 2015 14:39:11 +0000 (UTC) Received: (qmail 77289 invoked by uid 500); 13 Nov 2015 14:39:11 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 77215 invoked by uid 500); 13 Nov 2015 14:39:11 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 77008 invoked by uid 99); 13 Nov 2015 14:39:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2015 14:39:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0D5332C1F5D for ; Fri, 13 Nov 2015 14:39:11 +0000 (UTC) Date: Fri, 13 Nov 2015 14:39:11 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9320) Cannot set XStream permissions on a per CamelContext basis 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/CAMEL-9320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004044#comment-15004044 ] Claus Ibsen commented on CAMEL-9320: ------------------------------------ The tests of camel+xstream was lacking to specify the types they are using, this has been updated and you should do like they do. > Cannot set XStream permissions on a per CamelContext basis > ---------------------------------------------------------- > > Key: CAMEL-9320 > URL: https://issues.apache.org/jira/browse/CAMEL-9320 > Project: Camel > Issue Type: Bug > Components: camel-core > Reporter: Thomas Diesler > Fix For: 2.16.1 > > > One would expect to set xstream permissions on the DataFormat associated with a given CamelContext like this > {code} > XStreamDataFormat dataFormat = (XStreamDataFormat) camelctx.resolveDataFormat("xstream"); > dataFormat.setPermissions("+" + Customer.class.getName()); > {code} > This approach fails however because the DefaultDataFormatResolver does not cache the DataFormat instances it creates -- This message was sent by Atlassian JIRA (v6.3.4#6332)