Some JPG images are no longer viewed through the NextCloud web interface.

Hello
This is a replay, I was trying to insert pictures and accidentally deleted the message).

Maybe this will help someone.
I want to ask the developers to check the code.

The problem was repeated on two of my NextCloud servers in version 30.0.6.
The problem was also confirmed by my friend, the administrator of another server.

Some old JPG images are no longer viewed through the NextCloud web interface.
I copied the problematic file next to it - the new file works.
I compared the records in the database…

There is an “etag” field in the “oc_filecache” table
The old entries are short, the new ones are long.
This probably happened after the version update.

Most files with short entries are displayed normally,
but if the “etag” entry consists of only decimal digits (the characters [a-f] are missing),
the NextCloud web interface will not be able to display such an image.

Perhaps this is incorrect!!!
I’m clearing the “etag” field for this file - This solves the problem.
Running sudo -u www-data php /var/www/nextcloud/occ files:scan --all
This updates the entry in the “etag” field for the given file.

I’m sorry for the translation problems.