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

[camel-sftp] Allow directories which are un-readable to be ignored on permission error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.1
    • 2.14.2, 2.15.0
    • camel-sftp
    • None
    • Novice

    Description

      When reading from SFTP server recursively it is possible that we read a directory that are not having permission to be read. Specifically, lost+found directory created by the OS with root permission. We should be able to ignore these kind of errors.

      I can fix this and submit patch but would need guidance towards the better approach:
      1. Re-use IgnoreFileNotFoundOrPermissionError flag and extend its functionality
      2. Add a new flag to ignore these errors

      I think the first approach is better as I consider directories to be also a special type of files. I can work on this if you let me know which way to go from someone in Apache Camel team.

      Thanks,
      Shreyas Purohit

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              shreyaspurohit Shreyas Purohit
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 8h
                  8h
                  Remaining:
                  Remaining Estimate - 8h
                  8h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified