Opened 12 years ago

Closed 12 years ago

#477 closed defect (fixed)

gzipped gpx files failure

Reported by: jerome.multrier@… Owned by: steve@…
Priority: minor Milestone:
Component: rails_port Version:
Keywords: gzip gz gpx upload Cc:

Description

gpx.gz are not recognized. I received lots of failure e-mails like :

Hi,

It looks like your GPX file

  2007_04_11T18_10_06Z.gpx.gz

failed to import. Here's the error:

  malformed XML: missing tag start
Line: 50
Position: 17682
Last 80 unconsumed characters:
<4/) )�MQTE�,	�P��w�h���k�8N|�{֙~,rH����/��헯�?}��
�勷�|����~x��/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)

gpzgz.patch (2.4 KB) - added by Tom Hughes 12 years ago.
Updated patch to handle zipped logs as well as gzipped logs

Download all attachments as: .zip

Change History (4)

comment:1 Changed 12 years ago by stefan.baebler+osm@…

Same here, with a plain zip file (made with winzip). Unzipped GPX got parsed nicely. There are still many old zipped GPX files waiting to be imported.

comment:2 Changed 12 years ago by Tom Hughes

That patch also make the daemon use FileUtils? to remove files instead of shelling out to rm...

Changed 12 years ago by Tom Hughes

Attachment: gpzgz.patch added

Updated patch to handle zipped logs as well as gzipped logs

comment:3 Changed 12 years ago by steve@…

Resolution: fixed
Status: newclosed

applied patch and deployed, closing

Note: See TracTickets for help on using tickets.