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

Atlas is using incorrectly the API function for displaying cutout image

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: IRSA
    • Epic Link:
    • Sprint:
      SUIT Sprint 2016-12
    • Team:
      Science User Interface

      Description

      While testing Atlas with cutouts images, such as found in a search from COSMOS dataset for example, the image failed to display in IRSAViewer.

      To reproduce the problem, go to COSMOS and do a search:

      http://hades1.ipac.caltech.edu/data/COSMOS/

      The result page uses the API to externally show cutout (and entire image) through IRSAVIewer calling for example - one of the row -

      javascript:extViewer.showImageFileOrUrl("http://irsatest.ipac.caltech.edu/cgi-bin/Subimage/nph-subimage?origfile=/irsadata/COSMOS//images%2Facs_2.0%2FI%2Facs_I_100056%2B0233_unrot_sci_20.fits&ra=150.239830&dec=2.562830&xsize=0.200000")
      

      Seems that this function in the new Firefly API is expecting 2 parameters and and not one.
      The first one is the location of the file locally and second one is the URL. Please check. The function si defined here ApiViewer.js:118

      the function should probably be called like:

      javascript:extViewer.showImageFileOrUrl(null, ".........");
      

      Please, fix asap in ATLAS master branch.
      Once done, ask Walter/Loi Ly to rebuild and notify testing team.

        Attachments

          Activity

          ejoliet Emmanuel Joliet created issue -
          ejoliet Emmanuel Joliet made changes -
          Field Original Value New Value
          Epic Link DM-7227 [ 26309 ]
          Hide
          ejoliet Emmanuel Joliet added a comment -

          Full error log:

          ========---------- Detailed Message -----------=========
          Can't overwrite cause with edu.caltech.ipac.util.download.FailedRequestException: Could not find your requested file, the file: http://irsatest.ipac.caltech.edu/cgi-bin/Subimage/nph-subimage?origfile=/irsadata/COSMOS//images/acs_2.0/I/acs_I_100054+0230_unrot_wht_20.fits could not be converted to an absolute path
           
          ========---------- Location -----------=========
          Class:  LocalFileRetriever
          Method: getFile
          File:   LocalFileRetriever.java
          Line:   48
          Thread: http-bio-8080-exec-18
           
          ========---------- Location -----------=========
          Class:  WebPlotFactory
          Method: create
          File:   WebPlotFactory.java
          Line:   252
          Thread: http-bio-8080-exec-18
          	at edu.caltech.ipac.firefly.server.visualize.WebPlotFactory.create(WebPlotFactory.java:252)
          	at edu.caltech.ipac.firefly.server.visualize.WebPlotFactory.createNew(WebPlotFactory.java:113)
          	at edu.caltech.ipac.firefly.server.visualize.VisServerOps.createPlot(VisServerOps.java:201)
          	at edu.caltech.ipac.firefly.server.visualize.VisServerCommands$GetWebPlotCmd.doCommand(VisServerCommands.java:160)
          	at edu.caltech.ipac.firefly.server.ServerCommandAccess.doCommand(ServerCommandAccess.java:78)
          	at edu.caltech.ipac.firefly.server.ServerCommandAccess.doCommand(ServerCommandAccess.java:45)
          	at edu.caltech.ipac.firefly.server.servlets.CommandService.processRequest(CommandService.java:51)
          	at edu.caltech.ipac.firefly.server.servlets.BaseHttpServlet.doService(BaseHttpServlet.java:100)
          	at edu.caltech.ipac.firefly.server.servlets.BaseHttpServlet.doPost(BaseHttpServlet.java:81)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
          	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
          	at edu.caltech.ipac.firefly.server.filters.CommonFilter.doFilter(CommonFilter.java:57)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
          	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205)
          	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
          	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
          	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
          	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
          	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
          	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
          	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
          	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
          	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
          	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          	at java.lang.Thread.run(Thread.java:745)
          Caused by: java.lang.IllegalStateException: Can't overwrite cause with edu.caltech.ipac.util.download.FailedRequestException: Could not find your requested file, the file: http://irsatest.ipac.caltech.edu/cgi-bin/Subimage/nph-subimage?origfile=/irsadata/COSMOS//images/acs_2.0/I/acs_I_100054+0230_unrot_wht_20.fits could not be converted to an absolute path
           
          ========---------- Location -----------=========
          Class:  LocalFileRetriever
          Method: getFile
          File:   LocalFileRetriever.java
          Line:   48
          Thread: http-bio-8080-exec-18
          	at java.lang.Throwable.initCause(Throwable.java:457)
          	at edu.caltech.ipac.firefly.server.visualize.TryFileThenURLRetriever.getFile(TryFileThenURLRetriever.java:29)
          	at edu.caltech.ipac.firefly.server.visualize.ImagePlotBuilder.findFiles(ImagePlotBuilder.java:213)
          	at edu.caltech.ipac.firefly.server.visualize.ImagePlotBuilder.build(ImagePlotBuilder.java:117)
          	at edu.caltech.ipac.firefly.server.visualize.WebPlotFactory.create(WebPlotFactory.java:202)
          	... 32 more
          Caused by: edu.caltech.ipac.util.download.FailedRequestException: Could not find file
          
          

          Show
          ejoliet Emmanuel Joliet added a comment - Full error log: ========---------- Detailed Message -----------========= Can't overwrite cause with edu.caltech.ipac.util.download.FailedRequestException: Could not find your requested file, the file: http://irsatest.ipac.caltech.edu/cgi-bin/Subimage/nph-subimage?origfile=/irsadata/COSMOS//images/acs_2.0/I/acs_I_100054+0230_unrot_wht_20.fits could not be converted to an absolute path   ========---------- Location -----------========= Class: LocalFileRetriever Method: getFile File: LocalFileRetriever.java Line: 48 Thread: http-bio-8080-exec-18   ========---------- Location -----------========= Class: WebPlotFactory Method: create File: WebPlotFactory.java Line: 252 Thread: http-bio-8080-exec-18 at edu.caltech.ipac.firefly.server.visualize.WebPlotFactory.create(WebPlotFactory.java:252) at edu.caltech.ipac.firefly.server.visualize.WebPlotFactory.createNew(WebPlotFactory.java:113) at edu.caltech.ipac.firefly.server.visualize.VisServerOps.createPlot(VisServerOps.java:201) at edu.caltech.ipac.firefly.server.visualize.VisServerCommands$GetWebPlotCmd.doCommand(VisServerCommands.java:160) at edu.caltech.ipac.firefly.server.ServerCommandAccess.doCommand(ServerCommandAccess.java:78) at edu.caltech.ipac.firefly.server.ServerCommandAccess.doCommand(ServerCommandAccess.java:45) at edu.caltech.ipac.firefly.server.servlets.CommandService.processRequest(CommandService.java:51) at edu.caltech.ipac.firefly.server.servlets.BaseHttpServlet.doService(BaseHttpServlet.java:100) at edu.caltech.ipac.firefly.server.servlets.BaseHttpServlet.doPost(BaseHttpServlet.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at edu.caltech.ipac.firefly.server.filters.CommonFilter.doFilter(CommonFilter.java:57) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: Can't overwrite cause with edu.caltech.ipac.util.download.FailedRequestException: Could not find your requested file, the file: http://irsatest.ipac.caltech.edu/cgi-bin/Subimage/nph-subimage?origfile=/irsadata/COSMOS//images/acs_2.0/I/acs_I_100054+0230_unrot_wht_20.fits could not be converted to an absolute path   ========---------- Location -----------========= Class: LocalFileRetriever Method: getFile File: LocalFileRetriever.java Line: 48 Thread: http-bio-8080-exec-18 at java.lang.Throwable.initCause(Throwable.java:457) at edu.caltech.ipac.firefly.server.visualize.TryFileThenURLRetriever.getFile(TryFileThenURLRetriever.java:29) at edu.caltech.ipac.firefly.server.visualize.ImagePlotBuilder.findFiles(ImagePlotBuilder.java:213) at edu.caltech.ipac.firefly.server.visualize.ImagePlotBuilder.build(ImagePlotBuilder.java:117) at edu.caltech.ipac.firefly.server.visualize.WebPlotFactory.create(WebPlotFactory.java:202) ... 32 more Caused by: edu.caltech.ipac.util.download.FailedRequestException: Could not find file
          wmi Wei Mi made changes -
          Status To Do [ 10001 ] In Progress [ 3 ]
          ejoliet Emmanuel Joliet made changes -
          Link This issue blocks DM-8627 [ DM-8627 ]
          ejoliet Emmanuel Joliet made changes -
          Link This issue blocks DM-8627 [ DM-8627 ]
          xiuqin Xiuqin Wu [X] (Inactive) made changes -
          Labels Firefly Firefly FireflyCCB
          Hide
          ejoliet Emmanuel Joliet added a comment -

          Has been fixed and released in IRSAViewer January 2017.
          DM-8957

          Show
          ejoliet Emmanuel Joliet added a comment - Has been fixed and released in IRSAViewer January 2017. DM-8957
          ejoliet Emmanuel Joliet made changes -
          Resolution Done [ 10000 ]
          Status In Progress [ 3 ] Done [ 10002 ]

            People

            • Assignee:
              wmi Wei Mi
              Reporter:
              ejoliet Emmanuel Joliet
              Watchers:
              Emmanuel Joliet, Loi Ly, Trey Roby, Wei Mi, Xiuqin Wu [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel