gmantele / vollt

Java libraries implementing the IVOA protocol: ADQL, UWS and TAP
http://cdsportal.u-strasbg.fr/taptuto/
29 stars 28 forks source link

UWS: incorrect representation of the quote endpoint #127

Open vforchi opened 3 years ago

vforchi commented 3 years ago

Currently the endpoint quote returns the value of the field quote in the class UWSJob, with -1 meaning no quote, but according to UWS it should return either the empty string or an ISO8601 date:

https://www.ivoa.net/documents/UWS/20161024/REC-UWS-1.1-20161024.html#Quote /{jobs}/{job-id}/quote the Quote for {job-id} [std:iso8601] If no quote available then return empty string.
gmantele commented 3 years ago

Indeed, you're right. It seems UWSLib stays at version 1.0 on this point, where the quote property was an integer (-1 when not set). In 1.1, it apparently changes and I missed that (it was not explicit either in the Appendix "A. Updates from previous versions"). I'll fix it.