{"id":"f684e3f7934bc3a7","repo":"docker/cli","slug":"s-w-f684e3","errorCode":null,"errorMessage":"%s: %w","messagePattern":"(.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/context/store/store.go","lineNumber":403,"sourceCode":"\ttr := tar.NewReader(&limitedReader{R: reader, N: maxAllowedFileSizeToImport})\n\ttlsData := ContextTLSData{\n\t\tEndpoints: map[string]EndpointTLSData{},\n\t}\n\tvar importedMetaFile bool\n\tfor {\n\t\thdr, err := tr.Next()\n\t\tif err == io.EOF {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif hdr.Typeflag != tar.TypeReg {\n\t\t\t// skip this entry, only taking files into account\n\t\t\tcontinue\n\t\t}\n\t\tif err := isValidFilePath(hdr.Name); err != nil {\n\t\t\treturn fmt.Errorf(\"%s: %w\", hdr.Name, err)\n\t\t}\n\t\tif hdr.Name == metaFile {\n\t\t\tdata, err := io.ReadAll(tr)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tmeta, err := parseMetadata(data, name)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tif err := s.CreateOrUpdate(meta); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\timportedMetaFile = true\n\t\t} else if strings.HasPrefix(hdr.Name, \"tls/\") {\n\t\t\tdata, err := io.ReadAll(tr)\n\t\t\tif err != nil {\n\t\t\t\treturn err","sourceCodeStart":385,"sourceCodeEnd":421,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/context/store/store.go#L385-L421","documentation":"Error \"%s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/context/store/store.go:403 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}