Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[metro-dev] Porting from Metro 2.1 to 2.4.4 , error in Security Header
  • From: Leonardo Battagli <leonardobattagli@xxxxxxxxxxx>
  • Date: Fri, 29 Oct 2021 09:30:36 +0000
  • Accept-language: it-IT, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cb6bQPlVcqWQ8PtaS/RjtJOCesi2REXlFZkoqmWZS6I=; b=Rk3k6i86aDUy4qMtkDD23mdU00a+vUNDeb/o6KyyXTykYpjL7lrmUqvsb/0Cug2y3IIBVTw4t5Wc46xYYVP/FAe8HRLqmBxWmmeOWrWYfpCUmreU9sGuiEXTH4KYVGFqcAYID1WXmgaP9SAsiDTKqjVbck1ewzM6+KJ5CeVNDaLNkXzlX+KyNgFuhX5wakXJVl7CEedEGAoS0u27IWH2sRIXr/7zrmpwODMLhdXsCk+moJMh3XmZZTWDIo9EYzWjvUyxOTxWUmmc9b1TJDGrv4K8KSTIZzCRMXNj1Ynr/Gik0yCJuheVD1QDD5PeOsjd3EuJs107lYahHIWPy7qqIA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mI99m3MQhKslaR5ofy+2odp1DHYnd80s9QrZQwnl6Ygd27gzm44lwJSX3TQNZsHuFD9tFIkamV0WmTCiU1nROSgHn31yv90M0tiHzkdz21ze+9MmlBsAogOENCefAd8WmZylXXTTJ45Zz+ScZbVOvg1j1gxKsUAf2X+XbCI3Prwnx9GUN4wjLkDKa7yhg9ROj/YwI/bOnRbVma1EkbRpfsLNo/+go0GYoFgeAy1CpKSwsmsLLaVF5WFbduG0/XQIQVZVMwO3X15sbe2eyzIaT8dx63ifeXSGm0g02/qCQ75t4xvsIOG+IXf9ktGD7eIR98Lap+ZihHLHSubg9Owq8A==
  • Delivered-to: metro-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/metro-dev/>
  • List-help: <mailto:metro-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/metro-dev>, <mailto:metro-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/metro-dev>, <mailto:metro-dev-request@eclipse.org?subject=unsubscribe>
  • Suggested_attachment_session_id: e8e2e6d7-a466-bd6c-fb3c-00213d607306
  • Thread-index: AQHXzKP8s9y3Zg7CK0K2vJKrwN+XLw==
  • Thread-topic: Porting from Metro 2.1 to 2.4.4 , error in Security Header

Hi all,

Because of a memory leak I am experiencing with Metro 2.1 (https://github.com/javaee/metro-wsit/issues/1260)  I am planning on moving to version 2.4.4 and then 3.0.0.

Moving to metro 2.4.4 is causing this exception with the same wsit-client configuration

ott 29, 2021 11:18:43 AM com.sun.xml.wss.jaxws.impl.SecurityClientTube processClientResponsePacket
GRAVE: WSSTUBE0025: errore durante la verifica di sicurezza nel messaggio in entrata.
com.sun.xml.wss.XWSSecurityException: Security Requirements not met - No Security header in message
at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.createMessage(SecurityRecipient.java:959)
at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.validateMessage(SecurityRecipient.java:272)
at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.verifyInboundMessage(SecurityTubeBase.java:456)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientResponsePacket(SecurityClientTube.java:436)


I browsed source code and documentation finding no difference. 
I can't understand if it could be a namespace issues (of the wsit file).

This is the simple policy that has been used in both cases.

<wsp:Policy
wsu:Id="PatientIdentityBinding_IssuedTokenForCertificateSecureConversationMutualCertificate11_policyPolicy">
<wsp:ExactlyOne>
<wsp:All>

<sc:TrustStore wspp:visibility="private"
location="store.jks" type="JKS" storepass="thesame"
peeralias="aliastrust"></sc:TrustStore>

<sc:KeyStore wspp:visibility="private"
alias="alias01" keypass="thesame" storepass="thesame"
type="JKS" location="store.jks" />

</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>

Thanks
Leonardo

Back to the top