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 29.0.14 milestone Mar 17, 2025
@kesselb kesselb force-pushed the backport/51389/stable29 branch from a00852d to 0c5117b Compare March 17, 2025 17:58
$isRemoteShare = $storage->instanceOfStorage(\OCA\Files_Sharing\External\Storage::class);

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

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 29.
This was improved for 31 with: #48094.

@kesselb kesselb force-pushed the backport/51389/stable29 branch from 0c5117b to 1e9c1b4 Compare March 18, 2025 16:36
@kesselb kesselb marked this pull request as ready for review March 18, 2025 16:37
@blizzz blizzz mentioned this pull request Mar 19, 2025
@AndyScherzinger AndyScherzinger force-pushed the backport/51389/stable29 branch from 1e9c1b4 to 6d8c463 Compare March 28, 2025 14:14
@provokateurin provokateurin enabled auto-merge March 28, 2025 15:12
@provokateurin provokateurin merged commit 95c22db into stable29 Mar 31, 2025
195 of 199 checks passed
@provokateurin provokateurin deleted the backport/51389/stable29 branch March 31, 2025 08:47
@Altahrim Altahrim mentioned this pull request Apr 3, 2025
7 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