Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAMEL-16484: camel-dropbox - Bump to Dropbox 5.4.2 #199

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

essobedo
Copy link
Contributor

Fix for https://issues.apache.org/jira/browse/CAMEL-16484

Motivation

The version of Dropbox used is outdated (3.2.0) so it needs to be upgraded to the latest version.

Modifications:

  • Update consequently the list of dependencies

@essobedo essobedo merged commit 70799c0 into main Oct 14, 2022
@essobedo essobedo deleted the CAMEL-16484/dropbox-v5 branch October 14, 2022 10:23
@essobedo
Copy link
Contributor Author

Tested successfully with the next routes:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
           xsi:schemaLocation="
             http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
             http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

  <!-- blueprint property placeholders, that will use etc/dropbox.cfg as the properties file -->
  <cm:property-placeholder persistent-id="dropbox" update-strategy="reload">

  </cm:property-placeholder>
  
    <camelContext xmlns="http://camel.apache.org/schema/blueprint">
        <route>
            <from uri="timer:myTimer?period=10000" />
            <setBody><simple>Hello from timer at ${header.firedTime}</simple></setBody>
            <setHeader name="CamelDropboxUploadMode">
                <constant>force</constant>
            </setHeader>
            <to uri="dropbox://put?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}/file.txt" />
            <log message="After put ${body}"/>
            <to uri="dropbox://get?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}/file.txt" />
            <log message="After get ${body}"/>
            <to uri="dropbox://move?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}/file.txt&amp;newRemotePath={{workDir}}-new/file.txt" />
            <log message="After move ${body}"/>
            <to uri="dropbox://search?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath=/camel-test2&amp;query=index" />
            <log message="After search ${body}"/>
            <to uri="dropbox://del?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath={{workDir}}-new/file.txt" />
            <log message="After del ${body}"/>
        </route>
        <route>
            <from uri="dropbox://get?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath=/camel-test2/index.md" />
            <log message="After get consumer ${body}"/>
        </route>        
        <route>
            <from uri="dropbox://search?accessToken={{accessToken}}&amp;expireIn={{expireIn}}&amp;refreshToken={{refreshToken}}&amp;apiKey={{apiKey}}&amp;apiSecret={{apiSecret}}&amp;remotePath=/camel-test2&amp;query=index" />
            <log message="After search consumer ${body}"/>
        </route>        
    </camelContext>

</blueprint>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants