349 Commits

Author SHA1 Message Date
Johannes Boyne
92d5d4af5f Increase go version to latest stable version 1.16 2021-06-08 07:41:00 +02:00
Johannes Boyne
4b6b67a85d Merge pull request #55 from igungor/etcd-bolt
backend/s3bolt: use "go.etcd.io/bbolt"
2021-04-15 08:22:30 +02:00
İbrahim Güngör
5184da2773 backend/s3bolt: use "go.etcd.io/bbolt"
Fixes #54
2021-04-14 13:13:09 +03:00
Johannes Boyne
e7b94d0581 Merge pull request #53 from ilkinulas/encode_src_key
unescape 'X-Amz-Copy-Source' value before using
2021-04-13 06:36:27 +02:00
ilkin Balkanay
47d9605c00 add tests for encoding errors 2021-04-11 10:45:30 +03:00
ilkin Balkanay
71c0e12953 unescape 'X-Amz-Copy-Source' value before using 2021-04-11 10:06:05 +03:00
Johannes Boyne
02ffa763be Merge pull request #52 from tasdomas/multipart-upload-quotes-fix
Remove etag quotes when completing a multipart upload.
2021-02-17 23:35:59 +01:00
Domas Monkus
a2f65c5d3a Remove etag quotes when completing a multipart upload.
The minio s3 client fails when completing a multipart upload. The check on gofakes3.go:502 fails, since
the etag in the xml document is not quoted and the etag from the header is.
2021-02-17 14:22:33 +02:00
Johannes Boyne
ecdfbfd192 Merge pull request #50 from leoleoasd/suport-chunked-upload
Support for chunk upload signatures
2021-02-04 13:20:15 +01:00
Leo Lu
00574ae413 Add more tests for chunked upload reader. 2021-02-04 19:17:41 +08:00
Leo Lu
35da524b91 Add tests for chunked upload reader. 2021-02-04 18:54:53 +08:00
Leo Lu
abef9ae90e Support for chunk upload signatures 2021-02-03 23:51:29 +08:00
Johannes Boyne
901cf567bf Merge pull request #48 from jrhy/master
move requestID to guarantee 64-bit alignment to fix panic on 32-bit a…
2021-01-24 09:03:49 +01:00
jrhy
642685bb71 move requestID to guarantee 64-bit alignment to fix panic on 32-bit architectures 2021-01-23 13:10:13 -08:00
Johannes Boyne
e8b5dbd081 Updated README 2021-01-16 22:22:02 +01:00
Johannes Boyne
6b2b4cb092 Merge pull request #46 from cure/master
Bugfix: do not overwrite the Last-Modified value with the current time
2020-07-16 08:06:23 +02:00
Ward Vandewege
ee074e486c Bugfix: do not overwrite the Last-Modified value with the current time
in GET and HEAD calls, use the stored value instead.
2020-07-14 17:09:31 -04:00
Johannes Boyne
e89baa38ac Change contributor section in README 2020-06-05 10:23:14 +02:00
Johannes Boyne
831c8e3945 Merge pull request #45 from ikozinov/bucket-location-constraint
Add get bucket location
2020-06-05 10:20:16 +02:00
Igor V. Kozinov
08c0534b0c Add bucket location constraint 2020-06-02 17:04:37 +06:00
Johannes Boyne
02d71f533b Merge pull request #44 from PlanitarInc/support-copy-object
Support CopyObject operation
2020-05-10 11:09:07 +02:00
Johannes Boyne
a6a9cf8c8f Merge pull request #43 from PlanitarInc/support-multipart-uploads
Support multipart uploads from browser
2020-05-10 11:06:12 +02:00
korya
5439847006 Support CopyObject operation 2020-05-10 00:59:42 -04:00
korya
78ab1a9809 Support multipart uploads from browser 2020-05-08 09:22:31 -04:00
Johannes Boyne
de0855a40b Merge pull request #42 from shabbyrobe/fix/zero-length-upload
PutObject support for zero-length files
2020-02-18 16:24:59 +01:00
Blake Williams
2cf36ff75d Attempt to cover Content-Length lines 2020-02-17 17:58:13 +11:00
Blake Williams
104a1b11c9 PutObject support for zero-length files
Fixes #41
2020-02-17 17:21:55 +11:00
Johannes Boyne
9aee1c78a2 Merge pull request #39 from mars4myshare/fix-show-istruncated-when-false
Fix: removed omit tag for IsTruncated
2019-12-28 17:12:23 +01:00
mars4myshare
0737d882e4 Fix: removed omit tag for IsTruncated
IsTruncated indicates whether Amazon S3 returned all of the results.
It should not be omited when its value is false
2019-12-26 16:34:17 +08:00
Johannes Boyne
e238f04965 Merge pull request #38 from shabbyrobe/fix/fs
Fix MultiBucket CreateBucket
2019-10-29 19:57:51 +01:00
shabbyrobe
1ca160b933 Turns out we do care if this mkdir fails! 2019-10-24 15:38:04 +11:00
shabbyrobe
e6c4e1e6fb Fix MultiBucket CreateBucket 2019-10-24 15:31:39 +11:00
Johannes Boyne
96fabbd7f6 Update README for an easier start with gofakes3 2019-09-01 14:49:54 +02:00
Johannes Boyne
77fad8bf97 Merge pull request #37 from jwoffindin/master
Incorrect range handling for some edge cases
2019-08-27 17:10:47 +02:00
John Woffindin
d11e83aaf8 Incorrect range handling for some edge cases
Why:

Incorrect range handling cases causes s3manager downloads to fail.

* When end extends beyond available data it should return data from
  "start" to the end of the available data. Currently it returns
  invalid range error.

  From RFC-7233:

  > If the last-byte-pos value is.. greater than or equal to the current
  > length of the representation data, the byte range is interpreted as
  > the remainder of the representation (i.e., the server replaces the
  > value of last-byte-pos with a value that is one less than the current
  > length of the selected representation).

* A "-0" suffix byte range is "not satisfiable" according to RFC and
  should return an invalid range error. Currently it just returns an
  empty data set.

  Also from RFC-7233:

  > If a valid byte-range-set includes ... or at least one
  > suffix-byte-range-spec with a non-zero suffix-length, then the
  > byte-range-set is satisfiable.  Otherwise, the byte-range-set is
  > unsatisfiable.
2019-07-29 11:11:24 +12:00
Johannes Boyne
d419e1bd28 Merge pull request #31 from shabbyrobe/fix/cors-headers
Add missing CORS headers
2019-04-12 10:45:13 +02:00
shabbyrobe
545ac725ff Add missing CORS headers 2019-04-10 15:20:28 +10:00
Johannes Boyne
292602e2e8 Merge pull request #30 from shabbyrobe/feature/list-bucket-page
Pagination for list bucket
2019-03-17 20:01:33 +01:00
shabbyrobe
efe8c17100 Replace "clever" clamping in Range header handling with proper error 2019-03-11 22:45:32 +11:00
shabbyrobe
d577d33c28 Fix unsatisfiable range error 2019-03-11 22:31:54 +11:00
shabbyrobe
b740ed781e Marker should be empty, not missing, according to s3tests 2019-03-11 22:31:38 +11:00
shabbyrobe
f4523c0e28 Accidentally disabled pagination for s3mem 2019-03-11 22:31:19 +11:00
shabbyrobe
3ffb1c661b Handle 'null' version ID input 2019-03-11 22:30:37 +11:00
shabbyrobe
ead3e06c9d Move PutObject body read outside lock 2019-03-11 22:30:25 +11:00
shabbyrobe
5f66bb9c23 Return correct error from parseClampedInt 2019-03-11 22:29:28 +11:00
shabbyrobe
58cef789f3 Fix missing file close in afero backend 2019-03-11 22:28:57 +11:00
shabbyrobe
6f780a3897 Post-rebase cleanups 2019-03-11 12:30:01 +11:00
shabbyrobe
7178205a16 Fix uploader ETag 2019-03-11 12:26:35 +11:00
shabbyrobe
931d5b1e96 List page prefix/delim test 2019-03-11 12:26:35 +11:00
shabbyrobe
3700a6c6fe Add prefix test 2019-03-11 12:26:35 +11:00