Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11679

camel-dropbox - Documentation should warn about remotePath being not set

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.20.0
    • camel-dropbox
    • None
    • Novice

    Description

      Documentation states, that in "Put" operation remotePath is not Mandatory, because "If the property is not set, the component will upload the file on a remote path equal to the local path."
      It should also warn, that we can omit remotePath ONLY if we are under Linux/Unix and ONLY if localPath is absolute. Otherwise (if we use windows style absolute path C:\ or any relative path on any OS) dropbox will fail with:

      Caused by: java.lang.IllegalArgumentException: 'path': bad path: must start with "/": "C:/My/File"
      

      or

      Caused by: java.lang.IllegalArgumentException: 'path': bad path: must start with "/": "MyFile"
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            onders Onder Sezgin
            eximius Kamil
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment