Skip to content

Conversation

@nickvergessen
Copy link
Member

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 [email protected]

@nickvergessen
Copy link
Member Author

/backport to stable17

@nickvergessen
Copy link
Member Author

/backport to stable16

@nickvergessen
Copy link
Member Author

/backport to stable15

@kesselb
Copy link
Contributor

kesselb commented Sep 30, 2019

Sorry for hijacking this pr 🙈

2f5eac1 looks like a regression from b5f407e. Here is a first report: #17331

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

We should really get more tests for this code.

@nickvergessen
Copy link
Member Author

Yeah, seems like i @kesselb So maybe we need to modify that code block a bit more

@nickvergessen
Copy link
Member Author

Well actually the code from b5f407e was removed by the rework of the workflow thing @juliushaertl
Can you point me to the correct place?

@kesselb
Copy link
Contributor

kesselb commented Sep 30, 2019

Hmm. I'm not sure if you can reproduce this issue on master. For now files_accesscontrol is not compatible with the new workflow: nextcloud/files_accesscontrol#132

@juliusknorr
Copy link
Member

For the new WFE the file info is set here:

$this->storage = $subject->getStorage();

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

Works as advertised 👏

@juliusknorr
Copy link
Member

/backport to stable17

@juliusknorr
Copy link
Member

/backport to stable16

@juliusknorr
Copy link
Member

/backport to stable15

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 <[email protected]>
@nickvergessen nickvergessen force-pushed the bugfix/noid/mimetype-changes-on-renaming-a-folder branch from 6290ebc to d4d3725 Compare October 14, 2019 08:05
@nickvergessen nickvergessen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 14, 2019
@rullzer rullzer merged commit 1bc100a into master Oct 14, 2019
@rullzer rullzer deleted the bugfix/noid/mimetype-changes-on-renaming-a-folder branch October 14, 2019 19:38
@backportbot-nextcloud
Copy link

backport to stable17 in #17538

@backportbot-nextcloud
Copy link

backport to stable16 in #17539

@backportbot-nextcloud
Copy link

backport to stable15 in #17540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants