1
非常に簡単な使用例に問題があります。 camel-dropbox - 動的なremotePathの空白を処理する
- 検索はこれは私がそれを試みた方法であるDropboxの
から
from("timer:start?period=60m")
//Load list of files
.to("dropbox://search?accessToken={{accessToken}}&clientIdentifier={{clientIdentifier}}&remotePath={{remotePath}}")
//Create list of files to load
.bean(FileHandlerBean.class, "prepareOperations")
.split(simple("${body}"))
//Load file from dropbox
.recipientList(simple("dropbox://get?accessToken={{accessToken}}&clientIdentifier={{clientIdentifier}}&remotePath=${body.dropBoxFilePath}"))
[...]
通常、これは動作するはずですリモートパスに空白を含むファイル名が含まれている場合は、2015-05-16 18.43.56.jpgDropboxConfigurationValidatorが例外をスローします。
私はのURLEncoderを使用してみました:
URLEncoder.encode(dbxEntry.path, "UTF-8")
をしかし、これは役立ちません。 コンポーネントをデバッグして、DropBoxComponentがパラメータを取得したときに "+"が空白に変換されたことを確認できます。
どのように私はこれを処理することができますか?キャメルバージョン2.17.1
ありがとうございました。JIRAを作成して修正プログラムを提供しました。これが完了した方法です:https://issues.apache.org/jira/browse/CAMEL-10334 –