镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

fix loss of read-only state in SubjectConverter - #455

Open
jmestwa-coder wants to merge 1 commit into
x-stream:masterfrom
jmestwa-coder:fix-subject-readonly-flag
Open

jmestwa-coder wants to merge 1 commit into
x-stream:masterfrom
jmestwa-coder:fix-subject-readonly-flag

Conversation

@jmestwa-coder

Copy link
Copy Markdown

SubjectConverter.unmarshalReadOnly reads the read-only flag with Boolean.getBoolean, which looks up a JVM system property named by the value instead of parsing the string. A Subject marshalled as read-only therefore comes back mutable and its principal set can be modified again. Parse the value with Boolean.parseBoolean.

@jmestwa-coder

Copy link
Copy Markdown
Author

any update?

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