abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r648067 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
Date Mon, 14 Apr 2008 23:53:40 GMT
Author: jmsnell
Date: Mon Apr 14 16:53:39 2008
New Revision: 648067

URL: http://svn.apache.org/viewvc?rev=648067&view=rev
Log:
https://issues.apache.org/jira/browse/ABDERA-135 -- AbstractCollectionAdapter should return
400 rather than 500 when a ParseException occurs

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java?rev=648067&r1=648066&r2=648067&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
Mon Apr 14 16:53:39 2008
@@ -244,7 +244,7 @@
     try {
       entry_doc = (Document<Entry>)request.getDocument(parser).clone();
     } catch (ParseException e) {
-      throw new ResponseContextException(500, e);
+      throw new ResponseContextException(400, e);
     } catch (IOException e) {
       throw new ResponseContextException(500, e);
     }



Mime
View raw message