You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Joshua Garcia (JIRA)" <ji...@apache.org> on 2010/03/09 05:51:27 UTC

[jira] Created: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
---------------------------------------------------------------------------------------------------

                 Key: OODT-7
                 URL: https://issues.apache.org/jira/browse/OODT-7
             Project: OODT
          Issue Type: Bug
         Environment: jpl-esg machine using cas-curator 1.0.0 release
            Reporter: Joshua Garcia


If a config file is set up as the following, which is shown on the cas-curator user guide:

[joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
<?xml version="1.0" encoding="UTF-8"?>
<cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
  <exec workingDir="">
     <extractorBinPath>
/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
     </extractorBinPath>
     <args>
        <arg isDataFile="true"/>
     </args>
  </exec>
</cas:externextractor>

tomcat's catalina.out log file can have a warning such as:

WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found

Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.

The workaround is simply:

<?xml version="1.0" encoding="UTF-8"?>
<cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
  <exec workingDir="">
     <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
     <args>
        <arg isDataFile="true"/>
     </args>
  </exec>
</cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Garcia, Joshua (388J) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Garcia, Joshua (388J) updated OODT-7:
-------------------------------------

    Attachment: OODT-7.joshuaga.July1420101650.patch.txt

Hi Chris,

Here's the patch. I tried it both with the error present and removed.

Thanks,
Josh


On 7/13/10 6:51 AM, "Chris A. Mattmann (JIRA)" <ji...@apache.org> wrote:



    [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887762#action_12887762 ]

Chris A. Mattmann commented on OODT-7:
--------------------------------------

Hi Josh,

It would be great if you could attach a patch file here that addresses the issue. You can name your patch OODT-7.joshuaga.<datetime>.patch.txt. Then, I'd be happy to review it and get it committed.

Cheers,
Chris



--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.




> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>             Fix For: 0.1-incubating
>
>         Attachments: OODT-7.joshuaga.July1420101650.patch.txt
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated OODT-7:
---------------------------------

    Fix Version/s: 0.1-incubating

- set fix version

> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>             Fix For: 0.1-incubating
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Garcia, Joshua (388J) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887675#action_12887675 ] 

Garcia, Joshua (388J) commented on OODT-7:
------------------------------------------

Hi Chris,

Should the fix be made to the 1.0.0 release itself or to the trunk or to something else?

Thanks,
Josh


On 7/12/10 7:40 PM, "Chris A. Mattmann (JIRA)" <ji...@apache.org> wrote:



    [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887631#action_12887631 ]

Chris A. Mattmann commented on OODT-7:
--------------------------------------

Hey Josh: do you have a patch for this issue, that you could attach? Thanks!


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.




> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>             Fix For: 0.1-incubating
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887762#action_12887762 ] 

Chris A. Mattmann commented on OODT-7:
--------------------------------------

Hi Josh,

It would be great if you could attach a patch file here that addresses the issue. You can name your patch OODT-7.joshuaga.<datetime>.patch.txt. Then, I'd be happy to review it and get it committed.

Cheers,
Chris


> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>             Fix For: 0.1-incubating
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated OODT-7:
---------------------------------

    Component/s: curator

- set component

> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>             Fix For: 0.1-incubating
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann resolved OODT-7.
----------------------------------

    Resolution: Fixed

- patch applied in r981116. Thanks Josh (and Brian)!

> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>            Assignee: Chris A. Mattmann
>             Fix For: 0.1-incubating
>
>         Attachments: OODT-7.joshuaga.July1420101650.patch.txt
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887631#action_12887631 ] 

Chris A. Mattmann commented on OODT-7:
--------------------------------------

Hey Josh: do you have a patch for this issue, that you could attach? Thanks!

> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>             Fix For: 0.1-incubating
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann reassigned OODT-7:
------------------------------------

    Assignee: Chris A. Mattmann

> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>            Assignee: Chris A. Mattmann
>             Fix For: 0.1-incubating
>
>         Attachments: OODT-7.joshuaga.July1420101650.patch.txt
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OODT-7) Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files

Posted by "Garcia, Joshua (388J) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888625#action_12888625 ] 

Garcia, Joshua (388J) commented on OODT-7:
------------------------------------------

Also, thanks Brian and Chris for the help with this.

- Josh


On 7/14/10 4:54 PM, "Joshua Garcia" <Jo...@jpl.nasa.gov> wrote:

Hi Chris,

Here's the patch. I tried it both with the error present and removed.

Thanks,
Josh


On 7/13/10 6:51 AM, "Chris A. Mattmann (JIRA)" <ji...@apache.org> wrote:



    [ https://issues.apache.org/jira/browse/OODT-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887762#action_12887762 ]

Chris A. Mattmann commented on OODT-7:
--------------------------------------

Hi Josh,

It would be great if you could attach a patch file here that addresses the issue. You can name your patch OODT-7.joshuaga.<datetime>.patch.txt. Then, I'd be happy to review it and get it committed.

Cheers,
Chris



--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.




> Curator adds escaped sequenced spaces when reading extractorBinPath tag from extractor config files
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OODT-7
>                 URL: https://issues.apache.org/jira/browse/OODT-7
>             Project: OODT
>          Issue Type: Bug
>          Components: curator
>         Environment: jpl-esg machine using cas-curator 1.0.0 release
>            Reporter: Joshua Garcia
>             Fix For: 0.1-incubating
>
>         Attachments: OODT-7.joshuaga.July1420101650.patch.txt
>
>
> If a config file is set up as the following, which is shown on the cas-curator user guide:
> [joshuaga@jpl-esg mp3extractor]$ cat mp3PythonExtractor.config
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>
> /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py
>      </extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>
> tomcat's catalina.out log file can have a warning such as:
> WARNING: IOException running met extraction: commandLine: [\ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ /home/joshuaga/staging/products/mp3/Bach-SuiteNo2.mp3 ]: Message: java.io.IOException: \ /home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py\ \ \ \ \ \ \ : not found
> Which shows that the command being run when using the extractor is adding spaces with escape sequences which gives the not found error shown.
> The workaround is simply:
> <?xml version="1.0" encoding="UTF-8"?>
> <cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
>   <exec workingDir="">
>      <extractorBinPath>/home/joshuaga/extractors/mp3extractor/mp3PythonExtractor.py</extractorBinPath>
>      <args>
>         <arg isDataFile="true"/>
>      </args>
>   </exec>
> </cas:externextractor>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.