You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2008/04/15 01:53:40 UTC

svn commit: r648067 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java

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);
     }