Repository navigation
Releases
v0.1.16
Feature
POST /ocphotos-api/api/admin/exif?all=1: queues every live image of the owner again and drains the backlog. It is the backfill for when the extractor starts producing something new, which right now means the visible size of a rotated photo (width/heightswapped for orientations 5 to 8): the rows indexed before v0.1.15 keep the stored size, so the timeline drew a portrait photo as landscape.
Fix
- A failed EXIF read no longer erases what the row had. It used to save an empty result, so a 404 or a transient error wiped the camera, the dimensions and the location of that photo; now it only marks the asset as processed, which is what keeps it from being retried in a loop. Without this, a mass re-read would have been a data-loss button.
v0.1.15
Fix
- Thumbnails are no longer served lying on their side. A JPEG stores the rotation of the photo in the EXIF orientation and
image/jpegignores it, so a phone portrait (stored landscape plus orientation 6) produced a landscape thumbnail while the browser showed the original upright. The thumbnail now applies the transform; HEIC goes through the decoder withAutoRotateand is not rotated twice. - The cache key carries a version (
v2), so the thumbnails generated by the previous code are never served again. - The EXIF worker stores the width and height the user sees (swapped for orientations 5 to 8), so the timeline stops laying a portrait photo out as landscape.
Measured on a live instance before the fix: a Galaxy S23 Ultra photo stored 4000x2252 with orientation 6 was served with a 400x225 thumbnail.
Thanks
Thanks to @s10l (#34), whose patch and tests are the base of this one.
v0.1.14
Fix
- Rows of a space the user can no longer see are pruned. A scan walks the spaces that exist, so when a drive disappears from
/me/drivesits photos stayed in the index forever (31 of them on a real instance). After a pass that finished every selected space, the rows whose space is not among the visible drives are soft-deleted; rows indexed before migration 004 are matched by the id in their path. - The prune needs a complete pass, keeps every visible drive even if it is not configured for scanning, leaves alone any row whose space cannot be determined, and refuses to run with an empty list of visible drives.
v0.1.13
Fix
- Scans that never finished. The server answers PROPFIND with the hrefs percent-encoded and the client compared them raw against the decoded request path, so the entry of the resource itself survived as a child in any folder with a space or an accent (
Marca Domatix/Diseño/). The scanner queued that folder again and walked the same tree in a loop until the 2h timeout. Measured with this same client against the real space: 85 seconds for 2,347 folders and 11,262 photos; the production scan spent 2 hours there with one core of OpenCloud at 100 %. - The scan now logs what it costs: a progress line every 1,000 assets and the time spent in the DAV listings (
propfind) and in the index writes (upsert) when it finishes.
v0.1.12
Fixes
- One scan timeout per space. The 2h budget was shared by every space of the owner, so a big personal library left the following spaces unscanned (in a real instance the shares space was never walked). A space that hits its budget is logged with its duration and the scan goes on with the next one. The EXIF backlog gets its own context too.
- A deadline during the walk is reported as such: before, it was logged as "root folder not reachable", hiding a scan that never happened.
Thanks
Thanks to @Baldag, whose report (gnacho/ocphotos#145) started this thread.
v0.1.11
Fixes
- The scan root
/means the root of the space. It used to resolve to the server root, so an instance with a single global root folder (OCAPPS_PHOTOS_SCAN_ROOT, defaultFotos) had no way to index a library spread over top folders: every space skipped becauseFotosdoes not exist there. With/the whole space is walked, which is also what an instance needs to index the shares drive.""keeps meaning the default folder, and a space where the folder is missing is still skipped, keeping its index.
Thanks
Thanks to @Baldag for the report that led here (gnacho/ocphotos#145).
v0.1.10
Thanks
Thanks to @Baldag, whose report in gnacho/ocphotos#145 is the reason of the multi-space support: the scan used to stop at the personal drive and the photos of a project space never showed up.
Highlights
- Multi-space photos: the scan walks every space the user can see (personal, project spaces and shares), not only the personal drive, and each asset keeps its space (
spaceId,spaceName,spaceType). NewOCAPPS_PHOTOS_SCAN_SPACESto restrict the walk,GET /ocphotos-api/api/spaces, and?space=filters on the assets and folders endpoints. Closes gnacho/ocphotos#145. - Live updates for photos: a per-user SSE stream (
GET /ocphotos-api/api/stream) tells the client when its index changes, so the timeline no longer polls. - Pinning the scan to a drive (
OCAPPS_PHOTOS_SCAN_SPACE, now folded into the new list) and a soft-delete scoped to the folder being scanned.
Fixes
- Notes keeps its core capabilities when the core rejects the credentials.
- EXIF read from HEIC containers.
- Revalidable thumbnail caching with ETag and 304.
- The extension updater takes one backup per install and verifies the stamp it writes.
Quality
- Coverage gate at 75% of statements, third-party license inventory check, and the test suite extended across news, notes, extensions and every photos package (race + shuffle in CI).
- The Go code, comments, runtime messages and the docs are in English.
v0.1.9
Docker deployments are now covered end to end. The repo ships a Compose overlay for the official OpenCloud stack, and the image no longer leaves /var/lib/ocapps owned by root, which used to kill the container at startup because the service runs as uid 10001. Builds also move to Go 1.26.11, which closes GO-2026-6859 in net/http.
Changes
- Docker Compose example and a Docker section in
deploy/README.md: service overlay onopencloud-net, extension unzipped into the apps bind mount,apps.yamlentry, nginx routes and the healthz check (#31, #32). Dockerfile: create/var/lib/ocappsand chown it to the service user before switching uid, so a named volume is writable (#32).- Go 1.26.11 in
go.mod(#30). - README lists the Android clients of the three apps and what they need from the deployment (#29).
No API or database changes. Upgrading from 0.1.8 is a binary swap and systemctl restart opencloud-apps.
Install
Static binaries for linux/amd64 and linux/arm64 are attached, with checksums.txt. Docker:
docker build -t ocapps https://github.com/gnacho/ocapps.git#v0.1.9systemd and reverse proxy details: deploy/README.md.