Opened 11 years ago

Closed 11 years ago

#611 closed task (fixed)

Create package for supporting external files via SFTP

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: External files support 1.0
Component: net.sf.basedb.xfiles Keywords:
Cc:

Description (last modified by Nicklas Nordborg)

A file item could register an external URL like:

sftp://my.file.server/path/to/file.txt

The file item must be connected to a FileServer item which contains connection parameters. A host, username, password and SSH fingerprint is required. A root path is recommended to prevent access to sensitive files. The connection manager uses SSH to connect to the server and a download the file.

Change History (7)

comment:1 by Nicklas Nordborg, 11 years ago

Description: modified (diff)
Summary: Create package for supporting external files via SCPCreate package for supporting external files via SFTP

comment:2 by Nicklas Nordborg, 11 years ago

Component: not classifiednet.sf.basedb.xfiles
Milestone: A wish listExternal files support 1.0
Owner: changed from Jari Häkkinen to Nicklas Nordborg
Type: Requesttask

comment:3 by Nicklas Nordborg, 11 years ago

(In [2518]) References #611: Create package for supporting external files via SFTP

Should work now.

comment:4 by Nicklas Nordborg, 11 years ago

(In [2519]) References #611: Create package for supporting external files via SFTP

Throw IOException with a descriptive message instead of NullPointerException when a sftp:// URL is not linked with a file server.

comment:5 by Nicklas Nordborg, 11 years ago

(In [2520]) References #611: Create package for supporting external files via SFTP

Wrap remote stream in a BufferedInputStream for increased performance. Without the buffer a typical download speed was 0.5MB/s. With the buffer it went up to 10MB/s.

comment:6 by Nicklas Nordborg, 11 years ago

(In [2522]) References #611: Create package for supporting external files via SFTP

Implement support for ResumableConnectionManager.

comment:7 by Nicklas Nordborg, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.