Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.2
-
None
-
Problem initially seen on a machine running CentOS.
Description
The query_tool does not appear to handle quoted parameter values like the following:
[shardman@acce-vms1 bin]$ ./query_tool --url $FILEMGR_URL --sql -query "SELECT Filename FROM *"
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at org.apache.oodt.cas.filemgr.util.SqlParser.parseSqlQuery(SqlParser.java:103)
at org.apache.oodt.cas.filemgr.tools.QueryTool.performSqlQuery(QueryTool.java:248)
at org.apache.oodt.cas.filemgr.tools.QueryTool.main(QueryTool.java:241)
Modifying the script to replace $* with "$@" corrects the problem.