Skip to content

[stable33] fix: allow renaming files with just update permissions#59241

Open
backportbot[bot] wants to merge 4 commits intostable33from
backport/57374/stable33
Open

[stable33] fix: allow renaming files with just update permissions#59241
backportbot[bot] wants to merge 4 commits intostable33from
backport/57374/stable33

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented Mar 26, 2026

Backport of #57374

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

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Remove all the empty commits

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 26, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.1 milestone Mar 26, 2026
@icewind1991 icewind1991 force-pushed the backport/57374/stable33 branch from 87abd5a to d737c19 Compare March 26, 2026 21:16
@icewind1991
Copy link
Copy Markdown
Member

/compile

@icewind1991 icewind1991 marked this pull request as ready for review March 26, 2026 21:21
@icewind1991 icewind1991 requested review from a team and skjnldsv as code owners March 26, 2026 21:21
@icewind1991 icewind1991 requested review from ArtificialOwl, leftybournes and salmart-dev and removed request for a team March 26, 2026 21:21
Copy link
Copy Markdown
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@oleksandr-nc
Copy link
Copy Markdown
Contributor

❤️❤️❤️

@saw-jan
Copy link
Copy Markdown

saw-jan commented Mar 27, 2026

This breaks the existing usage of DavUtil::getDavPermissions(...) in other apps
Example in https://github.com/nextcloud/integration_openproject/blob/253c6d0d1b8ba4c8ea0bd965ba7442c2117efbfe/lib/Controller/FilesController.php#L293

App will work fine with NC 33.0.1, but after upgrade to future version NC 33.0.2 (includes this changes), app will fail.

{
  "ocs": {
    "meta": {
      "status":"failure",
      "statuscode":996,
      "message":"Internal Server Error\nToo few arguments to function OCP\\Files\\DavUtil::getDavPermissions(), 1 passed in \/var\/www\/html\/custom_apps\/integration_openproject\/lib\/Controller\/FilesController.php on line 293 and exactly 2 expected in file '\/var\/www\/html\/lib\/public\/Files\/DavUtil.php' line 37",
      "totalitems":"",
      "itemsperpage":""
    },
  "data":[]
  }
}

upgrading in patch level breaks the code.

Comment thread lib/public/Files/DavUtil.php Outdated
Copy link
Copy Markdown
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

API break

@icewind1991 icewind1991 force-pushed the backport/57374/stable33 branch 2 times, most recently from e2f80ea to d0641c9 Compare March 27, 2026 13:53
@icewind1991
Copy link
Copy Markdown
Member

Made the new param optional

@icewind1991
Copy link
Copy Markdown
Member

/compile

@saw-jan
Copy link
Copy Markdown

saw-jan commented Mar 30, 2026

Made the new param optional

Fixes the compatibility issue. Thanks 👍

@icewind1991 @susnux
Could this compatibility fix also be ported to the master branch?

@oleksandr-nc
Copy link
Copy Markdown
Contributor

Friendly reminder on this 🤗

@DaphneMuller
Copy link
Copy Markdown

The only thing left to do is checking if the tests are related. @oleksandr-nc is this something you could already briefly verify? You can then ping @sorbaugh to force merge.

@saw-jan
Copy link
Copy Markdown

saw-jan commented Apr 17, 2026

Will the compatible code be ported to master? ref: #57374

@Altahrim
Copy link
Copy Markdown
Collaborator

/compile rebase

@nextcloud-command nextcloud-command force-pushed the backport/57374/stable33 branch from 99a9f0d to 41b6aba Compare April 20, 2026 15:22
@oleksandr-nc
Copy link
Copy Markdown
Contributor

Looks like this needs another rebase 😢

@Altahrim
Copy link
Copy Markdown
Collaborator

/compile rebase

icewind1991 and others added 4 commits April 24, 2026 08:47
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the backport/57374/stable33 branch from 41b6aba to ed0da00 Compare April 24, 2026 08:50
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.

10 participants