Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add owner fallback #49827

Draft
wants to merge 3 commits into
base: stable29
Choose a base branch
from

Conversation

miaulalala
Copy link
Contributor

Signed-off-by: Anna Larch [email protected]<!--

  • 🚨 SECURITY INFO
  • Before sending a pull request that fixes a security issue please report it via our HackerOne page (https://hackerone.com/nextcloud) following our security policy (https://nextcloud.com/security/). This allows us to coordinate the fix and release without potentially exposing all Nextcloud servers and users in the meantime.
    -->
  • Resolves: #

Summary

TODO

  • ...

Checklist

@miaulalala miaulalala self-assigned this Dec 12, 2024
@miaulalala miaulalala added the 2. developing Work in progress label Dec 12, 2024
@miaulalala
Copy link
Contributor Author

/backport to stable28

@@ -384,7 +384,7 @@ private function getPathForNode(Node $node): ?string {

$owner = $node->getOwner()?->getUid();

if ($owner !== null) {
if ($owner !== null && $owner !== '') {
Copy link
Member

Choose a reason for hiding this comment

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

How can $owner be an empty string here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

2 participants