osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.66k stars 1.02k forks source link

Broken Favorites gpx inside Export.osf #20934

Closed Velomeloman closed 4 weeks ago

Velomeloman commented 1 month ago

Description

All favorites containing gpx files inside exported osf have incorrect header and xml tags. Impossoble to save Favorites to osf and import it later.

Steps to reproduce

Settings - Export to file - My places - check Favorites - Export

Actual result

Corrupted gpx inside osf

Expected result

Correct gpx that can be imported properly

Your Environment (required)

OsmAnd~ 4.9.0#3301m, released: 2024-09-27
yuriiurshuliak commented 1 month ago

Can you specify which version of Android you're using?

If you're on Android 14, it may not be reading the files correctly, which could be causing this issue. It's related to unzipping GPX files on Android 14. A fix for this should be included in future updates.

Velomeloman commented 1 month ago

EMUI 14.2 based on Android 12

alex-osm commented 1 month ago

@Velomeloman could you please attach OSF with one or few such favorites?

Nine-Tailed commented 1 month ago

this is the favorites file unpacked from osf: tmp.zip Compared the files, all the tags disappeared. It's not clear what it is, but it's not a gpx file

alex-osm commented 1 month ago

https://github.com/osmandapp/OsmAnd/commit/a9e4f8782edca284362c9179d8003e001f3dcc52

RZR-UA commented 1 month ago

To Do: