- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for errMalformedXML (0.1 sec)
-
cmd/handler-utils_test.go
// Test case - 3 // In case of garbage request body ErrMalformedXML is returned. {badRequest, globalMinioDefaultRegion, ErrMalformedXML}, // Test case - 4 // In case of invalid XML request body ErrMalformedXML is returned. {malformedReq, globalMinioDefaultRegion, ErrMalformedXML}, } for i, testCase := range testCases {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 6.1K bytes - Viewed (0) -
internal/bucket/object/lock/lock.go
ErrObjectLockInvalidHeaders = errors.New("x-amz-object-lock-retain-until-date and x-amz-object-lock-mode must both be supplied") // ErrMalformedXML - generic error indicating malformed XML ErrMalformedXML = errors.New("the XML you provided was not well-formed or did not validate against our published schema") ) const ( ntpServerEnv = "MINIO_NTP_SERVER" )
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0) -
internal/s3select/select.go
}, } // UnmarshalXML - decodes XML data. func (c *CompressionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { var s string if err := d.DecodeElement(&s, &start); err != nil { return errMalformedXML(err) } parsedType := CompressionType(strings.ToUpper(s)) if s == "" || parsedType == "NONE" { parsedType = noneType } switch parsedType {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 21.2K bytes - Viewed (0) -
cmd/bucket-encryption-handlers.go
if err != nil { apiErr := APIError{ Code: "MalformedXML", Description: fmt.Sprintf("%s (%s)", errorCodes[ErrMalformedXML].Description, err), HTTPStatusCode: errorCodes[ErrMalformedXML].HTTPStatusCode, } writeErrorResponse(ctx, w, apiErr, r.URL) return } // Return error if KMS is not initialized if GlobalKMS == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.4K bytes - Viewed (0) -
cmd/admin-bucket-handlers.go
rpt.SetStatus(bucket, fileName, err) continue } config, err := objectlock.ParseObjectLockConfig(reader) if err != nil { rpt.SetStatus(bucket, fileName, fmt.Errorf("%s (%s)", errorCodes[ErrMalformedXML].Description, err)) continue } configData, err := xml.Marshal(config) if err != nil { rpt.SetStatus(bucket, fileName, err) continue }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 28 15:32:18 UTC 2024 - 33.2K bytes - Viewed (0) -
cmd/bucket-notification-handlers.go
return } config, err := event.ParseConfig(io.LimitReader(r.Body, r.ContentLength), globalSite.Region(), globalEventNotifier.targetList) if err != nil { apiErr := errorCodes.ToAPIErr(ErrMalformedXML) if event.IsEventError(err) { apiErr = toAPIError(ctx, err) } writeErrorResponse(ctx, w, apiErr, r.URL) return } configData, err := xml.Marshal(config) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.1K bytes - Viewed (0) -
cmd/apierrorcode_string.go
_ = x[ErrInvalidRequestBody-23] _ = x[ErrInvalidCopySource-24] _ = x[ErrInvalidMetadataDirective-25] _ = x[ErrInvalidCopyDest-26] _ = x[ErrInvalidPolicyDocument-27] _ = x[ErrInvalidObjectState-28] _ = x[ErrMalformedXML-29] _ = x[ErrMissingContentLength-30] _ = x[ErrMissingContentMD5-31] _ = x[ErrMissingRequestBodyError-32] _ = x[ErrMissingSecurityHeader-33] _ = x[ErrNoSuchBucket-34] _ = x[ErrNoSuchBucketPolicy-35]
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 21.4K bytes - Viewed (0) -
internal/bucket/object/lock/lock_test.go
expectedErr error expectErr bool }{ { value: `<?xml version="1.0" encoding="UTF-8"?><LegalHold xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Status>string</Status></LegalHold>`, expectedErr: ErrMalformedXML, expectErr: true, }, { value: `<?xml version="1.0" encoding="UTF-8"?><LegalHold xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Status>ON</Status></LegalHold>`, expectedErr: nil,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0) -
cmd/acl-handlers.go
acl := &accessControlPolicy{} if err = xmlDecoder(r.Body, acl, r.ContentLength); err != nil { if terr, ok := err.(*xml.SyntaxError); ok && terr.Msg == io.EOF.Error() { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedXML), r.URL) return } writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } if len(acl.AccessControlList.Grants) == 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.4K bytes - Viewed (0) -
cmd/api-errors.go
case objectlock.ErrUnknownWORMModeDirective: apiErr = ErrUnknownWORMModeDirective case objectlock.ErrObjectLockInvalidHeaders: apiErr = ErrObjectLockInvalidHeaders case objectlock.ErrMalformedXML: apiErr = ErrMalformedXML case errInvalidMaxParts: apiErr = ErrInvalidMaxParts case ioutil.ErrOverread: apiErr = ErrExcessData case errServerNotInitialized: apiErr = ErrServerNotInitialized
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 01 22:13:18 UTC 2024 - 92.1K bytes - Viewed (0)