Opened 11 years ago
Closed 11 years ago
#561 closed defect (fixed)
WCS XML POST body not to be prepended by "request="
Reported by: | Piero Campalani | Owned by: | Piero Campalani |
---|---|---|---|
Priority: | major | Milestone: | 9.0 |
Component: | petascope | Version: | development |
Keywords: | xml post request | Cc: | Dimitar Misev |
Complexity: | Trivial |
Description
Body of XML WCS requests need to be pure XML, and not 'request=<XML>'
.
The system throws a BadPostParameter
exception in case of pure XML bodies, but this inhibits WCS compliance.
Change History (4)
comment:1 by , 11 years ago
Status: | new → accepted |
---|
comment:2 by , 11 years ago
comment:3 by , 11 years ago
Yes, it still works with the 'request='
prefix:
$ wget --post-data "request=$( cat queries/02-describe_coverage.xml )" http://localhost:8090/petascope -O resp1.xml $ wget --post-data "$( cat queries/02-describe_coverage.xml )" http://localhost:8090/petascope -O resp2.xml $ diff -s resp1.xml resp2.xml Files resp1.xml and resp2.xml are identical $
I would deprecate this, but if this is strictly necessary for Earthlook then no big pain to keep it. With this ticket I meant to fix Petascope not to throw exception on the standard POST requests.
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Fixed in changeset:994f190.
Note:
See TracTickets
for help on using tickets.
Piero, are you sure it will still work fine for requests from HTML forms (e.g. Earthlook)? I mean is this backwards compatible?