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

Implement original SFTP provider for Apache Commons VFS2 #44

Merged
merged 3 commits into from
Mar 14, 2018

Conversation

sakama
Copy link
Contributor

@sakama sakama commented Mar 9, 2018

Follow up for #43

I implemented original SFTP provider based on org.apache.commons.vfs2.provider.sftp/* to disable permission check logic before renaming remote files.
Apache Commons VFS2 is checking parent directory's permission.
This works if SFTP account can execute command over SSH. But doesn't works when command execution isn't permitted. #40
https://issues.apache.org/jira/browse/VFS-590

src/main/java/org/embulk/output/sftp/provider/* implementation is almost same with SFTP provider in Apache Commons VFS2.
Main change is af1819a

Additionally, I changed org.apache.commons.vfs2.impl.StandardFileSystemManager to org.apache.commons.vfs2.impl.DefaultFileSystemManager.
I faced ClassLoader problem and can't pass my original providers.xml to StandardFileSystemmanager.

We can remove these files when VFS-590 is solved.

@sakama sakama force-pushed the implement-original-sftp-provider branch 2 times, most recently from 4dd03c8 to 6af7c8a Compare March 9, 2018 08:42
@sakama sakama force-pushed the implement-original-sftp-provider branch from 6af7c8a to af1819a Compare March 9, 2018 08:45
@sakama sakama requested a review from muga March 9, 2018 08:46
@sakama sakama changed the title Implement original SFTP provider or Apache Commons VFS2 Implement original SFTP provider for Apache Commons VFS2 Mar 9, 2018
@sakama sakama changed the base branch from re-implement-file-rename-feature to master March 14, 2018 06:33
@sakama sakama merged commit 7d51657 into master Mar 14, 2018
@sakama sakama deleted the implement-original-sftp-provider branch March 14, 2018 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant