[
https://issues.apache.org/jira/browse/CAMEL-13489?focusedWorklogId=238434&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-238434
]
ASF GitHub Bot logged work on CAMEL-13489:
------------------------------------------
Author: ASF GitHub Bot
Created on: 07/May/19 12:58
Start Date: 07/May/19 12:58
Worklog Time Spent: 10m
Work Description: oscerd commented on pull request #2906: CAMEL-13489:
camel-undertow: consumer thrown NPE when the body cannot be converted to
ByteBuffer
URL: https://github.com/apache/camel/pull/2906
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 238434)
Time Spent: 10m
Remaining Estimate: 0h
> camel-undertow: consumer thrown NPE when the body cannot be converted to
> ByteBuffer
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-13489
> URL: https://issues.apache.org/jira/browse/CAMEL-13489
> Project: Camel
> Issue Type: Bug
> Components: camel-undertow
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Minor
> Fix For: 3.0.0, 2.24.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Assuming we have a simple route like:
> {code}
> from("undertow:http://localhost:{{port}}/incompatibleData")
> .transform().constant(Collections.singletonMap("key", "val"));
> {code}
> This code will cause an NPE on UndertowConsumer because the body cannot be
> converted to a ByteBuffer [1], instead of an NPE we should use
> mandatoryConvertTo so the exception is more clear.
> [1]
> https://github.com/apache/camel/blob/master/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowConsumer.java#L156
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)