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);
            }
        }




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-box-does-not-process-CamelBox-folderId-as-documented-tp5760058.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to