You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2017/11/07 20:48:14 UTC
[cxf] branch 3.0.x-fixes updated (5d215ae -> 278bf18)
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a change to branch 3.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git.
from 5d215ae [CXF-7530]AttachmentSerializer miss a CRLF before the multipart-body per spec rfc2046
new 48a6bb8 CXF-7551 - Policy Based WSS4J Stax Interceptors may not be correctly initialized
new 49fd881 Recording .gitmergeinfo Changes
new 278bf18 Fixing merge
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.gitmergeinfo | 11 +++++++
.../ws/security/wss4j/WSS4JStaxInInterceptor.java | 3 ++
.../ws/security/wss4j/WSS4JStaxOutInterceptor.java | 3 ++
.../org/apache/cxf/systest/ws/fault/FaultTest.java | 37 ++++++++++++++++++++++
4 files changed, 54 insertions(+)
--
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <co...@cxf.apache.org>'].
[cxf] 02/03: Recording .gitmergeinfo Changes
Posted by co...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 3.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 49fd8814c3a2568ed6f70d4dc02f77330c12cd3d
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Nov 7 19:35:36 2017 +0000
Recording .gitmergeinfo Changes
---
.gitmergeinfo | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.gitmergeinfo b/.gitmergeinfo
index c7d9ae3..0f2caed 100644
--- a/.gitmergeinfo
+++ b/.gitmergeinfo
@@ -4,6 +4,7 @@ B 000c347db18d4a774cccbc826cb1384360f272df
B 0010efbe2e31fbc6068e79ce8a0f7586ad04972e
B 004321a2e955665005b9c5bfe304feaf9cb622b0
B 004a87831c55655f2b91054eaeb3fff0f8e8986f
+B 004e33c4b6429164a69dfbcf395fe8904cfa3f70
B 00589e44810f2d8cf1a830bb80842067c73cb8c2
B 005ee936d42897f7083fd9fe26addec4779d4764
B 01121feb0813d8788d208f5e77180df166286c0b
@@ -316,6 +317,7 @@ B 292fe2541e32bb31a59955975972cd6adfa1a9dc
B 294218f53fb5580fd2173363168c9aede7fc5028
B 29638f6c26ef72693f22fd7a3d689a46888c416d
B 2984a7f4b4ffbfb64e08b04d1706436c05ea6aaf
+B 29a62824a000f79a64753088e5516bb7167a50eb
B 29a9b9e96582602565286099ac3965424372370d
B 29dbad4a995ba09d97b131807585b46cb02c43af
B 29f0620a9a025afcd2057cdf97c7d93caf6c179f
@@ -416,6 +418,7 @@ B 3510e3d345ba2186a228436d481c809e692d42a2
B 354ac95b70a98b4f2e8f9f33c534b3e885e9a935
B 355a5e9999589b33a765c877239b204e3081172a
B 355ad864fef9f17d53b5c7ccf1aaa96ae24ec4d1
+B 3572d01e9ee310e4896077f341be8b4386075712
B 358589c33f44d747f5a924f0b1cdedfcb7018a22
B 35ae5ea6c77428e5e6f203a6a3c85fe2414498d0
B 35afaf3dcbb760a6c5eb1365b1159d7b9621a1e0
@@ -459,6 +462,7 @@ B 3a080015474d27075b0b03aa9ec74ab443504ebd
B 3aa082f6ae201dba8e49ab2e60374d30364e18c7
B 3aa4959ddbf225a82b597afef828bc21aa87db45
B 3aaf7d75c873c990d8e86d27e37f03c47e074175
+B 3ab3da0d8eca6e5e21c42a20ae102e3e982eed5b
B 3ab94c4bc289174ab8f54a114ebb039499adf0b8
B 3aec3e286e4732918589c239ea1b8f7e1d3a9836
B 3af4374ddb16ccf86195d64cb2a39fd4d65d43f1
@@ -486,6 +490,7 @@ B 3ea1c784f248e29dcda46b16b82ad0e923c4b6e1
B 3ec5957b01821138129cc29acb88430fa278d28e
B 3ee69e9404d3ffed74e84b223d7d284c081f7fb4
B 3f0d0bf2e1476aaa8a0e39cfe04ab504a7e1f680
+B 3f5742fdbed560319d590d2f8d9d8e18ee0e4e68
B 3f57636a454757504055ab0973ec2a461fb954be
B 3f90fa6a7adb9c3311663424950fa352d7d5bdbb
B 3fd465a1b74c19e819a794ff89227af2c0d268f5
@@ -562,6 +567,7 @@ B 471c0773a207799f878419f123ac32a275941f2a
B 473105a03eed95de37b5ecc8a67a6335b451d0ad
B 4744117f9228e8f25cc2cba2255f6e6a516e2d2a
B 4764f8f3974cf48ff39eb6ffffb253734f8be22b
+B 477c8b84ebff587b5893dedee0c3c9cb2fc9d9a7
B 47839c649a92a4e372eee313e5d53ec5c91df334
B 478de215af2da2c03f439bbbd8341b234bb7bee8
B 47b1a4ae21cfc70cea3b48ebd2be72fd184f1370
@@ -626,6 +632,7 @@ B 4e68076d7c9cf5f1be0e03d570a50f80756a82cc
B 4e694e617884c8df7ea7c8a0a475ac575e42f270
B 4e787778cdf5f836a811a611e64334e9730720ef
B 4e89084673f5d1852dcfc5a4c0a74e7f4e2699c5
+B 4eb7d68f8d3628bb3110760cf2c9221dfd98534f
B 4edaad797a57d6968f5ba293b100b856a72c52ab
B 4eec754b1bbd46e0142412cd37dbaf189c47f905
B 4efd6b4c188c7e7c94feb6afc943df831da43180
@@ -698,6 +705,7 @@ B 577dd538a026b339c4a5a1c438a41b5e2d04e184
B 577eb154c09a0654fc1d54d4743b369b84d3fd5a
B 578a51c1ba7f12b35730b0d66ac6b4ab880fb94c
B 57bb9dafd152b02a548e5ce36319854833e1d03b
+B 57d400bafcbad83983dcefb29e5119839f596681
B 583270d2fe08e0fb294c7b4ced721cf6d5630afa
B 58592742163e7b7e28992304ed1ff2e7e8917f91
B 587b85261f83306ccdbbc5e0e176436f7991a28b
@@ -1757,6 +1765,7 @@ B e32ce07bc632380664d70d5b4c44afafbc2bed33
B e34c320e34ea4911c845b01917479c73edee223c
B e3b96547d7760ea1d9b9b64e3ea1cb10e8687cef
B e3cf81814730be1b2a1b35a7a5d62ac4da061ab8
+B e3e66a00b6c8d0096a18f229d70f95705046fde2
B e3edee617edfef541385cd0043ca88ab2e6456d7
B e41d2352762c124401629d7295691de2b6db1d5c
B e4278ceea39da799656051882b683e31fbbb4be1
@@ -1800,12 +1809,14 @@ B e7cbefd3c535098c71a1ae03c10e5578706b2759
B e7e71068561546f04fc8b67edcde5e2db72334f8
B e80086821a1f4020247d97bbd62dd8cad81d4ae1
B e81a5c953173abb072372ff28e68ba4fd17dc653
+B e847bac861f852b776f74e6bd6b25ba7041886ff
B e8514ea3f5fdf33b19d9ddc0639cc1aaf57e1f62
B e8719af028f014782a282da4c5907ea2252c5095
B e89913007c5d225615ec3dbd0775702749b28d0e
B e899c32e0cd342b7b6f2a965d5c5f3dc8dfd6b9c
B e89e821747618c751fca15ad361eaf8a1b2972f2
B e8b8e2bc1b5afa4ad93294ebe1bd723a5a4a8f64
+B e90968677cefa304cd2c9499247acdfa081f119d
B e9100af2a7ed333cdfe65225c9976d73301d7a9a
B e96d484496f3812d18ea1518e51c0351e5e4c5c4
B e982c5518b8dec97813d4e1cc7045402d163a2c5
--
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <co...@cxf.apache.org>.
[cxf] 03/03: Fixing merge
Posted by co...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 3.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 278bf187d373012b0c14a4a86d451a239d2a8104
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Nov 7 20:48:05 2017 +0000
Fixing merge
---
.../src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java
index 579eeb9..676913a 100644
--- a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java
+++ b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java
@@ -39,6 +39,7 @@ import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.DispatchImpl;
import org.apache.cxf.systest.ws.common.SecurityTestUtil;
import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.ws.security.SecurityConstants;
import org.apache.wss4j.dom.WSConstants;
import org.example.contract.doubleit.DoubleItPortType;
import org.junit.BeforeClass;
--
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <co...@cxf.apache.org>.
[cxf] 01/03: CXF-7551 - Policy Based WSS4J Stax Interceptors may
not be correctly initialized
Posted by co...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 3.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 48a6bb802822500435f7f9645505a0788b662083
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Nov 7 17:03:50 2017 +0000
CXF-7551 - Policy Based WSS4J Stax Interceptors may not be correctly initialized
(cherry picked from commit 0161dd80785bc79d9c6df77f9bb8b512f879f480)
(cherry picked from commit f05d366bddf66d752ddb672441fa1a75a86f4438)
---
.../ws/security/wss4j/WSS4JStaxInInterceptor.java | 3 ++
.../ws/security/wss4j/WSS4JStaxOutInterceptor.java | 3 ++
.../org/apache/cxf/systest/ws/fault/FaultTest.java | 36 ++++++++++++++++++++++
3 files changed, 42 insertions(+)
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java
index 74489ed..348ca8b 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java
@@ -76,18 +76,21 @@ public class WSS4JStaxInInterceptor extends AbstractWSS4JStaxInterceptor {
public WSS4JStaxInInterceptor(WSSSecurityProperties securityProperties) {
super(securityProperties);
+ WSSec.init();
setPhase(Phase.POST_STREAM);
getAfter().add(StaxInInterceptor.class.getName());
}
public WSS4JStaxInInterceptor(Map<String, Object> props) {
super(props);
+ WSSec.init();
setPhase(Phase.POST_STREAM);
getAfter().add(StaxInInterceptor.class.getName());
}
public WSS4JStaxInInterceptor() {
super();
+ WSSec.init();
setPhase(Phase.POST_STREAM);
getAfter().add(StaxInInterceptor.class.getName());
}
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxOutInterceptor.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxOutInterceptor.java
index 84930bd..8ab8419 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxOutInterceptor.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxOutInterceptor.java
@@ -68,6 +68,7 @@ public class WSS4JStaxOutInterceptor extends AbstractWSS4JStaxInterceptor {
public WSS4JStaxOutInterceptor(WSSSecurityProperties securityProperties) {
super(securityProperties);
+ WSSec.init();
setPhase(Phase.PRE_STREAM);
getBefore().add(StaxOutInterceptor.class.getName());
@@ -76,6 +77,7 @@ public class WSS4JStaxOutInterceptor extends AbstractWSS4JStaxInterceptor {
public WSS4JStaxOutInterceptor(Map<String, Object> props) {
super(props);
+ WSSec.init();
setPhase(Phase.PRE_STREAM);
getBefore().add(StaxOutInterceptor.class.getName());
getAfter().add(LoggingOutInterceptor.class.getName());
@@ -84,6 +86,7 @@ public class WSS4JStaxOutInterceptor extends AbstractWSS4JStaxInterceptor {
public WSS4JStaxOutInterceptor() {
super();
+ WSSec.init();
setPhase(Phase.PRE_STREAM);
getBefore().add(StaxOutInterceptor.class.getName());
getAfter().add(LoggingOutInterceptor.class.getName());
diff --git a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java
index 6615a12..579eeb9 100644
--- a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java
+++ b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/FaultTest.java
@@ -103,6 +103,42 @@ public class FaultTest extends AbstractBusClientServerTestBase {
}
@org.junit.Test
+ public void testSoap11StAX() throws Exception {
+
+ SpringBusFactory bf = new SpringBusFactory();
+ URL busFile = FaultTest.class.getResource("client.xml");
+
+ Bus bus = bf.createBus(busFile.toString());
+ BusFactory.setDefaultBus(bus);
+ BusFactory.setThreadDefaultBus(bus);
+
+ URL wsdl = FaultTest.class.getResource("DoubleItFault.wsdl");
+ Service service = Service.create(wsdl, SERVICE_QNAME);
+ QName portQName = new QName(NAMESPACE, "DoubleItSoap11Port");
+ DoubleItPortType utPort =
+ service.getPort(portQName, DoubleItPortType.class);
+ updateAddressPort(utPort, PORT);
+
+ // Make a successful invocation
+ SecurityTestUtil.enableStreaming(utPort);
+ ((BindingProvider)utPort).getRequestContext().put(SecurityConstants.USERNAME, "alice");
+ utPort.doubleIt(25);
+/*
+ // Now make an invocation using another username
+ ((BindingProvider)utPort).getRequestContext().put(SecurityConstants.USERNAME, "bob");
+ ((BindingProvider)utPort).getRequestContext().put("security.password", "password");
+ try {
+ utPort.doubleIt(25);
+ fail("Expected failure on bob");
+ } catch (Exception ex) {
+ assertTrue(ex.getMessage().contains("This is a fault"));
+ }
+*/
+ ((java.io.Closeable)utPort).close();
+ bus.shutdown(true);
+ }
+
+ @org.junit.Test
public void testSoap12() throws Exception {
SpringBusFactory bf = new SpringBusFactory();
URL busFile = FaultTest.class.getResource("client.xml");
--
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <co...@cxf.apache.org>.