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

[stable30] feat(share): ensure unique share tokens #48142

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

nickvergessen
Copy link
Member

  • check for token collisions and retry up to three times.
  • abort with an error if maximum token length is reached without finding a unique token.

Backport of #47265

Checklist

@nickvergessen
Copy link
Member Author

/backport to stable29

@nickvergessen
Copy link
Member Author

/backport to stable28

@nickvergessen
Copy link
Member Author

/backport to stable28

@nickvergessen
Copy link
Member Author

/backport to stable27

@nickvergessen
Copy link
Member Author

/backport to stable26

@nickvergessen
Copy link
Member Author

/backport to stable25

lib/private/Share20/Manager.php Fixed Show resolved Hide resolved
- check for token collisions and retry up to three times.
- throw after 3 attempts without finding a unique token.

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
@nickvergessen nickvergessen force-pushed the backport/47265/stable30 branch from 33f7590 to 0551919 Compare September 25, 2024 07:40
Copy link
Contributor

@ernolf ernolf left a comment

Choose a reason for hiding this comment

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

Tested, works!

@nickvergessen nickvergessen requested review from a team, ArtificialOwl, yemkareems and come-nc and removed request for a team September 25, 2024 10:05
@nickvergessen nickvergessen merged commit 5cc1fb9 into stable30 Sep 26, 2024
172 checks passed
@nickvergessen nickvergessen deleted the backport/47265/stable30 branch September 26, 2024 10:33
@nickvergessen nickvergessen changed the title [stable30] feat(share): ensure unique share tokens with dynamic length adjustment [stable30] feat(share): ensure unique share tokens Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants