Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 402815 - [SFTP] import fails on symbolic links to directories
Summary: [SFTP] import fails on symbolic links to directories
Status: RESOLVED WONTFIX
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 411898
  Show dependency tree
 
Reported: 2013-03-09 12:10 EST by Rafael Chaves CLA
Modified: 2015-05-05 14:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2013-03-09 12:10:05 EST
Seeing this on OrionHub today: SFTP import seems to choke on symbolic links, creating an empty document instead and not importing any other entries.
Comment 1 Anthony Hunter CLA 2013-06-21 15:48:46 EDT
Likely the service should be updated to ignore symbolic links.

In the case of a symbolic link to a file, the symbolic link is downloaded as a copy of the file.

For example, at the sftp site:
% ln -s index.html default.html

Subsequently the symbolic link default.html is imported as a copy of index.html and Orion contains two identical files.

So the Orion server contains:
% ls -l
-rw-r--r-- 1 ahunter ahunter 639 Jun 21 15:35 default.html
-rw-r--r-- 1 ahunter ahunter 639 Jun 21 15:20 index.html

In the case of a symbolic link to a folder, the sftp session fails with an exception, halts at that link and an zero length file is left on the Orion server.

For example, at the sftp site:
% ln -s images folder

So the Orion server contains afterwards:
% ls -l
-rw-r--r-- 1 ahunter ahunter    0 Jun 21 15:37 folder
-rw-r--r-- 1 ahunter ahunter  639 Jun 21 15:20 index.html
Comment 2 John Arthorne CLA 2015-05-05 14:52:16 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html