Opened 3 months ago

Closed 3 months ago

#1583 closed defect (fixed)

earthlook client rasql console does not send request correctly

Reported by: pbaumann Owned by: bphamhuu
Priority: major Milestone: 9.5
Component: raswct Version: development
Keywords: Cc: dmisev, vmerticariu
Complexity: Medium


on -> 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 Changed 3 months ago by pbaumann

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

comment:2 Changed 3 months ago by dmisev

  • Owner changed from dmisev to bphamhuu
  • Status changed from new to assigned

comment:3 Changed 3 months ago by bphamhuu

  • Cc dmisev vmerticariu 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 Changed 3 months ago by bphamhuu

  • Component changed from undecided to raswct
  • Resolution set to fixed
  • Status changed from assigned to closed
  • Summary changed from earthlook client does not display CSV to earthlook 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:

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

and in (/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.