You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2012/10/17 22:27:12 UTC

[Bug 54023] New: bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

          Priority: P2
            Bug ID: 54023
          Assignee: issues@jmeter.apache.org
           Summary: bin/jmeter should quote paths properly, like this:
                    "`dirname "$0"`/ApacheJMeter.jar"
          Severity: normal
    Classification: Unclassified
                OS: Mac OS X 10.4
          Reporter: mr.danielaquino@gmail.com
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: Main
           Product: JMeter

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
On which OS does it fail ?

I tested on Mac OS X it works.
I don't have Linux to test.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Daniel Aquino <mr...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Daniel Aquino <mr...@gmail.com> ---
That's proper shell practice to quote all paths in case they contain spaces.

That particular issue above causes the script to fail if any directory it's
under contains a space:

$ p='/a/b c/d/e'

$ dirname $p
dirname: extra operand `c/d/e'
Try `dirname --help' for more information.

$ dirname "$p"
/a/b c/d

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |trivial

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Daniel Aquino <mr...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #4 from Daniel Aquino <mr...@gmail.com> ---
Did you try the example code I posted ?  Because then you would see..

The line should look like this:

"$(dirname -- "$0")/ApacheJMeter.jar"

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] Unable to start JMeter from a root directory and if the full path of JMeter installation contains one or more spaces

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Milamber <mi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|bin/jmeter should quote     |Unable to start JMeter from
                   |paths properly, like this:  |a root directory and if the
                   |"`dirname                   |full path of JMeter
                   |"$0"`/ApacheJMeter.jar"     |installation contains one
                   |                            |or more spaces

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Are you getting a bug ?
On which platform ? and with what kind of folder names ?

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] Unable to start JMeter from a root directory and if the full path of JMeter installation contains one or more spaces

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

--- Comment #5 from Milamber <mi...@apache.org> ---
Description of issue:
bin/jmeter should quote paths properly, like this: "`dirname
"$0"`/ApacheJMeter.jar"

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] bin/jmeter should quote paths properly, like this: "`dirname "$0"`/ApacheJMeter.jar"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4
            Version|unspecified                 |2.8

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54023] Unable to start JMeter from a root directory and if the full path of JMeter installation contains one or more spaces

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54023

Milamber <mi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Milamber <mi...@apache.org> ---
Thanks for report. Fixed.

The issue occur when you try to launch JMeter since another directory (not bin
dir) and if jmeter script path have one or more spaces.

Example 
$ /tmp/directory\ with\ spaces/apache-jmeter-2.8/bin/jmeter
dirname: extra operand `with'
Try `dirname --help' for more information.
Unable to access jarfile /ApacheJMeter.jar


Fixed by adding a double couple of quotes :

java $ARGS $JVM_ARGS -jar "`dirname "$0"`/ApacheJMeter.jar" "$@"

===
URL: http://svn.apache.org/viewvc?rev=1410775&view=rev
Log:
Unable to start JMeter from a root directory and if the full path of JMeter
installation contains one or more spaces
Bugzilla Id: 54023

Modified:
    jmeter/trunk/bin/jmeter
    jmeter/trunk/xdocs/changes.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.