Open damb opened 7 years ago
Hi damb, thanks for the report. I have committed a small change that should allow floats too.
https://github.com/EIDA/wfcatalog/commit/57d800c2a639ff1c1410f99d1a7646e87f8310c3 closes this issue.
@Jollyfant, can we close this one, here? It would be good to provide a new release (actually an initial one) such that EIDA nodes can deploy the most recent version. Thanks.
CC @jbienkowski
Hi all,
sending POST requests to a WFCatalog webservice instance (e.g. www.orfeus-eu.org/eidaws/wfcatalog/1/query) results in an ERROR 400. The issue seems to be valid for all parameters specified as xs:float at the application.wadl file. Bellow an example for the
max_gap_gt
parameter:The request was set up as described at http://www.orfeus-eu.org/data/eida/webservices/wfcatalog/. The content of the postfile is:
The request is successful in case of omitting the floating point specification for the
max_gap_gt
parameter i.e.max_gap_gt=5
:However, this behaviour seems to be against the specifications i.e. https://github.com/EIDA/wfcatalog/blob/master/wf_metadata_schema.json.
I can exclude an encoding issue since for a postfile with
it seems to work properly:
GET requests are resolved successfully. The issue is reproducible also when using
curl
.cheers