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

Add SAAJ exports to fix RPC calls. #77 #80

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

pavelhoral
Copy link
Member

@pavelhoral pavelhoral commented Feb 17, 2023

This fixes IllegalAccessError when calling RPC requests (e.g. via ssoadm).

Example request that lead to the error:

curl -XPOST -H 'SOAPAction: ' -H 'Content-Type: text/xml' -d '<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://isp.com/types" xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Header></env:Header><env:Body><ans1:checkForLocal xmlns:ans1="http://isp.com/wsdl"></ans1:checkForLocal></env:Body></env:Envelope>' http://localhost:9080/openam/jaxrpc/SMSObjectIF -v

Error that was produced during the call:

java.lang.IllegalAccessError: superclass access check failed: class com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl (in unnamed module @0x749563d9) cannot access class com.sun.org.apache.xerces.internal.dom.DocumentImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.dom to unnamed module @0x749563d9

This was also preventing ssoadm tool to correctly locate server instances which lead to unresponsiveness.

Copy link
Member

@fyrbach fyrbach left a comment

Choose a reason for hiding this comment

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

LGTM

@fyrbach fyrbach merged commit 7cd9d4c into WrenSecurity:main Feb 17, 2023
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