Commit graph

95 commits

Author SHA1 Message Date
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
Mickael Kerjean
f5f0f30cea improve (config): listen for config changes for reactive configuration 2019-05-22 14:28:31 +10:00
Mickael Kerjean
836a74ab7d improve (search): user experience around the search 2019-05-21 17:13:21 +10:00
Mickael Kerjean
810f84c3e3 fix (concurrency): improve concurrent aspect of the search resource 2019-05-17 02:59:22 +10:00
Mickael Kerjean
b54663016c improve (webdav): handle user restriction and password on the webdav server 2019-05-08 11:30:23 +10:00
=
cebb28d093 improve (search): index form content 2019-04-18 14:15:20 +10:00
=
81d224f9e8 fix (path): default path when logging in - #151 2019-04-17 16:32:50 +10:00
=
404c3c01ce security (backend): opt in on host key verification for the SFTP backend 2019-04-17 15:02:12 +10:00
=
3eb8811e81 improve (log): cleanup log messages 2019-04-15 15:41:45 +10:00
=
8794e4c3bb improve (log): relevant log messages 2019-04-15 12:34:36 +10:00
=
3553af94f6 feature (search): new dependency for pdf transcoding: pdftotext 2019-04-12 12:35:00 +10:00
=
801760838c feature (seach): index content subject to search 2019-04-12 02:37:31 +10:00
=
4370dfb8c7 feature (search): cleanup 2019-04-05 17:08:12 +11:00
=
4ba5a7c346 feature (search): content indexing: pdf, docx, txt, pptx, org 2019-04-04 19:34:24 +11: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
=
48d997066c feature (search): search result, filter out some results from the search 2019-04-03 18:14:35 +11:00
Mickael
0127fa2c02
feature (search): search feature 2019-04-02 19:48:50 +11:00
Mickael KERJEAN
ce2f3cfc2b feature (webdav): build webdav server from shared link 2019-03-25 22:08:45 +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
2a7d1131b9 fix (shared): fix bug that wouldn't let the user create shared link when the path params is set 2019-02-25 18:44:51 +11:00
Mickael KERJEAN
c9c3a9f5e2 fix (concurrency): fix concurrency problem 2019-02-25 18:26:45 +11:00
Mickael KERJEAN
d7339ca886 cleanup (release): pre release cleanup 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
c3d34e6f87 feature (webdav): shared links as webdav server 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
ec6eb0e8fa improve (crypto): derivate secret_key for each usage to reduce attack surface in the worst case scenario 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
c61f528e24 fix (share): fix edge cases around the path and start migrate tests 2019-01-28 01:09:45 +11:00
Mickael KERJEAN
43f00e12d6 feature (orgmode): use emacs to export org documents 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
83de5ad620 fix (build): broken build 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
bef1716a18 test (fix): broken tests 2018-11-23 17:00:31 +11:00
Mickael KERJEAN
b0f4310d7d fix (home): user would redirect to the homepath without considering the path in the config 2018-11-21 19:32:24 +11:00