Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12029

CoAP component should handle method not allowed

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.5, 2.20.2, 2.21.0
    • Component/s: camel-coap
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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'.

        Attachments

          Activity

            People

            • Assignee:
              jamesnetherton James Netherton
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: