{"record":{"id":"46b410c0ffd6730c","repo":"hashicorp/vagrant","slug":"vagrant-box-add-url-warn","errorCode":null,"errorMessage":"vagrant.box_add_url_warn","messagePattern":"vagrant\\.box_add_url_warn","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/vagrant/action/builtin/box_add.rb","lineNumber":41,"sourceCode":"        METADATA_SIZE_LIMIT = 20971520\n\n        # This is the amount of time to \"resume\" downloads if a partial box\n        # file already exists.\n        RESUME_DELAY = 24 * 60 * 60\n\n        def initialize(app, env)\n          @app    = app\n          @logger = Log4r::Logger.new(\"vagrant::action::builtin::box_add\")\n          @parser = URI::RFC2396_Parser.new\n        end\n\n        def call(env)\n          @download_interrupted = false\n\n          unless env[:box_name].nil?\n            begin\n              if URI.parse(env[:box_name]).kind_of?(URI::HTTP)\n                env[:ui].warn(I18n.t(\"vagrant.box_add_url_warn\"))\n              end\n            rescue URI::InvalidURIError\n              # do nothing\n            end\n          end\n\n          url = Array(env[:box_url]).map do |u|\n            u = u.gsub(\"\\\\\", \"/\")\n            if Util::Platform.windows? && u =~ /^[a-z]:/i\n              # On Windows, we need to be careful about drive letters\n              u = \"file:///#{@parser.escape(u)}\"\n            end\n\n            if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?(\"file://\")\n              # This is not a file URL... carry on\n              next u\n            end\n","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/action/builtin/box_add.rb#L23-L59","documentation":"Error \"vagrant.box_add_url_warn\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at lib/vagrant/action/builtin/box_add.rb:41 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":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}