Opened 12 years ago

Closed 12 years ago

#481 closed defect (duplicate)

Uploading gpx track logs as .zip files gives error

Reported by: mike@… Owned by: steve@…
Priority: major Milestone:
Component: admin Version:
Keywords: zip upload Cc:

Description

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@… To: mike@… Message-Id: <46536d61b73a7_2da9..fdbeb4b86652cb@…> 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ÿø¯~ñÓÏÿø7¿ûÍoÿñoÿõ/þç¿þ¿ÿ«þ‹ŸþðÇ_ÿã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

Attachments (1)

2007-05-06_otley2brimhamrocks.zip (217.3 KB) - added by mike@… 12 years ago.
Example .zip file causing upload error

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by mike@…

Example .zip file causing upload error

comment:1 Changed 12 years ago by Deelkar

Try Gzip instead of Zip.

comment:2 Changed 12 years ago by Tom Hughes

Resolution: duplicate
Status: newclosed

Duplicated of #477

Note: See TracTickets for help on using tickets.