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

[stable23] Forbid tagging readonly files #44326

Merged
merged 6 commits into from
Mar 26, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Mar 19, 2024

Backport of PR #44309 / #44297

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
25 supports 7.4

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@backportbot backportbot bot added the 3. to review Waiting for reviews label Mar 19, 2024
@come-nc come-nc changed the title [stable23] [stable25] Forbid tagging readonly files [stable23] Forbid tagging readonly files Mar 19, 2024
@come-nc come-nc mentioned this pull request Mar 19, 2024
4 tasks
@@ -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
23 still supports PHP 7.3

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
Copy link
Contributor

come-nc commented Mar 21, 2024

PHP Parse error:  syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' in ./apps/dav/lib/SystemTag/SystemTagsRelationsCollection.php on line 90
  • Remove short function closure syntax not available in PHP 7.3

@come-nc come-nc self-assigned this Mar 21, 2024
@@ -77,7 +86,10 @@
$tagMapper,
$userSession,
$groupManager,
$entityExistsFunction
$entityExistsFunction,
function ($name) {

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $name has no provided type
… 7.3

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc requested a review from Altahrim March 25, 2024 15:56
@nickvergessen nickvergessen merged commit d8ea28b into stable23 Mar 26, 2024
27 of 28 checks passed
@nickvergessen nickvergessen deleted the backport/44309/stable23 branch March 26, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants