activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Spurin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-5714) Issue with pathCanonical() method within activemq startup
Date Wed, 08 Apr 2015 13:48:12 GMT

     [ https://issues.apache.org/jira/browse/AMQ-5714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Spurin updated AMQ-5714:
------------------------------
    Description: 
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'

This can be resolved with the following changes -

echo "${dst}" | sed -e 's#//#/#g' -e 's#/\./#/#g' -e 's#/[^/]*/\.\./#/#g'

Example, before and after -

# 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}

  was:
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'

This can be resolved with the following changes -

echo "${dst}" | sed -e 's#//#/#g' -e 's#/\./#/#g' -e 's#/[^/]*/\.\./#/#g'

Example, before and after -

# 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


> Issue with pathCanonical() method within activemq startup
> ---------------------------------------------------------
>
>                 Key: AMQ-5714
>                 URL: https://issues.apache.org/jira/browse/AMQ-5714
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: AMQP
>    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'
> This can be resolved with the following changes -
> echo "${dst}" | sed -e 's#//#/#g' -e 's#/\./#/#g' -e 's#/[^/]*/\.\./#/#g'
> Example, before and after -
> # 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)

Mime
View raw message