{"record":{"id":"28da5b03d5da2d5d","repo":"puppetlabs/puppet","slug":"error-loading-ssl-custom-oids-mapping-file-from-28da5b","errorCode":null,"errorMessage":"Error loading ssl custom OIDs mapping file from '%{custom_oid_file}': incomplete definition of oid '%{oid}'","messagePattern":"Error loading ssl custom OIDs mapping file from '%(.+?)': incomplete definition of oid '%(.+?)'","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/ssl/oids.rb","lineNumber":130,"sourceCode":"      begin\n        mapping = Puppet::Util::Yaml.safe_load_file(custom_oid_file, [Symbol])\n      rescue => err\n        raise Puppet::Error, _(\"Error loading ssl custom OIDs mapping file from '%{custom_oid_file}': %{err}\") % { custom_oid_file: custom_oid_file, err: err }, err.backtrace\n      end\n\n      unless mapping.has_key?(map_key)\n        raise Puppet::Error, _(\"Error loading ssl custom OIDs mapping file from '%{custom_oid_file}': no such index '%{map_key}'\") % { custom_oid_file: custom_oid_file, map_key: map_key }\n      end\n\n      unless mapping[map_key].is_a?(Hash)\n        raise Puppet::Error, _(\"Error loading ssl custom OIDs mapping file from '%{custom_oid_file}': data under index '%{map_key}' must be a Hash\") % { custom_oid_file: custom_oid_file, map_key: map_key }\n      end\n\n      oid_defns = []\n      mapping[map_key].keys.each do |oid|\n        shortname, longname = mapping[map_key][oid].values_at(\"shortname\", \"longname\")\n        if shortname.nil? || longname.nil?\n          raise Puppet::Error, _(\"Error loading ssl custom OIDs mapping file from '%{custom_oid_file}': incomplete definition of oid '%{oid}'\") % { custom_oid_file: custom_oid_file, oid: oid }\n        end\n\n        oid_defns << [oid, shortname, longname]\n      end\n\n      oid_defns\n    end\n  end\n\n  # Load custom OID mapping file that enables custom OIDs to be resolved\n  # into user-friendly names.\n  #\n  # @param custom_oid_file [String] File to obtain custom OIDs mapping from\n  # @param map_key [String] Hash key in which custom OIDs mapping is stored\n  #\n  # @example Custom OID mapping file\n  # ---\n  # oid_mapping:","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/ssl/oids.rb#L112-L148","documentation":"Error \"Error loading ssl custom OIDs mapping file from '%{custom_oid_file}': incomplete definition of oid '%{oid}'\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/ssl/oids.rb:130 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":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}