<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1067</bug_id>
          
          <creation_ts>2014-09-14 07:53:13 +0200</creation_ts>
          <short_desc>IOUtil.testDirExec(File) needs to preserve SPACE in exetst.getCanonicalPath() command</short_desc>
          <delta_ts>2019-03-29 17:54:47 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2.3.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1103</blocked>
    
    <blocked>1109</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>rene</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>3a8515045c906b0174fb74f25b425f532b9cf2d1</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4227</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-09-14 07:53:13 +0200</bug_when>
    <thetext>Having a test-executable file with SPACE in it&apos;s temporary path,
e.g. 
  Unix:       /magic temp/user/
  Windows XP: C:\Documents and Settings\user\temp

results to split up commands if using
&apos;Process.exec(String)&apos;, since it utilizes 
a StringTokenizer to assemble the command String[].

This patch uses &apos;Process.exec(String[])&apos; avoiding 
splitting up SPACE in the full command string/path.

Major impact is on &apos;Windows XP&apos;,
where a SPACE separated TEMP/TMP folder is the default.

Note-1: Commit 9bc3d3f78bb2fb1aa0ccfb02ffb5bdda74420cac
introduced testing executable permission on Windows (Bug 1015)
and rendered this issue visible.

To reproduce the issue on Windows:
+++
set TEMP=C:\Documents and Settings\jogamp\temp
set TMP=C:\Documents and Settings\jogamp\temp
&quot;C:\Program Files (x86)\Mozilla Firefox\firefox.exe&quot;
+++

Note-2: This bug affects all platforms!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4228</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-09-14 07:55:40 +0200</bug_when>
    <thetext>3a8515045c906b0174fb74f25b425f532b9cf2d1
  Fixed as described</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4378</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-10 14:34:09 +0200</bug_when>
    <thetext>*** Bug 1094 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>