You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by "RivalAUT (via GitHub)" <gi...@apache.org> on 2025/02/24 10:22:53 UTC
[PR] [SANTUARIO-576] Fix saml validation with saaj 1.4+ [santuario-xml-security-java]
RivalAUT opened a new pull request, #453:
URL: https://github.com/apache/santuario-xml-security-java/pull/453
When using SAAJ versions from 1.4 onwards, the signature element of the request was not removed due to type mismatch. This led to failed validations because the digest was wrongly calculated.
With this fix the excludeNode will be excluded even if the currentNode and excludeNode differ in type (e.g. com.sun.xml.messaging.saaj.soap.impl.ElementImpl vs. com.sun.org.apache.xerces.internal.dom.ElementNSImpl).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@santuario.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [SANTUARIO-576] Fix saml validation with saaj 1.4+ [santuario-xml-security-java]
Posted by "RivalAUT (via GitHub)" <gi...@apache.org>.
RivalAUT commented on PR #453:
URL: https://github.com/apache/santuario-xml-security-java/pull/453#issuecomment-2700491392
Sadly not, it does not work in my specific case with just currentNode.isSameNode(excludeNode)
It is needed to check both ways.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@santuario.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [SANTUARIO-576] Fix saml validation with saaj 1.4+ [santuario-xml-security-java]
Posted by "RivalAUT (via GitHub)" <gi...@apache.org>.
RivalAUT commented on PR #453:
URL: https://github.com/apache/santuario-xml-security-java/pull/453#issuecomment-2742693390
I changed the code to check the references first - should be better like this, i agree.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@santuario.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [SANTUARIO-576] Fix saml validation with saaj 1.4+ [santuario-xml-security-java]
Posted by "coheigea (via GitHub)" <gi...@apache.org>.
coheigea merged PR #453:
URL: https://github.com/apache/santuario-xml-security-java/pull/453
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@santuario.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [SANTUARIO-576] Fix saml validation with saaj 1.4+ [santuario-xml-security-java]
Posted by "RivalAUT (via GitHub)" <gi...@apache.org>.
RivalAUT commented on PR #453:
URL: https://github.com/apache/santuario-xml-security-java/pull/453#issuecomment-2700531060
I sent a test case per mail on 13th January.
It happens because currentNode is of type com.sun.org.apache.xerces.internal.dom.ElementNSImpl and excludeNode is of type com.sun.xml.messaging.saaj.soap.impl.ElementImpl, where only checking from com.sun.xml.messaging.saaj.soap.impl.ElementImpl returns the correct result. As both currentNode and excludeNode can be from this class (in my case it is excludeNode, but in the original Jira Ticket it was the other way around), both have to be checked.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@santuario.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [SANTUARIO-576] Fix saml validation with saaj 1.4+ [santuario-xml-security-java]
Posted by "coheigea (via GitHub)" <gi...@apache.org>.
coheigea commented on PR #453:
URL: https://github.com/apache/santuario-xml-security-java/pull/453#issuecomment-2700498305
It's a bit strange - do you have a test case where isSameNode only works one way?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@santuario.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org