Skip to content

Fix error handling presence of gpkg wal/shm files on the cloud#745

Merged
suricactus merged 1 commit intomasterfrom
wal_fix
Feb 12, 2026
Merged

Fix error handling presence of gpkg wal/shm files on the cloud#745
suricactus merged 1 commit intomasterfrom
wal_fix

Conversation

@nirvn
Copy link
Copy Markdown
Member

@nirvn nirvn commented Jan 30, 2026

@beanzmo stumbled on a silent killer in our QFieldSync code! 😉

The code handling the presence of wal and shm files within a cloud project remote files list was broken. The code referred to an nonexistent self.local_path variable, which crashed the copying process.

If you were lucky and the wal file was the first file, you'd end up with an empty directory indicating something very wrong, But, if it happened halfway, you would end up with a half copied cloud project. This could lead to failure to copy attachments, offline data data.gpkg, etc.

Copy link
Copy Markdown
Collaborator

@suricactus suricactus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge.

Since you had to decrypt this now, I would suggest to add a few comments on the lines before merging, e.g. why do we continue if -shm or -wal files.

@suricactus suricactus merged commit 48783fe into master Feb 12, 2026
8 checks passed
@suricactus suricactus deleted the wal_fix branch February 12, 2026 10:51
@suricactus
Copy link
Copy Markdown
Collaborator

I think we better release this sooner than later, I can live without the comments for now.

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

Successfully merging this pull request may close these issues.

2 participants