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

fix loss of read-only state in SubjectConverter#455
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.

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