Opened 7 years ago

Closed 7 years ago

#1427 closed defect (fixed)

Petascope_Handle POST request for WCS, WCPS in PetascopeInterface without encoded.

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

Description

Current WCPS queries in system test need to be using POST to send requests (as some query is big and cannot send by GET) into WcpsServlet (/ows/wcps). The query also need to be encoded (using xxd) and so on.

The problem is current PetascopeInterface only support GET request (KVP, REST) correctly and it will have errors as cannot parse parameters from POST requests.

so PetacopeInterface should parse request in POST with parameters as same as parse GET request (current it parse params map empty).

Attachments (1)

08-059r4_WCS_Extension_-_Processing_2013-12-26.zip (186.9 KB ) - added by Peter Baumann 7 years ago.
WCS Processing Extension 1.0

Download all attachments as: .zip

Change History (7)

comment:1 by Dimitar Misev, 7 years ago

POST is reserved for XML requests as far as I know. The protocol bindings are GET/KVP and POST/XML.

in reply to:  1 comment:2 by Bang Pham Huu, 7 years ago

Replying to dmisev:

POST is reserved for XML requests as far as I know. The protocol bindings are GET/KVP and POST/XML.

it would be good if it can parse a POST request with big WCPS query in KVP as well.

comment:3 by Dimitar Misev, 7 years ago

Cc: Peter Baumann added

Handling KVP in a POST request is not foreseen by the WCS standard AFAIK.

comment:4 by Peter Baumann, 7 years ago

it is foreseen indeed, in the WCS Processing Extension, I attach it here. So this ticket might be considered a feature request.

by Peter Baumann, 7 years ago

WCS Processing Extension 1.0

comment:5 by Bang Pham Huu, 7 years ago

Milestone: 10.09.3
Owner: set to Bang Pham Huu
Status: newassigned

comment:6 by Bang Pham Huu, 7 years ago

Resolution: fixed
Status: assignedclosed

the patch was applied, and the POST request in KVP can be sent by curl like this and Petascope can parse the KVP request in POST.

  url="http://localhost:8080/rasdaman/ows?service=WCS&version=2.0.1&request=ProcessCoverages"
  kvpValues='query=.......'
  curl -s -X POST "$url" --data-urlencode "$kvpValues"
Note: See TracTickets for help on using tickets.