[
https://issues.apache.org/jira/browse/AMQ-5714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14485270#comment-14485270
]
ASF GitHub Bot commented on AMQ-5714:
-------------------------------------
GitHub user spurin opened a pull request:
https://github.com/apache/activemq/pull/83
https://issues.apache.org/jira/browse/AMQ-5714
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/spurin/activemq AMQ-5714
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq/pull/83.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 #83
----
commit d4091eeccfd9fd7985dcc4dc93dbcc938e2ef9bd
Author: James Spurin <[email protected]>
Date: 2015-04-08T14:07:42Z
https://issues.apache.org/jira/browse/AMQ-5714
----
> Issue with pathCanonical() method within activemq startup for installation
> paths that consist of directories with a single character or 2 characters
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-5714
> URL: https://issues.apache.org/jira/browse/AMQ-5714
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.11.1
> Reporter: James Spurin
> Priority: Minor
> Fix For: Unscheduled
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The pathCanonical method does not work as expected for directories that
> contain either single characters or 2 characters. This is caused by the
> following entry -
> {noformat}
> echo "${dst}" | sed -e 's#//#/#g' -e 's#/./#/#g' -e 's#/[^/]*/../#/#g'
> {noformat}
> This can be resolved with the following changes -
> {noformat}
> echo "${dst}" | sed -e 's#//#/#g' -e 's#/\./#/#g' -e 's#/[^/]*/\.\./#/#g'
> {noformat}
> Example, before and after -
> {noformat}
> # echo /1/2/3/4/11/22/33/44/.././x | sed -e 's#//#/#g' -e 's#/./#/#g' -e
> 's#/[^/]*/../#/#g'
> /2/22/../x
> # echo /1/2/3/4/11/22/33/44/.././x | sed -e 's#//#/#g' -e 's#/\./#/#g' -e
> 's#/[^/]*/\.\./#/#g'
> /1/2/3/4/11/22/33/x
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)