Skip to content

[stable29] fix: skip caching lastSeenQuotaUsage for remote shares - #51528

Merged
provokateurin merged 1 commit into
stable29from
backport/51389/stable29
Mar 31, 2025
Merged

[stable29] fix: skip caching lastSeenQuotaUsage for remote shares#51528
provokateurin merged 1 commit into
stable29from
backport/51389/stable29

Conversation

@backportbot

@backportbotbackportbotBot commented Mar 17, 2025

Copy link
Copy Markdown

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.

@backportbotbackportbotBot added bug 3. to review Waiting for reviews labels Mar 17, 2025
@backportbotbackportbotBot added this to the Nextcloud 29.0.14 milestone Mar 17, 2025
@kesselb
kesselbforce-pushed the backport/51389/stable29 branch from a00852d to 0c5117bCompareMarch 17, 2025 17:58
$isRemoteShare = $storage->instanceOfStorage(\OCA\Files_Sharing\External\Storage::class);

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

Copy link
Copy Markdown
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
kesselbforce-pushed the backport/51389/stable29 branch from 0c5117b to 1e9c1b4CompareMarch 18, 2025 16:36
@kesselb
kesselb marked this pull request as ready for review March 18, 2025 16:37
@blizzzblizzz mentioned this pull request Mar 19, 2025
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@provokateurin
provokateurin merged commit 95c22db into stable29Mar 31, 2025
@provokateurin
provokateurin deleted the backport/51389/stable29 branch March 31, 2025 08:47
@AltahrimAltahrim mentioned this pull request Apr 3, 2025
7 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@kesselb@provokateurin@come-nc@blizzz