core icon indicating copy to clipboard operation
core copied to clipboard

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

Open phil-davis opened this issue 8 years ago • 6 comments

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"
  • thumbnail displayed to "user2" is not updated, it still says "owner"
  1. login as "user1" - the thumbnail displays "user2 text" - good
  2. login as "user2" again - look at the thumbnail of the file
  • thumbnail displayed to "user2" is not updated, it still says "owner"
  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
  • thumbnail displayed to "user2" is not updated, it still says "owner"

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 avatar Jun 21 '18 10:06 phil-davis

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?

phil-davis avatar Jun 21 '18 10:06 phil-davis

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).

ownclouders avatar Jun 21 '18 11:06 ownclouders

Estimate: 0.5-1md

PVince81 avatar Jul 06 '18 15:07 PVince81

Concept:

  • store thumbnails by file id in an user independent storage data/thumbnails
  • old thumbnail folders are to be deleted using a repair step/migration step
  • OPTIONAL: new thumbnails can be batch recreated using an occ command

DeepDiver1975 avatar Jul 09 '18 08:07 DeepDiver1975

Thank you @phil-davis

When approximately can we have this feature?

phpweb avatar Sep 21 '18 15:09 phpweb

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

phil-davis avatar Sep 21 '18 16:09 phil-davis