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

CoAP component should handle method not allowed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.19.5, 2.20.2, 2.21.0
    • camel-coap
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: