cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r548441 - /incubator/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Date Mon, 18 Jun 2007 18:44:02 GMT
Author: dandiep
Date: Mon Jun 18 11:44:00 2007
New Revision: 548441

URL: http://svn.apache.org/viewvc?view=rev&rev=548441
Log:
Fix small regression in the wss4jininterceptor.

Modified:
    incubator/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java

Modified: incubator/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java?view=diff&rev=548441&r1=548440&r2=548441
==============================================================================
--- incubator/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Mon Jun 18 11:44:00 2007
@@ -255,9 +255,11 @@
         XMLStreamReader reader = StaxUtils.createXMLStreamReader(new DOMSource(body));
         // advance just past body
         int evt = reader.next();
-        while (reader.hasNext() 
-             && (evt == XMLStreamConstants.END_ELEMENT || evt == XMLStreamConstants.START_ELEMENT))
{
-            evt = reader.next();
+        int i = 0;
+        while (reader.hasNext() && i < 1
+               && (evt != XMLStreamConstants.END_ELEMENT || evt != XMLStreamConstants.START_ELEMENT))
{
+            reader.next();
+            i++;
         }
         msg.setContent(XMLStreamReader.class, reader);
     }



Mime
View raw message