[openstreetmap/openstreetmap-website] GPX import: wrong argument type Integer (expected String) (#3008)

Tom Hughes notifications at github.com
Wed Dec 16 11:57:07 UTC 2020


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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3008#issuecomment-746176328
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201216/ef9c6995/attachment.htm>


More information about the rails-dev mailing list