{"record":{"id":"c57f49b26883064e","repo":"rancher/rancher","slug":"missing-attribute-name-after-schema-urn-prefix","errorCode":null,"errorMessage":"missing attribute name after schema URN prefix","messagePattern":"missing attribute name after schema URN prefix","errorType":"validation","errorClass":null,"httpStatus":400,"severity":"error","filePath":"pkg/auth/providers/scim/filter.go","lineNumber":272,"sourceCode":"var knownResourceSchemaURNs = map[string]string{\n\tuserSchemaID:  userResource,\n\tgroupSchemaID: groupResource,\n}\n\n// stripSchemaURN removes a recognized schema URN prefix from an attribute path\n// per RFC 7644 section 3.10. If path has no URN prefix, it is returned unchanged.\n// If expectedResourceType is non-empty, the URN's resource type must match it.\nfunc stripSchemaURN(path, expectedResourceType string) (string, string, error) {\n\tif !strings.HasPrefix(path, \"urn:\") {\n\t\treturn path, \"\", nil\n\t}\n\n\tfor urn, resourceType := range knownResourceSchemaURNs {\n\t\tprefix := urn + \":\"\n\t\tif strings.HasPrefix(path, prefix) {\n\t\t\tattrPath := path[len(prefix):]\n\t\t\tif attrPath == \"\" {\n\t\t\t\treturn \"\", \"\", fmt.Errorf(\"missing attribute name after schema URN prefix\")\n\t\t\t}\n\t\t\tif expectedResourceType != \"\" && !strings.EqualFold(resourceType, expectedResourceType) {\n\t\t\t\treturn \"\", \"\", fmt.Errorf(\"schema URN %q does not match resource type %q\", urn, expectedResourceType)\n\t\t\t}\n\t\t\treturn attrPath, resourceType, nil\n\t\t}\n\t}\n\n\treturn \"\", \"\", fmt.Errorf(\"unrecognized schema URN prefix in attribute path %q\", path)\n}\n\n// isValidAttributeName checks if the attribute name is valid per SCIM spec.\n// Valid names contain letters, digits, underscores, and dots (for nested attributes).\n// Must start with a letter or underscore.\nfunc isValidAttributeName(name string) bool {\n\tif name == \"\" {\n\t\treturn false\n\t}","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/rancher/rancher/blob/932558d4e68565aff2d2f36e89ec4a391b06e7c5/pkg/auth/providers/scim/filter.go#L254-L290","documentation":"Error \"missing attribute name after schema URN prefix\" thrown in rancher/rancher.","triggerScenarios":"Thrown at pkg/auth/providers/scim/filter.go:272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"932558d4e68565aff2d2f36e89ec4a391b06e7c5","analyzedAt":"2026-08-16T04:37:02.125Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}