Skip to content

always connect file cache updater hooks first - #2943

Merged
MTGap merged 1 commit into
masterfrom
always_load_cache_hooks_first
Apr 16, 2013
Merged

MTGap merged 1 commit into
masterfrom
always_load_cache_hooks_first

Conversation

@butonic

@butonic butonic commented Apr 16, 2013

Copy link
Copy Markdown
Contributor

Debugging issue #2170 I saw that the signals for post rename would first go to the files_sharing updater and then to the files_cache updater. As it turns out self::$registered[$signalclass][$signalname] in OC_Hook obviously shows the updaters in the wrong order.

Since the files app is hardcoded to always be the first app, this PR causes the cache updater to be connected before the files_sharing updater. This definitely fixes #2866 and should also fix #2170

@icewind1991 I think moving the hook connects to the app.php is the right way to force the file cache to always be updated first. Please correct me if I am wrong.

@MTGap please try this PR to see if it fixes the rename issues.

@Raydiation @schiesbn does this help with your trashbin problems?

@butonic

butonic commented Apr 16, 2013

Copy link
Copy Markdown
Contributor Author

pulling @bartv2 here as another reviewer

@BernhardPosselt

Copy link
Copy Markdown
Contributor

looks good :) 👍

@MTGap

MTGap commented Apr 16, 2013

Copy link
Copy Markdown
Contributor

👍

MTGap pushed a commit that referenced this pull request Apr 16, 2013
always connect file cache updater hooks first
@MTGap
MTGap merged commit 2040f0a into master Apr 16, 2013
@MTGap

MTGap commented Apr 16, 2013

Copy link
Copy Markdown
Contributor

Please backport @butonic so we can get into 5.0.5

@MTGap
MTGap deleted the always_load_cache_hooks_first branch April 16, 2013 19:21
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OC-5.0.4 renamed file sharing failed By renaming a shared folder is not shared any more

3 participants