Skip to content

[stable35] fix(files_sharing): limit the share token input to the maximum token length - #64710

Open
backportbot[bot] wants to merge 1 commit into
stable35from
backport/61826/stable35
Open

backportbot[bot] wants to merge 1 commit into
stable35from
backport/61826/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 24, 2026

Copy link
Copy Markdown

Backport of PR #61826

…length

The custom share link token input accepted arbitrarily long values,
while the server (and the oc_share.token database column) only allows
32 characters. Users learned about the limit only after submitting the
form and reading the error toast.

Set the maxlength attribute on the token input matching
ShareAPIController::TOKEN_MAX_LENGTH and mention the length and
character constraints in the helper text, so the limit is communicated
before saving instead of after a failed request.

Related: #61416, follow-up to #61630

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Assisted-by: ClaudeCode:claude-fable-5
Assisted-by: Hermes:claude-opus-5
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
@backportbot
backportbot Bot requested a review from a team as a code owner September 24, 2026 09:28
@backportbot
backportbot Bot requested review from kristian-zendato, skjnldsv, sorbaugh and susnux and removed request for a team September 24, 2026 09:28
@backportbot backportbot Bot added this to the Nextcloud 35.0.1 milestone Sep 24, 2026

This branch has not been deployed

No deployments
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.

2 participants