Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for errMalformedXML (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. cmd/bucket-handlers.go

    	// Return Malformed XML as S3 spec if the number of objects is empty
    	if len(deleteObjectsReq.Objects) == 0 || len(deleteObjectsReq.Objects) > maxDeleteList {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedXML), r.URL)
    		return
    	}
    
    	objectsToDelete := map[ObjectToDelete]int{}
    	getObjectInfoFn := objectAPI.GetObjectInfo
    
    	var (
    		hasLockEnabled bool
    		dsc            ReplicateDecision
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	// validate the request
    	if err := rreq.validate(ctx, objectAPI); err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  6. cmd/auth-handler.go

    		payload, err := io.ReadAll(io.LimitReader(r.Body, maxLocationConstraintSize))
    		if err != nil {
    			authZLogIf(ctx, err, logger.ErrorKind)
    			return ErrMalformedXML
    		}
    
    		// Populate payload to extract location constraint.
    		r.Body = io.NopCloser(bytes.NewReader(payload))
    		region, s3Err = parseLocationConstraint(r)
    		if s3Err != ErrNone {
    			return s3Err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    		// Should return ErrMalformedXML in the response body.
    		{
    			bucket:    bucketName,
    			object:    objectName,
    			uploadID:  uploadIDs[0],
    			parts:     []CompletePart{},
    			accessKey: credentials.AccessKey,
    			secretKey: credentials.SecretKey,
    
    			expectedContent: encodeResponse(getAPIErrorResponse(ctx,
    				getAPIError(ErrMalformedXML),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top