Opened 3 years ago

Closed 3 years ago

#561 closed defect (fixed)

WCS XML POST body not to be prepended by "request="

Reported by: pcampalani Owned by: pcampalani
Priority: major Milestone: 9.0
Component: petascope Version: development
Keywords: xml post request Cc: dmisev
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 Changed 3 years ago by pcampalani

  • Status changed from new to accepted

comment:2 Changed 3 years ago by dmisev

Piero, are you sure it will still work fine for requests from HTML forms (e.g. Earthlook)? I mean is this backwards compatible?

comment:3 Changed 3 years ago by pcampalani

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 Changed 3 years ago by pcampalani

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in changeset:994f190.

Note: See TracTickets for help on using tickets.