Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #17332

Otherwise files access control will cache "application/octet-stream"
for all the target node on:
rename, move, copy and all other methods which create a new item

To check this:
1. Add an automated tagging rule which tags on mimetype NOT "httpd/unix-directory"
2. Add an access control rule which checks for any mimetype
3. Create a folder and rename it, the folder should not be tagged, but it is

Signed-off-by: Joas Schilling <coding@schilljs.com>
@rullzer rullzer merged commit 69e878d into stable15 Oct 18, 2019
@rullzer rullzer deleted the backport/17332/stable15 branch October 18, 2019 08:46
* @param string $mimeType
* @return string
*/
protected function cacheAndReturnMimeType(string $storageId, ?string $path, string $mimeType): string {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
protected function cacheAndReturnMimeType(string $storageId, ?string $path, string $mimeType): string {
protected function cacheAndReturnMimeType(string $storageId, string $path, string $mimeType): string {

@rullzer @juliushaertl @nickvergessen this is not working on server15!
This pr have been merged with failing jobs: https://drone.nextcloud.com/nextcloud/server/22464/5/3

Copy link
Member

Choose a reason for hiding this comment

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

yeah, just remove ?string and I think we need to remove string aswell?

@rullzer rullzer mentioned this pull request Oct 28, 2019
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.

5 participants