WebDAV: old missing attachments are not downloaded “at sync time”, while newly added attachments dow
Debug ID: D1452238551
Hi,
I believe I may have encountered a reproducible WebDAV file-sync issue in Zotero 10.0.1 on macOS.
# WebDAV: old missing attachments are not downloaded “at sync time”, while newly added attachments download normally (Zotero 10.0.1, macOS)
Hi,
I believe I may have encountered a reproducible WebDAV file-sync issue in Zotero 10.0.1 on macOS.
## Environment
* Zotero: 10.0.1, ARM64
* macOS: 26.4
* File sync: WebDAV
* Attachment download setting: **At sync time**
* The same Zotero account and WebDAV storage are used on Windows and Mac.
* I also reproduced the behavior in Troubleshooting Mode with third-party plugins disabled.
## Problem
The Mac has item metadata for a large number of stored attachments, but many of the corresponding local attachment files are missing.
With **Download files: At sync time** enabled, clicking Sync does not download these older missing attachments.
However:
1. Manually opening one of the old missing PDF attachments causes Zotero to download it successfully from WebDAV.
2. A newly added PDF attachment on my Windows computer is uploaded to WebDAV and then automatically downloaded by the Mac during the next normal sync.
So normal WebDAV downloading works, but the older missing attachments are not being added to the download process during synchronization.
## Current attachment state
After the latest test:
* Stored attachment records in the database: 210
* Attachments present locally: 61
* Attachments missing locally: 149
I compared one newly synchronized attachment with several older missing attachments.
New attachment:
```text
syncState = 2
storageHash = populated
storageModTime = populated
local file = present
```
Older missing attachments:
```text
syncState = 0
storageHash = NULL
storageModTime = NULL
local file = missing
```
All tested attachments use `linkMode = 0` (stored/imported files), not linked files.
## Relevant sync behavior
During a normal sync, the debug output contains:
```text
Starting file syncing
No remote storage changes for My Library -- skipping file downloads
```
It then treats the missing attachments as candidates for local upload processing:
```text
151 files to upload for My Library
```
but the files do not exist locally, resulting in messages such as:
```text
Attachment file ... not found
File ... not available to upload -- skipping
```
No download jobs are created for these older missing attachments.
In contrast, when I manually open one of the missing old attachments, Zotero successfully accesses the corresponding WebDAV files:
```text
HTTP GET .../VDPEQILP.prop succeeded with 200
HTTP GET .../VDPEQILP.zip succeeded with 200
Download request 1/VDPEQILP finished
```
This suggests that the remote attachment exists and WebDAV authentication/download itself is working.
## Additional test
I added a new stored PDF attachment on the Windows computer and synchronized it.
Afterwards, clicking Sync on the Mac automatically downloaded this new attachment successfully.
The older missing attachments still did not download.
Therefore the behavior appears to be specific to the existing file-sync state of the older attachments, rather than a general WebDAV connectivity problem.
## Reset File Sync History
I have already used **Reset File Sync History** while troubleshooting.
It did not cause the older missing attachments to be downloaded at sync time.
I have not manually modified `zotero.sqlite`, `syncState`, `storageHash`, `storageModTime`, or any other internal Zotero state.
## Steps to reproduce on the affected Mac
1. Set WebDAV attachment downloading to **At sync time**.
2. Have older stored attachment records whose local files are missing but whose `.prop` and `.zip` files are available on WebDAV.
3. Click Sync.
4. Zotero starts file syncing but reports that there are no remote storage changes and skips file downloads.
5. The old missing attachments are not downloaded.
6. Manually open one of those attachments.
7. Zotero successfully downloads the attachment from WebDAV.
8. Add a completely new attachment from another synchronized computer.
9. Sync again on the Mac.
10. The newly added attachment downloads automatically, while the older missing attachments remain missing.
## Expected behavior
With **Download files: At sync time** enabled, I would expect locally missing stored attachments that are available on WebDAV to be downloaded during synchronization.
## Debug ID
`DXXXXXXXXX`
Please let me know if I can provide any additional diagnostics or run any further tests. I have kept the affected Zotero data directory unchanged so that the current state can still be investigated.
Thanks for your work on Zotero.
Hi,
I believe I may have encountered a reproducible WebDAV file-sync issue in Zotero 10.0.1 on macOS.
# WebDAV: old missing attachments are not downloaded “at sync time”, while newly added attachments download normally (Zotero 10.0.1, macOS)
Hi,
I believe I may have encountered a reproducible WebDAV file-sync issue in Zotero 10.0.1 on macOS.
## Environment
* Zotero: 10.0.1, ARM64
* macOS: 26.4
* File sync: WebDAV
* Attachment download setting: **At sync time**
* The same Zotero account and WebDAV storage are used on Windows and Mac.
* I also reproduced the behavior in Troubleshooting Mode with third-party plugins disabled.
## Problem
The Mac has item metadata for a large number of stored attachments, but many of the corresponding local attachment files are missing.
With **Download files: At sync time** enabled, clicking Sync does not download these older missing attachments.
However:
1. Manually opening one of the old missing PDF attachments causes Zotero to download it successfully from WebDAV.
2. A newly added PDF attachment on my Windows computer is uploaded to WebDAV and then automatically downloaded by the Mac during the next normal sync.
So normal WebDAV downloading works, but the older missing attachments are not being added to the download process during synchronization.
## Current attachment state
After the latest test:
* Stored attachment records in the database: 210
* Attachments present locally: 61
* Attachments missing locally: 149
I compared one newly synchronized attachment with several older missing attachments.
New attachment:
```text
syncState = 2
storageHash = populated
storageModTime = populated
local file = present
```
Older missing attachments:
```text
syncState = 0
storageHash = NULL
storageModTime = NULL
local file = missing
```
All tested attachments use `linkMode = 0` (stored/imported files), not linked files.
## Relevant sync behavior
During a normal sync, the debug output contains:
```text
Starting file syncing
No remote storage changes for My Library -- skipping file downloads
```
It then treats the missing attachments as candidates for local upload processing:
```text
151 files to upload for My Library
```
but the files do not exist locally, resulting in messages such as:
```text
Attachment file ... not found
File ... not available to upload -- skipping
```
No download jobs are created for these older missing attachments.
In contrast, when I manually open one of the missing old attachments, Zotero successfully accesses the corresponding WebDAV files:
```text
HTTP GET .../VDPEQILP.prop succeeded with 200
HTTP GET .../VDPEQILP.zip succeeded with 200
Download request 1/VDPEQILP finished
```
This suggests that the remote attachment exists and WebDAV authentication/download itself is working.
## Additional test
I added a new stored PDF attachment on the Windows computer and synchronized it.
Afterwards, clicking Sync on the Mac automatically downloaded this new attachment successfully.
The older missing attachments still did not download.
Therefore the behavior appears to be specific to the existing file-sync state of the older attachments, rather than a general WebDAV connectivity problem.
## Reset File Sync History
I have already used **Reset File Sync History** while troubleshooting.
It did not cause the older missing attachments to be downloaded at sync time.
I have not manually modified `zotero.sqlite`, `syncState`, `storageHash`, `storageModTime`, or any other internal Zotero state.
## Steps to reproduce on the affected Mac
1. Set WebDAV attachment downloading to **At sync time**.
2. Have older stored attachment records whose local files are missing but whose `.prop` and `.zip` files are available on WebDAV.
3. Click Sync.
4. Zotero starts file syncing but reports that there are no remote storage changes and skips file downloads.
5. The old missing attachments are not downloaded.
6. Manually open one of those attachments.
7. Zotero successfully downloads the attachment from WebDAV.
8. Add a completely new attachment from another synchronized computer.
9. Sync again on the Mac.
10. The newly added attachment downloads automatically, while the older missing attachments remain missing.
## Expected behavior
With **Download files: At sync time** enabled, I would expect locally missing stored attachments that are available on WebDAV to be downloaded during synchronization.
## Debug ID
`DXXXXXXXXX`
Please let me know if I can provide any additional diagnostics or run any further tests. I have kept the affected Zotero data directory unchanged so that the current state can still be investigated.
Thanks for your work on Zotero.
Upgrade Storage