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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.2
    • 0.3
    • file manager
    • 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.

      Attachments

        Activity

          People

            shardman Sean Hardman
            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