Opened 7 years ago

Closed 3 months ago

#5115 closed enhancement (wontfix)

Multi-file zipped upload: lack of error information

Reported by: tupka Owned by: rails-dev@…
Priority: minor Milestone:
Component: website Version:
Keywords: Cc:


I want to upload many gpx files in one zip archive.

After uploading I get following message on my email:

It looks like your GPX file
with the description
2010, Krasnoyarsk kr
and the following tags:
failed to import. Here's the error:

Generic XML parse error
XML parser at line 1 column 2

I checked all gpx files inside archive with xmllint, and sure that they are parsable. Also I've opened each of them in josm, and they opened and displayed ok.

Please include in error notification message the indication which file inside archive is errorneous.

Change History (14)

comment:1 Changed 7 years ago by Tom Hughes

I'm not sure how the C importer handles this but certainly with the old rails importer this wasn't possible because it simply didn't know as it used unzip to concatenate all the files into one lump and then processed that.

comment:2 Changed 7 years ago by Tom Hughes

It looks like the C importer does process them file by file, but this would still need some work because the error report comes from a layer above the one that does the looping and the details of which file it was working on have been lost by the time we get there.

comment:3 Changed 7 years ago by Tom Hughes

If it helps I think 20100619_191607.gpx was probably the file that failed.

comment:4 Changed 7 years ago by tupka

Yes, failed file was 20100619_191607.gpx . After removing it archive have been imported ok. But what's wrong with this file? How can I find out such problem files before uploading ?

comment:5 Changed 7 years ago by Tom Hughes

I don't know what's wrong with it because I haven't seen it!

comment:6 Changed 7 years ago by tupka

But how did you make a guess about the file that is causing a failure ?

I uploaded 20100619_191607.gpx separately and it have been imported successfully.

comment:7 Changed 7 years ago by Tom Hughes

I guessed because I found your job in the server logs and they log each member of the archive as it is processed and that was the last one before it failed.

The actual file is deleted once it fails, so I have not seen the actual file which is what would allow me to debug this.

comment:8 Changed 7 years ago by tupka

If it will help debugging, I can attach the original failing with 20100619_191607.gpx file to this ticket or provide it some other way.

Last edited 7 years ago by tupka (previous) (diff)

comment:9 Changed 7 years ago by Tom Hughes

Please do attach it.

comment:10 Changed 7 years ago by tupka

Sorry, cannot do this because file size exceedes attachment limit

comment:11 Changed 7 years ago by Tom Hughes

Can you send it to Tom Hughes then?

comment:12 Changed 7 years ago by tupka

Please tell me your full email address, I could not find out the last part of it

Last edited 7 years ago by tupka (previous) (diff)

comment:13 Changed 7 years ago by Tom Hughes

Hmm... I can't see any sign of it in my mail, or in the logs on my mail server I'm afraid.

comment:14 Changed 3 months ago by mmd

Resolution: wontfix
Status: newclosed

This message was created for the old C based importer, which is no longer around. Closing here. If this still occurs with the Rails based imporer, please craete a new issueon Github.

Note: See TracTickets for help on using tickets.