Open alaskanpuffin opened 1 year ago
Interessring, thanks for reporting.
It looks like it was caused by the photos not being scanned by the background job. How does the background job work? Is it run every time cron.php is called, or is it only after a certain time interval?
It could be helpful to add an indicator for the status of the file scan job, and for this specific error add an error message stating that the file has not been imported yet. The existing messages are a bit unclear, just stating it could take a while.
The metadata extraction works in two steps. For each photo an extraction job has to be scheduled. This is either done by OCC maps:scan-photos or via the filesystem hooks when a photo is uploaded or changed.
In principle OCC should schedule the extraction for all photos which are on nextcloud before maps was installed and the file hooks the monitor the changes.
Then during the Cron job the metadata extraction jobs are processed. One after another for. As this is the same list as all other jobs scheduled by Nextcloud it is hard to estimate how long it will take until all scheduled jobs are processed.
Anyhow on page load the maps app should show a notification, when there are not processed Backgroundjobs I the schedule.
I hope that this process can be migrated to a process where the server handels the metadata. And we get the photos via WebDAV requests.
⚠️ This issue respects the following points: ⚠️
Bug description
Placing a photo using the context menu on a custom map (non-default) results in a 500 error on the post request.
Steps to reproduce
Expected behavior
The photo should be placed on the custom map, as it works on the default map.
Installation method
Official Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install of the server?
Fresh Nextcloud Server install
Is this bug present after an update or on a fresh install of the app?
Fresh Nextcloud Maps install (never installed before)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
Browser Console
No response
Additional info
No response