Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Mar 17, 2025

Backport of #51389

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
  • Fix: OC\\User\\Manager::getDisplayName(): Argument #1 ($uid) must be of type string, null given, called in \/home\/runner\/work\/server\/server\/lib\/private\/legacy\/OC_Helper.php on line 554 in file '\/home\/runner\/work\/server\/server\/lib\/private\/User\/Manager.php' line 156

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

@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Mar 17, 2025
@backportbot backportbot bot added this to the Nextcloud 30.0.8 milestone Mar 17, 2025
@kesselb kesselb force-pushed the backport/51389/stable30 branch 3 times, most recently from f265e74 to 16fc2c3 Compare March 17, 2025 17:34
$isRemoteShare = $storage->instanceOfStorage(\OCA\Files_Sharing\External\Storage::class);

$ownerId = $storage->getOwner($path);
$hasOwnerId = $ownerId !== false && $ownerId !== null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

OC\\User\\Manager::getDisplayName(): Argument #1 ($uid) must be of type string, null given, called in \/home\/runner\/work\/server\/server\/lib\/private\/legacy\/OC_Helper.php on line 554 in file '\/home\/runner\/work\/server\/server\/lib\/private\/User\/Manager.php' line 156

Integration tests were failing because getOwner may return null for Nextcloud 30.
This was improved for 31 with: #48094.

@kesselb kesselb force-pushed the backport/51389/stable30 branch from 16fc2c3 to a0cca3a Compare March 18, 2025 14:40
@kesselb kesselb marked this pull request as ready for review March 18, 2025 16:27
@blizzz blizzz mentioned this pull request Mar 19, 2025
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@AndyScherzinger AndyScherzinger force-pushed the backport/51389/stable30 branch from a0cca3a to 590c6a7 Compare March 19, 2025 22:32
@provokateurin provokateurin enabled auto-merge March 20, 2025 06:43
@provokateurin provokateurin merged commit 559d6e8 into stable30 Mar 28, 2025
178 of 181 checks passed
@provokateurin provokateurin deleted the backport/51389/stable30 branch March 28, 2025 14:14
@Altahrim Altahrim mentioned this pull request Apr 3, 2025
5 tasks
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 bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants