New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPX import: wrong argument type Integer (expected String) #3008
Comments
This actually happens for a tar.gz as well. |
File type was not the reason - this was caused by directories inside the archive. In this case, I had GPX files in directories per day. |
What are the names of the files in the archive? |
Thanks, what will happen with directories in archives - will the GPX files be imported recurivsely? |
...ah, the commit comment says "Ignore GPX archive entries that aren't regular files". |
Yes in an archive you tend to get an entry for the directory, which has no data, and then an entry for each file in the directory. A slightly bizarre feature of the libarchive bindings we're using is that if there is no data for an entry they return the length instead (which is always zero obviously) which led to the error about an integer when a string is expected. |
Oh, so it actually would go and import all GPX files recursively now? |
Yes, it just ignores the actual directory but still processes all the files. Hopefully at any rate. |
That's wonderful, thank you. |
Attempted to upload a tar.bz2 file, got this trace:
The text was updated successfully, but these errors were encountered: