Skip to content

fix(jPOS-665) JCESecurityManager is ignoring the debug property.#666

Merged
ar merged 2 commits intojpos:mainfrom
alcarraz:jPOS-665-honor-debug-property-in-JCESecurityManager
Jan 24, 2026
Merged

fix(jPOS-665) JCESecurityManager is ignoring the debug property.#666
ar merged 2 commits intojpos:mainfrom
alcarraz:jPOS-665-honor-debug-property-in-JCESecurityManager

Conversation

@alcarraz
Copy link
Contributor

@alcarraz alcarraz commented Jan 7, 2026

Call super.setConfiguration, instead of just assigning cfg. So SMAdaptor can set the configured debug property.

Call super.setConfiguration, instead of just assigning cfg.

Signed-off-by: Andrés Alcarraz <alcarraz@gmail.com>
@alcarraz alcarraz marked this pull request as draft January 7, 2026 15:28
@alcarraz alcarraz marked this pull request as ready for review January 7, 2026 15:37
Signed-off-by: Andrés Alcarraz <alcarraz@gmail.com>
Comment on lines -341 to -346
} catch (NullPointerException ex) {
if (isJavaVersionAtMost(JAVA_14)) {
assertNull(ex.getMessage(), "ex.getMessage()");
} else {
assertEquals("Cannot invoke \"org.jpos.core.Configuration.get(String)\" because \"this.cfg\" is null", ex.getMessage(), "ex.getMessage()");
}
Copy link
Contributor Author

@alcarraz alcarraz Jan 7, 2026

Choose a reason for hiding this comment

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

This message was too specific, the modification in this PE, makes the NPE to throw in the parent class with a different message, we would be testing SMAdapter instead of this class.

Perhaps we should even remove these tests.

Copy link
Member

Choose a reason for hiding this comment

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

I agree, this test should be removed or make more generic.

@ar ar merged commit 6c09e1b into jpos:main Jan 24, 2026
2 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.

2 participants