owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.4k stars 2.05k forks source link

Previews-thumbnails get out-of-sync when edited by sharer and sharee #31855

Closed phil-davis closed 3 years ago

phil-davis commented 6 years ago

Steps to reproduce

  1. as "user1" create folder "test" and in it put "testfile.txt" with content "owner" - thumbnail says "owner" - good
  2. share folder "test" with "user2"
  3. as "user2", edit "testfile.txt" and put content "user2 text"
  1. login as "user1" - the thumbnail displays "user2 text" - good
  2. login as "user2" again - look at the thumbnail of the file
  1. login as "user1" again, edit the file and put content "user1 text" - thumbnail is updated - good
  2. login as "user2" again - look at the thumbnail of the file

Expected behaviour

The share receiver "user2" should always see a preview-thumbnail that is in sync with the file content.

Actual behaviour

The share receiver "user2" gets "stuck" with the preview-thumbnail that was generated at the time they first received/looked at the file.

Server configuration

10.0.9RC1 plus PR #31853 (which fixes missing hooks for thumbnail generation in 10.0.9RC1)

10.0.8 as symptoms similar to this, but might be a bit different.

phil-davis commented 6 years ago

Ideally the thumbnail of a file would be stored only once, in the "file system" of the file owner. Just like the file itself is stored only once, in the "file system" of the file owner.

If the share receiver "user2" is able to write back new content to the file owned by "user1" (even when encryption is happening) then "user2" should be able to also write back new content to the thumbnail owned by "user1" - and actually that seems to be happening because "user1" is seeing the correct updated thumbnail.

Maybe all that is needed is to stop writing a "duplicate" thumbnail in user2's file system?

ownclouders commented 6 years ago

GitMate.io thinks the contributor most likely able to help you is @PVince81.

Possibly related issues are https://github.com/owncloud/core/issues/19054 (If thumbnail then large preview in sidebar), https://github.com/owncloud/core/issues/997 (possibility preview and edit docx), https://github.com/owncloud/core/issues/16471 (Can not sync edited remote share file), https://github.com/owncloud/core/issues/7020 (Contact photos only in preview when edited on a client), and https://github.com/owncloud/core/issues/14671 (Thumbnail cache gets deleted after upload from smartphone).

PVince81 commented 6 years ago

Estimate: 0.5-1md

DeepDiver1975 commented 6 years ago

Concept:

phpweb commented 6 years ago

Thank you @phil-davis

When approximately can we have this feature?

phil-davis commented 6 years ago

It is a bug to be fixed. It depends on scheduling of the dev team, which is not my area.