diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2025-11-05 15:05:34 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2025-11-05 15:05:34 +0500 |
| commit | a88eab0b9719540116fb0bca38900e7fe7d36fd9 (patch) | |
| tree | 411c742386c456b3ca48f94164b12d67fec2e00b | |
| parent | c18004f9f699014a25f0d9e0dc1c9802f03e6040 (diff) | |
| download | seaweedfs-a88eab0b9719540116fb0bca38900e7fe7d36fd9.tar.xz seaweedfs-a88eab0b9719540116fb0bca38900e7fe7d36fd9.zip | |
revert expiration tests
| -rw-r--r-- | .github/workflows/s3tests.yml | 5 | ||||
| -rw-r--r-- | weed/server/filer_server_handlers_write.go | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/s3tests.yml b/.github/workflows/s3tests.yml index 77b70426f..74c1d4610 100644 --- a/.github/workflows/s3tests.yml +++ b/.github/workflows/s3tests.yml @@ -1126,10 +1126,7 @@ jobs: s3tests/functional/test_s3.py::test_copy_object_ifnonematch_good \ s3tests/functional/test_s3.py::test_lifecycle_set \ s3tests/functional/test_s3.py::test_lifecycle_get \ - s3tests/functional/test_s3.py::test_lifecycle_set_filter \ - s3tests/functional/test_s3.py::test_lifecycle_expiration \ - s3tests/functional/test_s3.py::test_lifecyclev2_expiration \ - s3tests/functional/test_s3.py::test_lifecycle_expiration_versioning_enabled + s3tests/functional/test_s3.py::test_lifecycle_set_filter kill -9 $pid || true # Clean up data directory rm -rf "$WEED_DATA_DIR" || true diff --git a/weed/server/filer_server_handlers_write.go b/weed/server/filer_server_handlers_write.go index 6888a9b50..4f1ca05be 100644 --- a/weed/server/filer_server_handlers_write.go +++ b/weed/server/filer_server_handlers_write.go @@ -77,6 +77,7 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request, conte if finalDestination := r.Header.Get(s3_constants.SeaweedStorageDestinationHeader); finalDestination != "" { destination = finalDestination } + query := r.URL.Query() so, err := fs.detectStorageOption0(ctx, destination, query.Get("collection"), @@ -98,6 +99,7 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request, conte } return } + if util.FullPath(r.URL.Path).IsLongerFileName(so.MaxFileNameLength) { glog.V(1).InfolnCtx(ctx, "post", r.RequestURI, ": ", "entry name too long") w.WriteHeader(http.StatusRequestURITooLong) |
