Creating of Logistics Object with prefefined ID fails

If the NE:ONE ONE Record server is running behind a load balance, checkIRI in LogisticsObjectService may fail.

The checkIRI function in LogisticsObjectService compares the predefined IRI of a LogisticsObject, e.g. https://1r.example.com/logistics-objects/awb-1234, with the requestURI which might be http://localhost:8080/logistics-objects

It would be helpful to compare the predefined IRI with the baseUri from IdProvider which is configurable by

lo-id-config.host=1r.example.com
lo-id-config.scheme=https

in the application.properties

Ref: https://git.openlogisticsfoundation.org/digital-air-cargo/ne-one/-/blob/c2ca8e69b42b0de204a1609ad69da17154874d5b/src/main/java/org/openlogisticsfoundation/neone/service/LogisticsObjectService.java#L143

Edited Jun 05, 2023 by Daniel A. Doeppner
Assignee Loading
Time tracking Loading

GitLab hosted by dogado | Open Logistics Foundation Privacy Policy