Opened 8 years ago

Closed 7 years ago

#1583 closed defect (fixed)

earthlook client rasql console does not send request correctly

Reported by: Peter Baumann Owned by: Bang Pham Huu
Priority: major Milestone: 9.5
Component: raswct Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

on http://standards.rasdaman.com → rasql console I run this query:

SELECT encode(
((((float)(c.0 - c.1)) / ((float)c.0 + (float)c.1)), "csv") from NIR as c

…and I get zero output.

Change History (4)

comment:1 by Peter Baumann, 8 years ago

Seems like on syntax errors no error msg is displayed. But just a suspicion.

comment:2 by Dimitar Misev, 8 years ago

Owner: changed from Dimitar Misev to Bang Pham Huu
Status: newassigned

comment:3 by Bang Pham Huu, 8 years ago

Cc: Dimitar Misev Vlad Merticariu added

It has error with Javascript for parsing the result from Petascope.

demo.js:131 Uncaught TypeError: Cannot read property 'split' of undefined(…)

comment:4 by Bang Pham Huu, 7 years ago

Component: undecidedraswct
Resolution: fixed
Status: assignedclosed
Summary: earthlook client does not display CSVearthlook client rasql console does not send request correctly

The real problem is in the Rasql console, it should send the username, password of rasuser and query as GET request to Rasql Servlet or any requests to Rasql Servlet not only csv will return error.

I fixed in the earthlook, but the file does not exist in raswct so no patch to update.

Here is what I fixed:
in http://earthlook.eecs.jacobs-university.de/demo/demo-frames/rasql/demo.js
(/mnt/rasservice/Earthlook/web/www/www/demo/demo-frames/rasql/demo.js)

line 46 add this:
params["request"] = "?username=" + params.username + "&password=" + params.password + "&query=" + params.query;

and in http://earthlook.eecs.jacobs-university.de/demo/demo-frames/raswct/raswct.js (/mnt/rasservice/Earthlook/web/www/www/demo/demo-frames/raswct/raswct.js)

line 30712 add:

// Rasql Servlet is sent with GET request and parameters need to be added in query string
      if (transport.getServiceHttpMethod() == "get") {
          serviceUrl += transport.getParams().request;
      }

Note: See TracTickets for help on using tickets.