abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Lung (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ABDERA-289) Posting malformed ATOM XML to Abdera results in an HTTP 500 Server Error, it should return HTTP 422 Unprocessable Entity or HTTP 400
Date Thu, 15 Sep 2011 21:37:08 GMT

     [ https://issues.apache.org/jira/browse/ABDERA-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chad Lung updated ABDERA-289:
-----------------------------

    Description: 
When I do an HTTP Post to Apache Abdera with malformed ATOM XML I get an HTTP 500 error back.
 This should actually be a "HTTP 422 Unprocessable Entity" or a "HTTP 400 Bad Request".

Posting this to Apache Abdera will result in the error:

<?xml version="1.0"?>dqwd
<entry xmlns="http://www.w3.org/2005/Atom">
<title>Atom-Powered Robots Run Amok</title>
<updated>2003-12-13T18:30:02Z</updated>
<author><name>John Doe</name></author>
<content>Some text.</content>
</entry>

Error from Abdera once that is posted:

<?xml version='1.0' encoding='UTF-8'?><error xmlns="http://abdera.apache.org"><code>500</code><message>Server
Error</message></error>


java.lang.NullPointerException
	at org.apache.abdera.protocol.server.impl.AbstractProvider.processExtensionRequest(AbstractProvider.java:182)
	at org.apache.abdera.protocol.server.impl.AbstractProvider.process(AbstractProvider.java:133)
	at org.apache.abdera.protocol.server.FilterChain.next(FilterChain.java:38)
	at org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.java:86)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
	at org.eclipse.jetty.server.Server.handle(Server.java:346)
	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
	at java.lang.Thread.run(Thread.java:680)


  was:
When I do an HTTP Post to Apache Abdera with malformed ATOM XML I get an HTTP 500 error back.
 This should actually be a "HTTP 422 Unprocessable Entity" or a "HTTP 400 Bad Request".

Posting this to Apache Abdera will result in the error:

<?xml version="1.0"?>dqwd
<entry xmlns="http://www.w3.org/2005/Atom">
<title>Atom-Powered Robots Run Amok</title>
<updated>2003-12-13T18:30:02Z</updated>
<author><name>John Doe</name></author>
<content>Some text.</content>
</entry>

Error from Abdera once that is posted:

<?xml version='1.0' encoding='UTF-8'?><error xmlns="http://abdera.apache.org"><code>500</code><message>Server
Error</message></error>



> Posting malformed ATOM XML to Abdera results in an HTTP 500 Server Error, it should return
HTTP 422 Unprocessable Entity or HTTP 400
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-289
>                 URL: https://issues.apache.org/jira/browse/ABDERA-289
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 1.1.2
>         Environment: OS X 10.6
>            Reporter: Chad Lung
>
> When I do an HTTP Post to Apache Abdera with malformed ATOM XML I get an HTTP 500 error
back.  This should actually be a "HTTP 422 Unprocessable Entity" or a "HTTP 400 Bad Request".
> Posting this to Apache Abdera will result in the error:
> <?xml version="1.0"?>dqwd
> <entry xmlns="http://www.w3.org/2005/Atom">
> <title>Atom-Powered Robots Run Amok</title>
> <updated>2003-12-13T18:30:02Z</updated>
> <author><name>John Doe</name></author>
> <content>Some text.</content>
> </entry>
> Error from Abdera once that is posted:
> <?xml version='1.0' encoding='UTF-8'?><error xmlns="http://abdera.apache.org"><code>500</code><message>Server
Error</message></error>
> java.lang.NullPointerException
> 	at org.apache.abdera.protocol.server.impl.AbstractProvider.processExtensionRequest(AbstractProvider.java:182)
> 	at org.apache.abdera.protocol.server.impl.AbstractProvider.process(AbstractProvider.java:133)
> 	at org.apache.abdera.protocol.server.FilterChain.next(FilterChain.java:38)
> 	at org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.java:86)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:346)
> 	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
> 	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
> 	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
> 	at java.lang.Thread.run(Thread.java:680)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message