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

fix: do not use removed View::getLocalFolder() #174

Closed
wants to merge 1 commit into from

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jun 6, 2023

fixes #171

Well, in theory. In practice, there is still a check that prevents workflow_script actions running against folders:

https://github.com/nextcloud/workflow_script/blob/master/lib/Operation.php#L148

That was mentioned once in a bug report, I am sure. We might have it because flows may run against the target file and the parent. It is not good to generally take out folders here. But for a different PR.

But let's say we do not have this restriction. Then, compared to 26 where getLocalFolder was present, these changes actually fix an uncaught exception against non-local storages, where the method is not implemented. Now they are ignored, which at least is smooth and not interrupting the actual action.

Also, this was problematic for shared storages (only the user folder of the owner was returned), alas here we have an issue as well with both the owner and the recipient being part of the resulting path.

Due to the previously mentioned restriction against folder, this is not a blocker per se for 27, nevertheless good to get it in in this form at least.

Update: I am thinking this might be simply dropped for Folders in general, as there is no support across storages and it never was working anyway due to the non-folder restriction pointed out. Now, this seems very much the better idea anyway for the actual purpose was to offer a external files locally.

@blizzz
Copy link
Member Author

blizzz commented Jun 6, 2023

/backport to stable27

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.

View::getLocalFolder() was removed
1 participant