Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Uploading gpx track logs as .zip files gives error #481

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Uploading gpx track logs as .zip files gives error #481

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: mike[at]ayeltd.biz
[Submitted to the original trac issue database at 7.35am, Wednesday, 23rd May 2007]

I have uploaded a set of .gpx track logs generated by the same software. The one uploaded as an uncompressed .gpx file worked. All the others compressed as .zip files to beat the 2MB limit failed, example below. I am attaching the same .zip file for your diagnostic purposes but suspect that the new upload script is simply failing to recognise that the file should be uncompressed before processing? The .zip file was made with WinZip.

Regards,
Michael Collinson

Date: Tue, 22 May 2007 23:23:29 +0100
From: abuse[at]openstreetmap.org
To: mike[at]ayeltd.biz
Message-Id: <46536d61b73a7_2da9..fdbeb4b86652cb[at]www.tmail>
Subject: [OpenStreetMap] GPX Import failure
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-UIDL: 5`J"!HD>"!G6a"!"3I"!

Hi,

It looks like your GPX file

2007_05_06_otley2brimhamrocks.zip

failed to import. Here's the error:

malformed XML: missing tag start
Line: 905
Position: 222553
Last 80 unconsumed characters:
<9{]VU���?w����7oo/_o/usr/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:346:in pull' /usr/local/lib/ruby/1.8/rexml/parsers/sax2parser.rb:92:in parse'
/var/www/rails/lib/daemons/../../config/../lib/osm.rb:124:in points' /var/www/rails/lib/daemons/gpx_import.rb:42 /var/www/rails/lib/daemons/gpx_import.rb:22:in each'
/var/www/rails/lib/daemons/gpx_import.rb:22
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in load'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in load'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/application.rb:158:in start_load' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/application.rb:235:in start'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/controller.rb:69:in run' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons.rb:136:in run'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/cmdline.rb:105:in call' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons/cmdline.rb:105:in catch_exceptions'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.6/lib/daemons.rb:135:in `run'
lib/daemons/gpx_import_ctl:15

@openstreetmap-trac
Copy link
Author

Author: osm[at]deelkar.net
[Added to the original trac issue at 12.04pm, Wednesday, 23rd May 2007]

Try Gzip instead of Zip.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 11.12am, Thursday, 24th May 2007]

Duplicated of #477

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant