Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"OSF" export changes default profile settings #21475

Open
Zirochkabila opened this issue Nov 28, 2024 · 2 comments
Open

"OSF" export changes default profile settings #21475

Zirochkabila opened this issue Nov 28, 2024 · 2 comments

Comments

@Zirochkabila
Copy link
Contributor

Description

Related to 21474

Standard backup file changes the profile settings to custom ones, which leads to a failure in the selection of Units & Formats categories

Steps to reproduce

Delete all data - simulate the first startup with default profiles (restoring the default settings does not help)

  1. Menu > Settings > Driving > Export to file > Continue > Export osf.
  2. Select osf file > OsmAnd > Settings select > Continue > Replace all > do this steps 21474

Actual result

After export (importing) the osf file, the default settings are replaced with custom ones (although no replacement has been made)

What makes it impossible to change data in Units & Formats categories

Expected result

When exporting (importing) data, the data retains its standard form and cannot be changed

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!

OsmAnd Version: OsmAnd~ 5.0.0#3834m, Released: 2024-11-28
Android/iOS version: Android 14
Device model:
Crash-Logs: ?
@vshcherb vshcherb changed the title "Osf" export changes default profile settings "OSF" export changes default profile settings Nov 29, 2024
@yuriiurshuliak
Copy link

After testing, I was unable to reproduce the described bug. Here are the steps I followed:

  1. Performed a Clean Installation of OsmAnd.
  2. Checked the Units & Formats categories for the driving profile and confirmed that after a clean installation, everything worked correctly. The Units of speed and Units of volume changed as expected when modifying the Driving Region.
  3. Exported the default settings to an OSF file.
  4. Re-imported the same OSF file using the Replace all option.

After re-importing, I repeated the steps from #21474:

  • Changed the Driving Region from Automatic to Europe, then from Europe to USA.

Results:

  • The Units of speed and Units of volume categories in the profile settings remained unchanged, still reflecting European units (km/h and liters) instead of switching to USA units (mph and gallons).
  • However, after exporting and importing the OSF file, the default settings were not replaced with custom ones. The data remained in its standard form, and there was no failure to change the Units & Formats categories.

This suggests the issue is specifically linked to modifying Driving Region behavior rather than the OSF import/export process. Please let me know if there are additional details or steps I might have missed that could help reproduce the issue more accurately.

@vshcherb
Copy link
Member

vshcherb commented Dec 2, 2024

We need to test that settings that are not changed by user are not export to the settings.
It's important that import won't overwrite default settings (which might be different) or settings set by the user on another device

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

No branches or pull requests

3 participants