server icon indicating copy to clipboard operation
server copied to clipboard

Previews for single shared files is not updated

Open MorrisJobke opened this issue 10 years ago • 5 comments

  • upload a file abc.png
  • share this file
  • overwrite the file abc.png with another image via WebDAV
  • check the shared link

expected

  • preview is updated

actual

  • preview is not updated

MorrisJobke avatar Aug 02 '16 09:08 MorrisJobke

This is only stable9

MorrisJobke avatar Aug 02 '16 10:08 MorrisJobke

The issue is non-shared previews:

  • Share a folder with a group
  • Upload a file a.png to that folder as owner
  • As recipient overwrite a.png
  • See that the owners preview is not updated

rullzer avatar Aug 03 '16 08:08 rullzer

As discussed in person last week. This boils down to the shared preview issue.

In the current state all previews are bound to the user. Which means that if N people have access to a file N previews will be generated (well N*M since you can have multiple preview sizes). We have no (scaleable) way to clean this up properly.

The solution is we should share previews. This saves time (generation) and space (deduplication) of previews. I'm working on a PR to make this happen.

rullzer avatar Aug 08 '16 07:08 rullzer

I just ran into this as well. There is also no way of fixing this. The owner either has to touch the images so they are resynced and his previews get regenerated or the admin has to delete the users thumbnails directory.

adsworth avatar Oct 18 '16 10:10 adsworth

Fixed with https://github.com/nextcloud/server/pull/1741

rullzer avatar Nov 03 '16 20:11 rullzer