Upstream versity/versitygw state of the touched files before 535e4bbfc7

This commit is contained in:
upstream committed 2026-10-05 09:47:50 +02:00
1 parent 2f2ed7ae25
commit 47b43ba5ea
2 files changed
-31

No files matched your search

-21
View File
@@ -342,27 +342,6 @@ func RouterObjectTorrentMethodNotAllowed(s *S3Conf) error {
})
}
func RouterInvalidURLEscape(s *S3Conf) error {
testName := "RouterInvalidURLEscape"
return actionHandlerNoSetup(s, testName, func(s3client *s3.Client, bucket string) error {
req, err := http.NewRequest(http.MethodGet, s.endpoint+"/bucket/object", nil)
if err != nil {
return err
}
// http.NewRequest refuses a malformed escape, so the raw path
// is set on the url directly
req.URL.Opaque = "/bucket/(*&^%&())"
resp, err := s.httpClient.Do(req)
if err != nil {
return err
}
return checkHTTPResponseApiErr(resp, s3err.GetAPIError(s3err.ErrInvalidURI))
})
}
// CORS middleware tests
func CORSMiddleware_invalid_method(s *S3Conf) error {
testName := "CORSMiddleware_invalid_method"