Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-185

The File Manager's query_tool script does not handle quoted parameter values.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.3
    • Component/s: file manager
    • Labels:
      None
    • Environment:

      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.

        Attachments

          Activity

            People

            • Assignee:
              shardman Sean Hardman
              Reporter:
              shardman Sean Hardman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified