You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-auto@ws.apache.org by jo...@apache.org on 2007/01/30 22:20:11 UTC
svn commit: r501568 - in /webservices/xmlrpc/trunk:
common/src/main/java/org/apache/xmlrpc/parser/DateParser.java pom.xml
src/changes/changes.xml
Author: jochen
Date: Tue Jan 30 13:20:09 2007
New Revision: 501568
URL: http://svn.apache.org/viewvc?view=rev&rev=501568
Log:
The DateParser is now treating an empty string as null.
Submitted-by: Carsten Wolters, c.wolters@gmx.de
PR: XMLRPC-133
Modified:
webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/parser/DateParser.java
webservices/xmlrpc/trunk/pom.xml
webservices/xmlrpc/trunk/src/changes/changes.xml
Modified: webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/parser/DateParser.java
URL: http://svn.apache.org/viewvc/webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/parser/DateParser.java?view=diff&rev=501568&r1=501567&r2=501568
==============================================================================
--- webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/parser/DateParser.java (original)
+++ webservices/xmlrpc/trunk/common/src/main/java/org/apache/xmlrpc/parser/DateParser.java Tue Jan 30 13:20:09 2007
@@ -34,8 +34,12 @@
}
protected void setResult(String pResult) throws SAXException {
+ final String s = pResult.trim();
+ if (s.length() == 0) {
+ return;
+ }
try {
- super.setResult(f.parseObject(pResult.trim()));
+ super.setResult(f.parseObject(s));
} catch (ParseException e) {
throw new SAXParseException("Failed to parse integer value: " + pResult,
getDocumentLocator());
Modified: webservices/xmlrpc/trunk/pom.xml
URL: http://svn.apache.org/viewvc/webservices/xmlrpc/trunk/pom.xml?view=diff&rev=501568&r1=501567&r2=501568
==============================================================================
--- webservices/xmlrpc/trunk/pom.xml (original)
+++ webservices/xmlrpc/trunk/pom.xml Tue Jan 30 13:20:09 2007
@@ -189,6 +189,10 @@
<name>Ken Weiner</name>
<email>kweiner@gmail.com</email>
</contributor>
+ <contributor>
+ <name>Carsten Wolters</name>
+ <email>c.wolters@gmx.de</email>
+ </contributor>
<contributor>
<name>Juho Yli-Krekola</name>
<email>Juho.Yli-Krekola@iki.fi</email>
Modified: webservices/xmlrpc/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/webservices/xmlrpc/trunk/src/changes/changes.xml?view=diff&rev=501568&r1=501567&r2=501568
==============================================================================
--- webservices/xmlrpc/trunk/src/changes/changes.xml (original)
+++ webservices/xmlrpc/trunk/src/changes/changes.xml Tue Jan 30 13:20:09 2007
@@ -95,6 +95,10 @@
due-to="Juho Yli-Krekola" due-to-email="Juho.Yli-Krekola@iki.fi">
The configuration of the reply timeout in the commons transport was wrong.
</action>
+ <action dev="jochen" type="fix" issue="XMLRPC-133"
+ due-to="Carsten Wolters" due-to-email="c.wolters@gmx.de">
+ The DateParser is now treating an empty string as null.
+ </action>
</release>
<release version="3.0" date="30-Aug-2006">
<action dev="jochen" type="fix" due-to="Matt Preston"