Skip to content

fix(dav): catch exception on non local account - #53677

Merged
provokateurin merged 1 commit into
masterfrom
fix/noid/ignore-missing-owner
Jun 25, 2025
Merged

fix(dav): catch exception on non local account#53677
provokateurin merged 1 commit into
masterfrom
fix/noid/ignore-missing-owner

Conversation

@ArtificialOwl

Copy link
Copy Markdown
Member

fix a regression from #52535 blocking public link on federated shares.

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl
ArtificialOwl requested a review from a team as a code ownerJune 25, 2025 12:37
@ArtificialOwl
ArtificialOwl requested review from Altahrim, artonge and skjnldsv and removed request for a teamJune 25, 2025 12:37
@ArtificialOwl

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

@ArtificialOwl

Copy link
Copy Markdown
MemberAuthor

/backport to stable30

@ArtificialOwlArtificialOwl added the 3. to review Waiting for reviews label Jun 25, 2025
@ArtificialOwlArtificialOwl added this to the Nextcloud 32 milestone Jun 25, 2025
// Check if the user published their display name
$ownerAccount = $this->accountManager->getAccount($owner);
try {
$ownerAccount = $this->accountManager->getAccount($owner);

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.

I am checking the code executed by getAccount but I can't find a place that throws the NoUserException (yet).
What I see is that inside this function, there is a call to getUser with default arguments, one of which is $insertIfNotExists = true. Doesn't this mean that if the user is not local, it gets created? Is that ok?

@skjnldsvskjnldsv mentioned this pull request Aug 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@ArtificialOwl@Altahrim@salmart-dev@provokateurin@skjnldsv