gtfs-validator icon indicating copy to clipboard operation
gtfs-validator copied to clipboard

Run validator correctly when folder is compressed

Open evansiroky opened this issue 2 years ago • 3 comments

Describe the bug

With some specific zip files, like this one, both the desktop and web validator say the required files are missing. If I unzip on my local machine the files appear to be in the folder that got unzipped.

Steps/Code to Reproduce

With either the web validator or desktop validator, attempt to upload certain files (like this one).

Expected Results

Validator checks various things and is able to detect required files.

Actual Results

Validator flags that required files are missing.

Screenshots

No response

Files used

No response

Validator version

4.0.0

Operating system

MacOS and web

Java version

No response

Additional notes

No response

evansiroky avatar May 23 '23 20:05 evansiroky

@evansiroky this seems to be because the folder wasn't zipped properly. To properly zip a folder, you need to select the folder content, and compress (as opposed to compressing the folder directly).

I tried to re-compress this folder and it works. Please let me know if this solves the problem.

isabelle-dr avatar May 30 '23 12:05 isabelle-dr

Closing, I am assuming this was the problem. @evansiroky please let us know if you try zipping the GTFS folder again and the problem persists

isabelle-dr avatar Jun 19 '23 12:06 isabelle-dr

Reopening this as a validator enhancement to run the validator properly when the folder is compressed instead of the folder contents.

emmambd avatar Dec 01 '23 19:12 emmambd