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: try to find non-recursive share source #46881

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

icewind1991
Copy link
Member

instead of always picking the first one, try to find one that won't blow up.

To test:

  • user A, B both in G1 and G2 and admin
  • create groupfolder GF1 for groups G1 and G2
  • Create a file GF1/test.txt
  • as A share GF1 to G1
  • as B share GF1 with G2
  • As A or B, try to enter "GF1 (2)"

instead of always picking the first one, try to find one that won't blow up

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Jul 30, 2024
@icewind1991 icewind1991 added this to the Nextcloud 30 milestone Jul 30, 2024
@icewind1991 icewind1991 requested review from a team, ArtificialOwl, Altahrim and yemkareems and removed request for a team July 30, 2024 13:34
@blizzz blizzz mentioned this pull request Jul 30, 2024
$this->cache = null;
break;
}
if (!$this->nonMaskedStorage) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction Note

Operand of type false is always falsy
$this->cache = null;
break;
}
if (!$this->nonMaskedStorage) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction Note

Docblock-defined type OCP\Files\Storage\IStorage for $this->nonMaskedStorage is never falsy
@sorbaugh sorbaugh merged commit 5faa903 into master Aug 1, 2024
169 checks passed
@sorbaugh sorbaugh deleted the try-non-recursive-source branch August 1, 2024 14:56
@icewind1991
Copy link
Member Author

/backport to stable29

@icewind1991
Copy link
Member Author

/backport to stable28

@icewind1991
Copy link
Member Author

/backport to stable27

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 high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants