Opened 8 years ago
Closed 8 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)
Change History (7)
follow-up: 2 comment:1 by , 8 years ago
comment:2 by , 8 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 , 8 years ago
Cc: | added |
---|
Handling KVP in a POST request is not foreseen by the WCS standard AFAIK.
comment:4 by , 8 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 , 8 years ago
Attachment: | 08-059r4_WCS_Extension_-_Processing_2013-12-26.zip added |
---|
WCS Processing Extension 1.0
comment:5 by , 8 years ago
Milestone: | 10.0 → 9.3 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:6 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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"
POST is reserved for XML requests as far as I know. The protocol bindings are GET/KVP and POST/XML.