Closed simulot closed 3 months ago
Can you provide steps to reproduce this? A few things that are confusing about this report. The response in the attached logs uses duplicate: true/false, but we're returning status: duplicate/etc instead since a few versions ago. Also we have specific tests to reupload the same file in our e2e. Also, if the web correctly handles it, that implies the API is functioning correctly.
The API get 2 success as shown. And yes the web interface behaves differently
At the end, there is only one sample of the photo in immich.
I believe the success response when uploading a duplicate asset is intended - your goal is for that asset to exist in Immich, and that goal succeeded. I do believe there's something in the response that indicates it was a duplicate though.
The web client I believe hashes the file before uploading, so its reporting does not come from the upload endpoint.
It's a regression. The API used to reply duplicate=true... Note that the returned ID is different... as if the asset has been accepted
It isn't a regression. The response format changed.
I haven't noticed that. Thanks
The bug
The immich-go project has received few strange reports telling that when uploading another time the same collection, few files are still uploaded. ex: https://github.com/simulot/immich-go/issues/359
After analyse it appears that the API endpoint replies success when uploading a file with a different name, but with the same content (same SHA1).
The OS that Immich Server is running on
Mint, windows
Version of Immich Server
v1.107.2
Version of Immich Mobile App
N/A
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
When dropping the files on the web UI, the UI reports the duplicate error