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] header v=b3 causes parsing error #122

Closed vforchi closed 4 years ago

vforchi commented 4 years ago

If I try to access the endpoint async with Chrome I get a 500 error and this in the logs:

Caused by a java.lang.NumberFormatException: For input string: "b3"
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
    at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
    at java.lang.Float.parseFloat(Float.java:451)
    at uws.AcceptHeader.<init>(AcceptHeader.java:62)
    at uws.service.UWSService.getSerializer(UWSService.java:724)
    at uws.service.actions.ListJobs.apply(ListJobs.java:101)
    at uws.service.UWSService.executeRequest(UWSService.java:1132)
    at tap.resource.ASync.executeResource(ASync.java:191)
    at tap.resource.TAP.executeRequest(TAP.java:974)

I believe this is the same as this: https://github.com/emicklei/go-restful/issues/400

gmantele commented 4 years ago

This error has already been fixed in April 2019 in the commit 8af5a31 . Sorry that there is still no recent release of UWS. I was waiting for TAP-1.1 to be completely implemented, but I assume I can release a new UWS-Lib version anyway. I'll probably do that in the coming weeks.