You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by jo...@apache.org on 2006/03/02 20:55:30 UTC
svn commit: r382488 - in /webservices/xmlrpc/trunk:
common/src/main/java/org/apache/xmlrpc/util/HttpUtil.java
src/changes/changes.xml
Author: jochen
Date: Thu Mar 2 11:55:30 2006
New Revision: 382488
URL: http://svn.apache.org/viewcvs?rev=382488&view=rev
Log:
The value created by HttpUtil.encodeBasicAuthentication(...)
was terminated with a line feed, which is invalid for
use in HTTP headers.
Modified:
webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/HttpUtil.java
webservices/xmlrpc/trunk/src/changes/changes.xml
Modified: webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/HttpUtil.java
URL: http://svn.apache.org/viewcvs/webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/HttpUtil.java?rev=382488&r1=382487&r2=382488&view=diff
==============================================================================
--- webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/HttpUtil.java (original)
+++ webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/util/HttpUtil.java Thu Mar 2 11:55:30 2006
@@ -44,7 +44,7 @@
if (pEncoding == null) {
pEncoding = XmlRpcStreamConfig.UTF8_ENCODING;
}
- return new String(Base64.encode(s.getBytes(pEncoding)));
+ return new String(Base64.encode(s.getBytes(pEncoding))).trim();
}
/** Returns, whether the HTTP header value <code>pHeaderValue</code>
Modified: webservices/xmlrpc/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewcvs/webservices/xmlrpc/trunk/src/changes/changes.xml?rev=382488&r1=382487&r2=382488&view=diff
==============================================================================
--- webservices/xmlrpc/trunk/src/changes/changes.xml (original)
+++ webservices/xmlrpc/trunk/src/changes/changes.xml Thu Mar 2 11:55:30 2006
@@ -4,6 +4,12 @@
</properties>
<body>
<release version="3.0-SNAPSHOT" date="Not yet released">
+ <action dev="jochen" type="fix" due-to="Marek Ludha"
+ due-to-email="mludha@gmail.com">
+ The value created by HttpUtil.encodeBasicAuthentication(...)
+ was terminated with a line feed, which is invalid for
+ use in HTTP headers.
+ </action>
<action dev="jochen" type="fix" due-to="Walter Mundt"
due-to-email="Walter.Mundt@coleengineering.com">
Nested object arrays could not be parsed.