Commit graph

15 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
517ec5bc0b feat (local): translation of common server side errors 2020-05-26 16:20:14 +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
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
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
=
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
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
f87fddbb32 feature (share): reflect different share params on UI and fix share viewpage 2018-11-02 04:42:01 +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
35178ee70e feature (S3): integrate S3 encryption mechanism - #90 2018-08-01 21:02:29 +10:00
Mickael Kerjean
04c97e34fb migration: migrate NodeJS code base to Golang 2018-07-30 13:34:44 +10:00