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

ARTEMIS-4742 decoding PersistedSecuritySetting fails after upgrade #4904

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

jbertram
Copy link
Contributor

No description provided.

@@ -43,4 +48,31 @@ public void testNPE() {
persistedSecuritySetting.getViewRoles();
persistedSecuritySetting.getEditRoles();
}

@Test
public void testUpgradeAfterARTEMIS_4582() {
Copy link
Contributor

Choose a reason for hiding this comment

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

did you think about writing a compatibility test, perhaps using the functionality?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't. The stack-trace on the exception was pretty clear, and since we've dealt with this kind of issue before a quick unit test seemed adequate.

@@ -252,8 +252,12 @@ public void decode(final ActiveMQBuffer buffer) {
browseRoles = buffer.readNullableSimpleString();
createAddressRoles = buffer.readNullableSimpleString();
deleteAddressRoles = buffer.readNullableSimpleString();
viewRoles = buffer.readNullableSimpleString();
Copy link
Contributor

Choose a reason for hiding this comment

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

darn, I read the method readNullableSimpleString as doing the check for an non existent value, my bad,

@gtully gtully merged commit f7288c1 into apache:main Apr 23, 2024
6 checks passed
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.

3 participants