You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/24 08:31:01 UTC
[jira] [Commented] (CAMEL-12029) CoAP component should handle
method not allowed
[ https://issues.apache.org/jira/browse/CAMEL-12029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265032#comment-16265032 ]
ASF GitHub Bot commented on CAMEL-12029:
----------------------------------------
GitHub user jamesnetherton opened a pull request:
https://github.com/apache/camel/pull/2112
CAMEL-12029: Return 4.05 response if no consumers were found for the request method
https://issues.apache.org/jira/browse/CAMEL-12029
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jamesnetherton/camel CAMEL-12029
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2112.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2112
----
commit 464ffd8f06934e1ddfcd619a5e903cbc6db2ebeb
Author: James Netherton <ja...@gmail.com>
Date: 2017-11-24T08:25:27Z
CAMEL-12029: Return 4.05 response if no consumers were found for the request method
----
> CoAP component should handle method not allowed
> -----------------------------------------------
>
> Key: CAMEL-12029
> URL: https://issues.apache.org/jira/browse/CAMEL-12029
> Project: Camel
> Issue Type: Improvement
> Components: camel-coap
> Reporter: James Netherton
> Assignee: James Netherton
> Priority: Minor
>
> If you hit a CoAP consumer endpoint using a method that it does not support, an NPE is thrown within CamelCoapResource and it returns an 'internal server error' response to the client.
> We should detect this scenario and as per RFC 7252, and return a response like '4.05 Method Not Allowed'.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)