Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

camel-box does not process CamelBox.folderId as documented

$
0
0
2.14.0.

The documentation says:

The target folderId for the upload can be specified in the header property
CamelBox.folderId. If the header is not specified the value defaults to "0"
for the root folder ID.

But the code actually looks for an exchange property, not a message header.
The following change to BoxConverter.java makes it work as documented:

if (exchange != null) {
//folderId = exchange.getProperty(BoxConstants.PROPERTY_PREFIX +
"folderId", "0", String.class);
if(exchange.getIn() != null ) {
folderId =
exchange.getIn().getHeader(BoxConstants.PROPERTY_PREFIX + "folderId", "0",
String.class);

Viewing all articles
Browse latest Browse all 5648

Trending Articles