Skip to content
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

Objectstorage callback wrapper skips wrapped caches #10109

Closed
rullzer opened this issue Jul 4, 2018 · 4 comments
Closed

Objectstorage callback wrapper skips wrapped caches #10109

rullzer opened this issue Jul 4, 2018 · 4 comments

Comments

@rullzer
Copy link
Member

rullzer commented Jul 4, 2018

How to test:

  1. setup S3 as primary storage
  2. add a tag 'test'
  3. enable files_automated tagging and have a rule to assing 'test'
  4. upload a file

The tag should be added. But it is not added.

The reason for this is in:

$fileId = $this->getCache()->put($path, $stat);

When we reach the fopen of the objectstorage we do an fopen with a callbackwrapper.
Now when we perform the fclose we directly land in the writeBack function. If in here we request the cache we just get back the cache at that point. So there are no wrappers around it. Which means that automated tagging can't do its job and add the tag.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #1652 (Storage wrapper warnings), #8483 (Preview cache issue ), #9005 (c), #2330 (LDAP user refresh with caching enabled), and #3703 (ts).

@MorrisJobke
Copy link
Member

new event is in: #13748

@MorrisJobke
Copy link
Member

@rullzer
Copy link
Member Author

rullzer commented Mar 18, 2019

Works now 🚀

@rullzer rullzer closed this as completed Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants