-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thumbnails not regenerated when reverting to an earlier version of a file #10559
Comments
@schiesbn @georgehrke |
Looks like a missing hook |
Would be good to regenerat thumbnails when a file is reverted, and also when a new file is uploaded with the same name. See #10822 |
Thanks @georgehrke |
Ok, so I digged into this problem and it seems like some logic error / missing hook in the versions app.
When reverting to an old version:
When grepping over the files_versions code I noticed that there are actually no hooks executed when reverting to an old file. There are only hooks being emitted when the file is deleted because a user's disk space almost full. @schiesbn I am probably missing something here. How are other apps supposed to know when a file was reverted to an old version? |
ping @schiesbn |
ping @schiesbn |
ping @schiesbn |
@schiesbn please comment on #10559 (comment) |
@schiesbn @PVince81 Has the missing hook been added to OC8? |
@georgehrke I think you are right. We didn't noticed this until now because no other app had to listen to a revert event. OC\Filesystem doesn't trigger a hook on revert because to operation happens outside of This could be also interesting for the activity app cc @nickvergessen |
BTW, sorry that it took me so long to response to this issue. Feel free to ping me on IRC, Jabber or E-Mail the next time you need a answer and I don't reply in time to a github issue. |
Well activity app is unaffected, since it always displayes the current preview. |
Please note, not only the thumbnail but the big previewed picture. |
Fixed in last master. |
Steps to reproduce
I see this with both FF and chrome. I cleared the cache to ensure that this isn't a caching issue.
Expected behaviour
The thumbnail should revert too
Actual behaviour
The thumbnail reflects the earlier version
Server configuration
ownCloud version: (see ownCloud admin page)
ownCloud 7.0.1 (daily) Build:2014-08-20T03:18:51+00:00
The text was updated successfully, but these errors were encountered: