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

Use postCreate to listen for new files #54

Closed
wants to merge 2 commits into from

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented May 31, 2018

This simplifies the code a bit IMO.
Also it make sure that now automated tagging also works on storages where no partfiles are needed.

@icewind1991 I need your FS expertise to tell me this is good enough ;)

Fixes #53

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codewise makes sense 👍

@icewind1991
Copy link
Member

I vaguely remember there being a reason that it was done this way, maybe to ensure that outside changes that were scanned are also tagged

@rullzer
Copy link
Member Author

rullzer commented Jun 6, 2018

@icewind1991 ah mmm that might make sense...

However then we'd need a different solution. (or maybe both?)
As right now it doesn't detect uploads to files uploaded without part files (so to objectstore etc)

@nickvergessen
Copy link
Member

Well even when it's not using .part files, the files should be added to the cache at some point, which is the moment when the tagging happens (otherwise we don't have a file id).

Can you step through with a debugger to see why it's not happening? Is the CacheWrapper maybe not added?

@rullzer
Copy link
Member Author

rullzer commented Jul 5, 2018

Ok so it seems nextcloud/server#10109 is to blame

@nickvergessen nickvergessen deleted the fix/53/tag_on_create_event branch August 10, 2018 08:15
@MorrisJobke MorrisJobke removed this from the Nextcloud 14 milestone Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants