[
https://issues.apache.org/jira/browse/CAMEL-8321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Cable updated CAMEL-8321:
--------------------------------
Attachment: box.sed
I've attached a sed script that will make the change. I left the
PROPERTY_PREFIX alone - if you want to change that too it's easy by hand:
super(BoxConfiguration.class, BoxConstants.PROPERTY_PREFIX);
./src/main/java/org/apache/camel/component/box/internal/BoxPropertiesHelper.java
String PROPERTY_PREFIX = "CamelBox.";
String NEXT_STREAM_POSITION_PROPERTY = PROPERTY_PREFIX +
"nextStreamPosition";
String CHUNK_SIZE_PROPERTY = PROPERTY_PREFIX + "chunkSize";
./src/main/java/org/apache/camel/component/box/internal/BoxConstants.java
But the file:
./src/main/java/org/apache/camel/component/box/BoxConverter.java
should be changed:
folderId = exchange.getIn().getHeader(BoxConstants.PROPERTY_PREFIX
+ "folderId", "0", String.class);
folderId = exchange.getIn().getHeader(BoxConstants.PROPERTY_PREFIX
+ "folderId", "0", String.class);
should now be:
folderId = exchange.getIn().getHeader("CamelBoxFolderId", "0",
String.class);
folderId = exchange.getIn().getHeader("CamelBoxFolderId", "0",
String.class);
The sed can be invoked by putting it in ~ and running a find from the camel-box
folder as:
find . -type f -a -exec sed -i -f ~/box.sed "{}" \;
It builds after this change but will be incompatible with existing users code.
> camel-box - Do not use dot in header keys
> -----------------------------------------
>
> Key: CAMEL-8321
> URL: https://issues.apache.org/jira/browse/CAMEL-8321
> Project: Camel
> Issue Type: Improvement
> Components: camel-box
> Reporter: Claus Ibsen
> Fix For: 2.15.0
>
> Attachments: box.sed
>
>
> This is standard Camel that header keys never has dots as that dont work well
> with various components such as jms and whatnot.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)