Skip to content

VDV 453 Import: missing data-source DIDOK apply RT to wrong rank

Adrian requested to merge BugFix_VDv453_FirstStop_RT_WRONG into 3.11/sprint

The RT from VDV453 is applied to the stop of a trip with the rank returned by _getRank in VDVServer.cpp. This function, return 0 if the stop is not found, so a missing DIDOK return rank 0. Rank 0 is also interpreted as the first rank of the trip, thus, a missing DIDOK applies the RT to the first stop. Solved by improving the function to return a boost::optional, and skip the wrong messages with a warning. TODO: implement issues for the full VDV453

Merge request reports