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

Import from folder doesn't overwrite all files #5507

Open
Malvineous opened this issue Aug 2, 2024 · 0 comments
Open

Import from folder doesn't overwrite all files #5507

Malvineous opened this issue Aug 2, 2024 · 0 comments

Comments

@Malvineous
Copy link

Describe the issue

When importing a project from a folder, some of the files are not imported, and the older versions are used when the project is opened.

Reproduction steps

Steps to reproduce the behavior:

  1. Import a project from a folder on the local device
  2. Update the source files, e.g. via rsync from a PC
  3. Import the project again, agree to overwrite the existing project.
  4. Observe that some of the old files are still there and were not overwritten by updated copies from the selected folder.

I am not sure exactly what the criteria are for avoiding the update, but the files skipped are .gpkg containing multiple layers (point, vector, etc.) All layers in the file appear to be skipped, so it appears the file itself is not being copied during the import process. Other .gpkg layers copy and update fine.

The only way I have been able to get the layers to update is to SSH into the phone and delete the .gpkg files from the QField data directory. When I next import the project it does copy the .gpkg files and then the updated data is available, however it then fails with exactly the same files on the next attempted import of updated data.

There don't appear to be any issues with file permissions or dates. All the .gpkg files get updated except for two and I cannot identify why those two are different.

Unfortunately I can't share the project for privacy reasons, however if there is any troubleshooting I can do or logging I can activate please let me know and I am happy to run any sort of testing required.

Expected behavior

I expected all files would be imported and overwritten with the latest incoming data.

Observed behavior

Most of the files were overwritten, but a couple were not. The files that were not overwritten (in the QField app data directory) still had their old timestamps, making it easy to tell which files were and weren't updated.

Desktop (please complete the following information)

  • OS: Linux
  • QGIS Version 3.28.0, but the problem has existed for at least six months.
  • QFieldSync Not used

Mobile (please complete the following information)

  • Device: Pixel 3a XL
  • OS: Android 12
  • QField version: 3.3.2 (a2b464)

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: No, has been happening for six or more months
  • Problem can be reliably reproduced, doesn't happen randomly: Yes, seems to be every time I try to import the project
  • Problem happens with all files and projects, not only some files or projects: Unknown, only have one project
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