You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Vishesh (Jira)" <ji...@apache.org> on 2025/02/26 05:48:00 UTC
[jira] [Updated] (CAMEL-21799) Camel COAP exchange retrieve only the last block of Blockwise
[ https://issues.apache.org/jira/browse/CAMEL-21799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vishesh updated CAMEL-21799:
----------------------------
Estimated Complexity: Moderate (was: Unknown)
Regression: Unit Test Broken
Labels: camel-coap coap (was: )
Priority: Blocker (was: Major)
> Camel COAP exchange retrieve only the last block of Blockwise
> ---------------------------------------------------------------
>
> Key: CAMEL-21799
> URL: https://issues.apache.org/jira/browse/CAMEL-21799
> Project: Camel
> Issue Type: Bug
> Components: camel-coap
> Affects Versions: 4.8.0, 4.10.0
> Reporter: Vishesh
> Priority: Blocker
> Labels: camel-coap, coap
>
> We've observed a bug in camel-coap library latest version. As per observation solution received all the packet blockwise since the payload exceed the limit. At californium library level we can clearly see that all packages received successfully. However when it delegate the response to camel we just receive the last packet instead of full payload.
> The root cause of the problem in the camel-coap library is located in the class org.apache.camel.coap.CamelCoapResource where, at line 137, the method getCurrentRequest is called instead of getRequest, causing only the last packet of a blockwise transfer to be received instead of the full payload.
> *byte[] bytes = exchange.getCurrentRequest().getPayload();*
> camelExchange.getIn().setBody(bytes);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)