Commit graph

64 commits

Author SHA1 Message Date
Mickael Kerjean
d469d0e73c migrate (plugin): migrate ftp backend as a plugin 2020-12-12 00:11:10 +11:00
thielepaul
0fda2ececc
fix (sftp): use password type for sftp password and passphrase field (#324) 2020-10-23 17:54:54 +11:00
Mickael Kerjean
8f1097273e maintain (s3): migrate s3 as a plugin 2020-06-23 18:15:12 +10:00
Mickael Kerjean
851142284c fix (#279): detect private key in SFTP password 2020-06-07 12:28:23 +10:00
Mickael Kerjean
517ec5bc0b feat (local): translation of common server side errors 2020-05-26 16:20:14 +10:00
Mickael Kerjean
71156132db feature (locale): shared error code 2020-05-26 15:03:24 +10:00
Mickael Kerjean
4266f26649 fix (sftp): openssh private key format with passphrase 2020-05-24 21:41:36 +10:00
Mickael Kerjean
9f25c317ea fix (ftp): connection string for ftp:// or ftps:// 2020-05-08 16:34:56 +10:00
Mickael Kerjean
6f9dff75d9 fix (ftp): ftp url scheme 2020-04-23 17:56:55 +10:00
Mickael
4a6de76c93
Revert "fix (s3): fix remove a single object (#225)" (#227)
This reverts commit 42b5043411.
2020-02-12 11:00:16 +11:00
Mickael Kerjean
ef122a7c48 Merge branch 'master' of https://github.com/mickael-kerjean/filestash 2020-02-11 18:17:29 +11:00
Mickael Kerjean
dd57a49d9a fix (ftps): merge ftp and ftps together 2020-02-11 12:31:22 +11:00
brxie
42b5043411
fix (s3): fix remove a single object (#225)
Objects, as well as buckets are removed basing on objecs list received
from client. As the objects are fetched by Prefix, the request for
removing object 'foo' will remove all 'foo*' objects in this bucket.

For instance, having bucket with objects like so:

    awesomebucket/
    ├── foo
    ├── foobar
    └── thing

Rm("awesomebucket/foo") will have effect:

    awesomebucket/
    └── thing

This change fixes this bug by recognizing if single object has to be
removed or the entire bucket. For single object, we don't need to walk
through directories and can request to remove directly.
2020-02-08 01:11:08 +11:00
Mickael Kerjean
9f7ede0d5a fix (s3): filter out current prefix from ls results
As reported by Luke, creating a folder on S3 would show a file with the same name in that same folder
2020-02-05 01:45:37 +11:00
Mickael Kerjean
995a5f2f04 fix (webdav): handle webdav URL encoding 2019-11-07 12:34:26 +11:00
Zander Hill
56998116c3 fix (S3): incorrect ModifiedAt timestamps for S3 (#200 - #204)
The problem addressed here is that the FileInfo struct's FTime field is
set in S3 backend. This was being passed as milliseconds epoch. That
value was being passed into `time.Unix(x, 0)` which accepts arguments as
either/both (seconds, nanoseconds).

By passing milliseconds to this function expecting seconds, we have
wildly incorrect modified at timestamps.

I tested this against the same bucket that was problematic before and
it's now showing correctly :).
2019-09-29 21:56:14 +10:00
Mickael Kerjean
b0896f0373 maintenance (migrate): migrate the dropbox backend as a plugin 2019-09-02 15:49:28 +10:00
=
404c3c01ce security (backend): opt in on host key verification for the SFTP backend 2019-04-17 15:02:12 +10:00
=
e88758567d improve (API): Cat now returns a io.ReadCloser to make it obvious it has to be closed 2019-04-04 19:27:06 +11:00
Mickael KERJEAN
872a6e0cd0 fix (bug): issue in date formatting and file size using the webdav backend - #143 2019-03-18 23:08:58 +11:00
Mickael KERJEAN
c3d34e6f87 feature (webdav): shared links as webdav server 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
ce21121dce release (fix): fix issues before release 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
5eb5aebf2f fix (oauth2): dropbox and google drive login to use the host config properly 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
d0f1e59782 fix (git): fix issue while trying to connect to an empty repo 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
595eff4015 fix (git): logic that's caching different repo locally 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
a34b8b48e7 migrate (name): change project name 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
a50dbd4724 improvement (login): new backend API to generate login form in the frontend 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
ce6a228968 feature (admin): admin console 2018-12-19 18:35:09 +11:00
Mickael KERJEAN
18ad293d2e fix (sftp): fix edge case on SFTP client 2018-11-15 15:39:05 +11:00
Mickael KERJEAN
81a0f1484d improvement (incremental): error management on edge cases 2018-11-14 14:51:16 +10:00
Mickael KERJEAN
f87fddbb32 feature (share): reflect different share params on UI and fix share viewpage 2018-11-02 04:42:01 +11:00
Mickael KERJEAN
6c195b7297 feature (share): POC Share 2018-11-02 02:44:08 +11:00
Mickael KERJEAN
147bf77b77 improvement (error): improve error page and s3 messages 2018-10-26 03:24:08 +11:00
Mickael KERJEAN
ddd1b83b27 feature (plugin): API to develop plugin 2018-10-25 20:25:59 +11:00
Mickael KERJEAN
ff319c2fd7 feature (webdav): WIP 2018-10-22 14:20:28 +11:00
Mickael KERJEAN
1157015650 feature (share): WIP 2018-09-24 14:49:44 +10:00
Mickael KERJEAN
4ca7bab31b maintain (code): cleanup 2018-09-17 09:52:02 +10:00
Mickael Kerjean
61f28962f3 feature (share): share feature - WIP 2018-09-14 17:32:16 +10:00
Mickael KERJEAN
1077165e3d maintain (code): cleanup 2018-09-14 17:31:57 +10:00
Mickael Kerjean
bfacd4bcc5 feature (framework): create the basis for the development custom backends 2018-08-30 12:19:15 +10:00
Mickael Kerjean
35178ee70e feature (S3): integrate S3 encryption mechanism - #90 2018-08-01 21:02:29 +10:00
Mickael Kerjean
4d8c11ce8d feature (FTP): add a max connection parameter 2018-07-30 23:16:51 +10:00
Mickael Kerjean
04c97e34fb migration: migrate NodeJS code base to Golang 2018-07-30 13:34:44 +10:00
Mickael KERJEAN
957e81ef0b merge #69 2018-05-18 11:52:53 +10:00
Mickael KERJEAN
0677d2f03f fix (s3): autoVacuum data on the git connector - #68 2018-05-18 11:48:48 +10:00
Frédérick NGUYEN XUAN
379f151657 Fix autovacuum renamed autoVacuum 2018-05-17 11:27:38 +11:00
Mickael KERJEAN
7e30bdceb7 feature (minio): integrate support for minio in the S3 backend - #62 2018-05-14 22:34:25 +10:00
Mickael KERJEAN
dd4940a903 improvement (S3): hide secret access key by default + auth bugfix - #58 2018-05-14 18:24:51 +10:00
Mickael KERJEAN
aca6445928 fix (windows): fix issues with paths when running the server on windows - #53 2018-05-10 09:34:54 +10:00
Mickael KERJEAN
c4baa8cdea fix (server): backend stuff 2018-05-06 20:30:16 +10:00