[ 
https://issues.apache.org/jira/browse/ARTEMIS-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15574889#comment-15574889
 ] 

ASF GitHub Bot commented on ARTEMIS-801:
----------------------------------------

GitHub user dudaerich opened a pull request:

    https://github.com/apache/activemq-artemis/pull/845

    ARTEMIS-801 Decode URL paths

    If the path to file contains some special characters, they are encoded
    in URL form using %<hex> syntax. We should decode such path when it
    is used as path to file on local filesystem.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dudaerich/activemq-artemis ARTEMIS-801

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/845.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #845
    
----
commit 29d5cd2b58aab9b09eccc66ef0eb16e185e26dda
Author: Erich Duda <ed...@redhat.com>
Date:   2016-10-14T07:03:22Z

    ARTEMIS-801 Decode URL paths
    
    If the path to file contains some special characters, they are encoded
    in URL form using %<hex> syntax. We should decode such path when it
    is used as path to file on local filesystem.

----


> Several tests fail if the project is located on path with special characters
> ----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-801
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-801
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Erich Duda
>
> If the path to file contains special characters such as '&', the file is not 
> found.
> {code}
> java.nio.file.NoSuchFileException: 
> /mnt/hudson_workspace/workspace/artemis-project-testsuite-matrix-upstream/NATIVES/false/jdk/openjdk1.8_local/label/RHEL6%26%26x86_64/artemis-cli/target/test-classes/broker-reload.xml
>       at 
> sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
>       at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>       at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>       at 
> sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
>       at java.nio.file.Files.newByteChannel(Files.java:361)
>       at java.nio.file.Files.newByteChannel(Files.java:407)
>       at java.nio.file.Files.readAllBytes(Files.java:3152)
>       at 
> org.apache.activemq.cli.test.FileBrokerTest.replacePatternInFile(FileBrokerTest.java:145)
>       at 
> org.apache.activemq.cli.test.FileBrokerTest.testConfigFileReload(FileBrokerTest.java:137)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to