jbfaden / esdc-hapi

Prototype HAPI Java server plug-in for ESDC
0 stars 0 forks source link

timetags not in order, improperly clipped by server-java #4

Closed jbfaden closed 4 months ago

jbfaden commented 5 months ago

The verifier caught where timetags are returned which are past the time.max:

wget -O - 'https://cottagesystems.com/server/esdc/hapi/data?id=solo_L2_rpw-tnr-surv&parameters=Epoch&time.min=2023-09-20T00:00Z&time.max=2023-09-21T00:00Z' | tail -3

returns:

2023-09-21T00:00:07.071Z
2023-09-21T00:00:03.035Z
2023-09-21T00:00:07.082Z

These should be clipped by the server.

Also I need to study which CDFs will need to have their timetags sorted.

jbfaden commented 4 months ago

I believe this was caused by a bug in TimeUtil.reformat. I saw where it was returning an incorrect result, and after putting in a unit test and seeing that the library works fine now, I updated the jar in the server. It works correctly now.

jbfaden commented 4 months ago

There are many copies of the URITemplates jar, and all needed to be updated.