Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 132 for MISSING (0.16 sec)

  1. src/archive/zip/zip_test.go

    		Name:   filename,
    		Method: Deflate,
    		Extra:  []byte(ts.Format(time.RFC3339Nano)), // missing tag and len, but Extra is best-effort parsing
    	}
    	h.SetModTime(ts)
    
    	testValidHeader(&h, t)
    }
    
    func TestHeaderTooShort(t *testing.T) {
    	h := FileHeader{
    		Name:   "foo.txt",
    		Method: Deflate,
    		Extra:  []byte{zip64ExtraID}, // missing size and second half of tag, but Extra is best-effort parsing
    	}
    	testValidHeader(&h, t)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	fi, err := Lstat(s.formatFile)
    	if err != nil {
    		// If the disk is still not initialized.
    		if osIsNotExist(err) {
    			if err = Access(s.drivePath); err == nil {
    				// Disk is present but missing `format.json`
    				return nil, errUnformattedDisk
    			}
    			if osIsNotExist(err) {
    				return nil, errDiskNotFound
    			} else if osIsPermission(err) {
    				return nil, errDiskAccessDenied
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/signature-v4-parser_test.go

    		},
    		// Test case - 3.
    		// missing "X-Amz-Credential" in the query param.
    		{
    			inputQueryKeyVals: []string{
    				"X-Amz-Algorithm", "",
    				"X-Amz-Signature", "",
    				"X-Amz-Date", "",
    				"X-Amz-SignedHeaders", "",
    				"X-Amz-Expires", "",
    			},
    			expectedErrCode: ErrInvalidQueryParams,
    		},
    		// Test case - 4.
    		// missing "X-Amz-Signature" in the query param.
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    func generateTLSCertKey(host string) ([]byte, []byte, error) {
    	validFor := 365 * 24 * time.Hour
    	rsaBits := 2048
    
    	if len(host) == 0 {
    		return nil, nil, fmt.Errorf("Missing host parameter")
    	}
    
    	publicKey := func(priv interface{}) interface{} {
    		switch k := priv.(type) {
    		case *rsa.PrivateKey:
    			return &k.PublicKey
    		case *ecdsa.PrivateKey:
    			return &k.PublicKey
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  5. cmd/postpolicyform_test.go

    	"fmt"
    	"net/http"
    	"strings"
    	"testing"
    
    	minio "github.com/minio/minio-go/v7"
    )
    
    func TestParsePostPolicyForm(t *testing.T) {
    	testCases := []struct {
    		policy  string
    		success bool
    	}{
    		// missing expiration, will fail.
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  6. cmd/erasure-healing.go

    	for _, m := range metaArr {
    		if m.IsValid() {
    			validMeta = m
    			break
    		}
    	}
    
    	if !validMeta.IsValid() {
    		// validMeta is invalid because all xl.meta is missing apparently
    		// we should figure out if dataDirs are also missing > dataBlocks.
    		dataBlocks := (len(dataErrs) + 1) / 2
    		if notFoundPartsErrs > dataBlocks {
    			// Not using parity to ensure that we do not delete
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    			default:
    				in.Error("bad definition for macro:", name)
    			}
    		}
    	}
    	var tokens []Token
    	// Scan to newline. Backslashes escape newlines.
    	for tok != '\n' {
    		if tok == scanner.EOF {
    			in.Error("missing newline in definition for macro:", name)
    		}
    		if tok == '\\' {
    			tok = in.Stack.Next()
    			if tok != '\n' && tok != '\\' {
    				in.Error(`can only escape \ or \n in definition for macro:`, name)
    			}
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate_test.go

    		},
    		{
    			name:  "invalid pilot configuration v1beta1",
    			in:    invalidVirtualServiceV1Beta1,
    			valid: false,
    		},
    		{
    			name:  "port name missing service",
    			in:    portNameMissingSvc,
    			valid: false,
    		},
    		{
    			name:  "version label missing deployment",
    			in:    versionLabelMissingDeployment,
    			valid: true,
    		},
    		{
    			name:  "valid port naming service",
    			in:    validPortNamingSvc,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  9. cmd/erasure-object_test.go

    	buf := make([]byte, smallFileThreshold*16)
    	if _, err = io.ReadFull(crand.Reader, buf); err != nil {
    		t.Fatal(err)
    	}
    
    	// Test use case 1: All disks are online, xl.meta are present, but data are missing
    	_, err = obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader(buf), int64(len(buf)), "", ""), opts)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, disk := range xl.getDisks() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  10. cmd/ftp-server.go

    	{
    		if tlsPrivateKey == "" && tlsPublicCert != "" {
    			logger.Fatal(fmt.Errorf("invalid TLS arguments provided missing private key --ftp=\"tls-private-key=path/to/private.key\""), "unable to start FTP server")
    		}
    
    		if tlsPrivateKey != "" && tlsPublicCert == "" {
    			logger.Fatal(fmt.Errorf("invalid TLS arguments provided missing public cert --ftp=\"tls-public-cert=path/to/public.crt\""), "unable to start FTP server")
    		}
    		if port == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 4.8K bytes
    - Viewed (2)
Back to top