Closed barbeau closed 6 years ago
I'll handle this.
This needs to be done for both GTFS and GTFS-realtime.
Based on the GTFS-realtime validator, it looks like MBTA is using a redirect from http to https:
[qtp429804587-21] INFO edu.usf.cutr.gtfsrtvalidator.api.resource.GtfsFeed - Downloading GTFS data from http://www.mbta.com/uploadedfiles/MBTA_GTFS.zip...
[qtp429804587-21] WARN edu.usf.cutr.gtfsrtvalidator.api.resource.GtfsFeed - Redirecting to https://www.mbta.com/uploadedfiles/MBTA_GTFS.zip
[qtp429804587-21] INFO edu.usf.cutr.gtfsrtvalidator.api.resource.GtfsFeed - GTFS data downloaded successfully
URLs:
Summary:
It looks like there are some URLs from TransitFeeds.com that include redirects to HTTPS feeds, which we currently don't seem to handle correctly.
I believe this is the same issue that we saw in the gtfs-realtime-validator in https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/89, so we can use the same solution there - here's the commit - https://github.com/CUTR-at-USF/gtfs-realtime-validator/commit/180785d22ca58afa2463b322ad4e1b122c5f0a30.
Some examples that throw errors in the tool, but work fine when copy/pasting URLs into browser:
Steps to reproduce:
Run the tool
Expected behavior:
Above feeds should download correctly
Observed behavior:
We get the above errors
Platform:
Windows 7 Enterprise with jdk1.8.0_73