camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Zhemzhitsky (Created) (JIRA)" <>
Subject [jira] [Created] (CAMEL-4560) camel-file component does not close a file when it's used with camel-xslt
Date Wed, 19 Oct 2011 10:06:10 GMT
camel-file component does not close a file when it's used with camel-xslt

                 Key: CAMEL-4560
             Project: Camel
          Issue Type: Bug
          Components: camel-core, camel-xslt
    Affects Versions: 2.8.1
            Reporter: Sergey Zhemzhitsky

Here are the steps to reproduce:

# Create the directory target/in.
# Put the file "file.xml" into the directory target/in. Note: the end tag in this file is
not closed properly.
# Run the test.
# The test should fail.
# The file "file.xml" remains in the target/in but it should not.

package org.apache.camel;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Test;

public class FileLockedTest extends CamelTestSupport {

    public void testFileLocked() throws Exception {
        MockEndpoint result = getMockEndpoint("mock:result");

    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            public void configure() throws Exception {


<?xml version="1.0" encoding="UTF-8"?>

    <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
    <xsl:preserve-space elements="*"/>

    <xsl:template match="/">
        <xsl:apply-templates />

    <xsl:template match="@* | node()">
            <xsl:apply-templates select="@* | node()" />

{code:xml|title=file.xml; Note: the end tag is not closed properly}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message