{"record":{"id":"297b7952ff68327c","repo":"puppetlabs/puppet","slug":"failed-to-set-group-to-should-detail-297b79","errorCode":null,"errorMessage":"Failed to set group to '%{should}': %{detail}","messagePattern":"Failed to set group to '%(.+?)': %(.+?)","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/provider/file/windows.rb","lineNumber":60,"sourceCode":"    get_owner(resource[:path])\n  end\n\n  def owner=(should)\n    set_owner(should, resolved_path)\n  rescue => detail\n    raise Puppet::Error, _(\"Failed to set owner to '%{should}': %{detail}\") % { should: should, detail: detail }, detail.backtrace\n  end\n\n  def group\n    return :absent unless resource.stat\n\n    get_group(resource[:path])\n  end\n\n  def group=(should)\n    set_group(should, resolved_path)\n  rescue => detail\n    raise Puppet::Error, _(\"Failed to set group to '%{should}': %{detail}\") % { should: should, detail: detail }, detail.backtrace\n  end\n\n  def mode\n    if resource.stat\n      mode = get_mode(resource[:path])\n      mode ? mode.to_s(8).rjust(4, '0') : :absent\n    else\n      :absent\n    end\n  end\n\n  def mode=(value)\n    managing_owner = !resource[:owner].nil?\n    managing_group = !resource[:group].nil?\n    set_mode(value.to_i(8), resource[:path], true, managing_owner, managing_group)\n  rescue => detail\n    error = Puppet::Error.new(_(\"failed to set mode %{mode} on %{path}: %{message}\") % { mode: mode, path: resource[:path], message: detail.message })\n    error.set_backtrace detail.backtrace","sourceCodeStart":42,"sourceCodeEnd":78,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/provider/file/windows.rb#L42-L78","documentation":"Error \"Failed to set group to '%{should}': %{detail}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/provider/file/windows.rb:60 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"}