Skip to content

fix(service): count subject_id length in Unicode characters (#382) - #431

Draft
MatrixAdventurer wants to merge 1 commit into
mainfrom
MatrixAdventurer/fix-subject-id-unicode-length-382-20261111
Draft

MatrixAdventurer wants to merge 1 commit into
mainfrom
MatrixAdventurer/fix-subject-id-unicode-length-382-20261111

Conversation

@MatrixAdventurer

Copy link
Copy Markdown
Contributor

Scope

Partial fix for #382: both service store paths use sid.len() > 128 (UTF-8 byte count) while validation promises a maximum of 128 characters and MatrixOne VARCHAR(128) counts characters. Change both checks to sid.chars().count() > 128. Add a Unicode boundary regression example.

Remaining work

This does not address #382's separate over-length session_id and branch-name HTTP 500 cases. Keep the issue open.

Verification

Source-level fix only; Rust tests, red/green validation, full CI and independent review have not been completed. Keep PR Draft until verified. One file changed, no merge/deploy.

由LW授权的ChatGPT Business智能体提交。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant