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

[stable25] Forbid tagging readonly files #44309

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Mar 19, 2024

Backport of #44299 / #44297

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot added the 3. to review Waiting for reviews label Mar 19, 2024
@come-nc come-nc self-assigned this Mar 19, 2024
@come-nc come-nc changed the title [stable25] [stable27] Forbid tagging readonly files [stable25] Forbid tagging readonly files Mar 19, 2024
@come-nc come-nc marked this pull request as ready for review March 19, 2024 13:30
@@ -60,10 +60,19 @@
$tagMapper,
$userSession,
$groupManager,
function ($name) {
function ($name): bool {

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $name has no provided type
$nodes = \OC::$server->getUserFolder()->getById((int)$name);
return !empty($nodes);
}
},
function ($name): bool {

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $name has no provided type
}
},
function ($name): bool {
$nodes = \OC::$server->getUserFolder()->getById((int)$name);

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OC\Server::getUserFolder has been marked as deprecated
}
},
function ($name): bool {
$nodes = \OC::$server->getUserFolder()->getById((int)$name);

Check notice

Code scanning / Psalm

PossiblyNullReference Note

Cannot call method getById on possibly null value
@@ -77,7 +86,8 @@
$tagMapper,
$userSession,
$groupManager,
$entityExistsFunction
$entityExistsFunction,
fn ($name) => true,

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $name has no provided type
25 supports 7.4

Signed-off-by: Côme Chilliet <[email protected]>
@come-nc
Copy link
Contributor

come-nc commented Mar 19, 2024

/backport! to stable24

@come-nc
Copy link
Contributor

come-nc commented Mar 19, 2024

/backport! to stable23

@come-nc
Copy link
Contributor

come-nc commented Mar 21, 2024

Can someone restart drone job? Failures are weird.

@come-nc come-nc added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 21, 2024
@come-nc
Copy link
Contributor

come-nc commented Mar 21, 2024

All good. Needs a force merge because 25 is EOL

@nickvergessen nickvergessen merged commit 2ab4c08 into stable25 Mar 21, 2024
29 of 30 checks passed
@nickvergessen nickvergessen deleted the backport/44299/stable25 branch March 21, 2024 13:45
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants