{"record":{"id":"96d22eedb6d71a27","repo":"puppetlabs/puppet","slug":"can-not-use-generators-with-in-them","errorCode":null,"errorMessage":"Can not use generators with '..' in them.","messagePattern":"Can not use generators with '\\.\\.' in them\\.","errorType":"exception","errorClass":"Puppet::ParseError","httpStatus":null,"severity":"error","filePath":"lib/puppet/parser/functions/generate.rb","lineNumber":30,"sourceCode":"    never be entirely safe. No subshell is used to execute\n    generators, so all shell metacharacters are passed directly to\n    the generator, and all metacharacters are returned by the function.\n    Consider cleaning white space from any string generated.\") do |args|\n  # TRANSLATORS \"fully qualified\" refers to a fully qualified file system path\n  raise Puppet::ParseError, _(\"Generators must be fully qualified\") unless Puppet::Util.absolute_path?(args[0])\n\n  if Puppet::Util::Platform.windows?\n    valid = args[0] =~ %r{^[a-z]:(?:[/\\\\][-.~\\w]+)+$}i\n  else\n    valid = args[0] =~ %r{^[-/\\w.+]+$}\n  end\n\n  unless valid\n    raise Puppet::ParseError, _(\"Generators can only contain alphanumerics, file separators, and dashes\")\n  end\n\n  if args[0] =~ /\\.\\./\n    raise Puppet::ParseError, _(\"Can not use generators with '..' in them.\")\n  end\n\n  begin\n    dir = File.dirname(args[0])\n    Puppet::Util::Execution.execute(args, failonfail: true, combine: true, cwd: dir).to_str\n  rescue Puppet::ExecutionFailure => detail\n    raise Puppet::ParseError, _(\"Failed to execute generator %{generator}: %{detail}\") % { generator: args[0], detail: detail }, detail.backtrace\n  end\nend\n","sourceCodeStart":12,"sourceCodeEnd":40,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/parser/functions/generate.rb#L12-L40","documentation":"Error \"Can not use generators with '..' in them.\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/parser/functions/generate.rb:30 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"}