Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-11773

VO search gives error when filtering a column which name contains spaces

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Firefly
    • Labels:

      Description

      I've been using the upload feature but i've noticed also it happens in VO search catalog and in the NED search branch i'm finishing.

      When a VO result catalog search contains column name with spaces, filter is broken.

      Example, bring VO search catalog panel and search for NED by using this url:
      http://ned.ipac.caltech.edu/cgi-bin/NEDobjsearch?search_type=Near+Position+Search&of=xml_main&&

      and search for m51 around 100".
      or upload dirctly via URL this url:
      http://ned.ipac.caltech.edu/cgi-bin/NEDobjsearch?search_type=Near+Position+Search&of=xml_main&&RA=202.48417&DEC=47.23056&SR=0.027777777777777776

      Then try to filter on "Object Name" or Magnitude and Filter".

      The exception thrown in the log is:

      edu.caltech.ipac.firefly.server.query.DataAccessException: unrecognized operation type:Name
      	at edu.caltech.ipac.firefly.server.query.IpacTablePartProcessor.getData(IpacTablePartProcessor.java:228)
      	at edu.caltech.ipac.firefly.server.query.IpacTablePartProcessor.getData(IpacTablePartProcessor.java:44)
      	at edu.caltech.ipac.firefly.server.query.SearchManager.getDataGroup(SearchManager.java:94)
      	at edu.caltech.ipac.firefly.server.query.SearchServerCommands$TableSearch.doCommand(SearchServerCommands.java:50)
      	at edu.caltech.ipac.firefly.server.ServCommand.processRequest(ServCommand.java:26)
      	at edu.caltech.ipac.firefly.server.servlets.CommandService.processRequest(CommandService.java:69)
      	at edu.caltech.ipac.firefly.server.servlets.BaseHttpServlet.doService(BaseHttpServlet.java:98)
      	at edu.caltech.ipac.firefly.server.servlets.BaseHttpServlet.doPost(BaseHttpServlet.java:79)
      ...
      Caused by: java.lang.IllegalArgumentException: unrecognized operation type:Name
      	at edu.caltech.ipac.util.DataGroupQuery.getOpType(DataGroupQuery.java:633)
      	at edu.caltech.ipac.astro.DataGroupQueryStatement.parseFilter(DataGroupQueryStatement.java:352)
      	at edu.caltech.ipac.firefly.server.util.QueryUtil.convertToDataFilter(QueryUtil.java:281)
      	at edu.caltech.ipac.firefly.server.query.IpacTablePartProcessor.getDataFile(IpacTablePartProcessor.java:364)
      	at edu.caltech.ipac.firefly.server.query.SearchManager.getFileInfo(SearchManager.java:184)
      	at edu.caltech.ipac.firefly.server.query.SearchRequestUtils.fileInfoFromSearchRequest(SearchRequestUtils.java:67)
      	at edu.caltech.ipac.firefly.server.query.SearchRequestUtils.dataGroupFromSearchRequest(SearchRequestUtils.java:33)
      	at edu.caltech.ipac.firefly.server.query.XYWithErrorsProcessor.loadDataFile(XYWithErrorsProcessor.java:39)
      	at edu.caltech.ipac.firefly.server.query.IpacTablePartProcessor.getBaseDataFile(IpacTablePartProcessor.java:524)
      	at edu.caltech.ipac.firefly.server.query.IpacTablePartProcessor.getDataFile(IpacTablePartProcessor.java:355)
      	at edu.caltech.ipac.firefly.server.query.IpacTablePartProcessor.getData(IpacTablePartProcessor.java:191)
      	... 35 more
      

      This issue is blocking: IRSA-670

        Attachments

          Activity

          Hide
          ejoliet Emmanuel Joliet added a comment -

          This has been fixed and is working ok in dev. It can be closed.

          Show
          ejoliet Emmanuel Joliet added a comment - This has been fixed and is working ok in dev. It can be closed.
          Hide
          xiuqin Xiuqin Wu [X] (Inactive) added a comment -

          See comment above

          Show
          xiuqin Xiuqin Wu [X] (Inactive) added a comment - See comment above

            People

            • Assignee:
              Unassigned
              Reporter:
              ejoliet Emmanuel Joliet
              Watchers:
              Emmanuel Joliet, Xiuqin Wu [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel