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

GPX export assigns duplicate names to the file with dates #485

Closed
Andyporras opened this issue Dec 11, 2024 · 2 comments
Closed

GPX export assigns duplicate names to the file with dates #485

Andyporras opened this issue Dec 11, 2024 · 2 comments

Comments

@Andyporras
Copy link

Description:
When exporting as a GPX file, if a date-based name is assigned, the exported file duplicates the date in its name. If a custom name is assigned, the system appends the creation date to the end of the custom name. This affects only the GPX file, as the folder is generated correctly.

Steps to reproduce the problem:

  1. Start OSMTracker on a device.
  2. Record a route and end the recording.

Export as a GPX file.

Case 1: Export without assigning a name (let it be generated with date).
Case 2: Export by assigning a custom name.
Check the name of the exported file.

Expected behavior:

In case 1, the file should be generated with the exact date as name (unique format, no duplicates).
In case 2, the file should keep the custom name without adding the creation date.

Case 1: The GPX file contains the duplicate date in its name.
Case 2: The GPX file appends the creation date to the custom name.

Additional notes:
The observed behavior occurs only with GPX file names, while the associated folders are generated correctly. This could be a problem in the naming logic in the export function.

@Andyporras Andyporras closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
@Andyporras
Copy link
Author

note: this only occurs when the “FILENAME_NAME_DATE” preference is selected.

@Andyporras
Copy link
Author

this has already been resolved in the pr:

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

1 participant