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 0CC187219 for ; Tue, 22 Nov 2011 01:43:07 +0000 (UTC) Received: (qmail 87584 invoked by uid 500); 22 Nov 2011 01:43:07 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 87561 invoked by uid 500); 22 Nov 2011 01:43:07 -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 87553 invoked by uid 99); 22 Nov 2011 01:43:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 01:43:06 +0000 X-ASF-Spam-Status: No, hits=-1999.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 01:43:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 27B949641A for ; Tue, 22 Nov 2011 01:42:40 +0000 (UTC) Date: Tue, 22 Nov 2011 01:42:40 +0000 (UTC) From: "Hadrian Zbarcea (Commented) (JIRA)" To: issues@camel.apache.org Message-ID: <2037132532.856.1321926160200.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <27513565.51056.1321881655330.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-4700) RegressionTest failure on camel-saxon @ org.apache.camel.component.xslt.SaxonInvalidXsltFileTest 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/CAMEL-4700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154814#comment-13154814 ] Hadrian Zbarcea commented on CAMEL-4700: ---------------------------------------- @Willem: I don't think so. I am aware of the thread, I just think nothing is broken. The issue was introduced in either r1201236 or r1202819 (didn't check exactly, but probably the latter) and the author probably only bothered to test camel-core, home of the XsltEndpoint, missing the side effect. One feature added was the 'CamelXsltResourceUri' header, that allows one to specify an xslt stylesheet at runtime. You cannot necessarily assume that the xslt stylesheet passed as a header exists at route startup (could be for instance generated/copied by another route or process), but it must exists at the time the xslt endpoint processes the message. Now why would this be different for the stylesheet passed as an uri paramter? Another argument is that compiling the stylesheet is an expensive process and it doesn't need to be done until necessary. First use could happen much, much later after the route start and, again, the stylesheet may not be available when the route starts, but it would be available when the first message is received. Of course, one could argue that if that is the case, one should use the 'CamelXsltResourceUri' header. There is no overhead, because stylesheets are cached. To me, however, the uri parameter is used a default when the header is not specified (convention over configuration) and the endpoint behavior is consistent the way it is now. > RegressionTest failure on camel-saxon @ org.apache.camel.component.xslt.SaxonInvalidXsltFileTest > ------------------------------------------------------------------------------------------------ > > Key: CAMEL-4700 > URL: https://issues.apache.org/jira/browse/CAMEL-4700 > Project: Camel > Issue Type: Task > Components: camel-saxon > Affects Versions: 2.9.0 > Reporter: Babak Vahdat > Assignee: Hadrian Zbarcea > Priority: Trivial > Fix For: 2.9.0 > > Attachments: CAMEL-4700.patch > > > See http://camel.465427.n5.nabble.com/Unit-test-failure-on-trunk-in-camel-saxon-td5009713.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira