weixin_39618824
weixin_39618824
2020-11-29 02:32

When trying to use versions, getting this error code ArgumentError at /node/version wrong number of arguments (given 0, expected 1+)

The local git repo is functioning properly (oxidized is able to write and get the config) but when the version button is used from the web UI, this error page pops up:

ArgumentError at /node/version wrong number of arguments (given 0, expected 1+) file: versions.haml location: count line: 24 BACKTRACE (expand)

JUMP TO: GET POST COOKIES ENV GET Variable Value node_full
"10.30.220.7" POST No POST data.

COOKIES No cookie data.

Rack ENV Variable Value GATEWAY_INTERFACE
CGI/1.2 HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9 HTTP_ACCEPT_ENCODING
gzip, deflate HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.9 HTTP_CONNECTION keep-alive HTTP_DNT
1 HTTP_HOST
big-blue.eh.pweh.com:8888 HTTP_REFERER
http://big-blue.eh.pweh.com:8888/nodes HTTP_UPGRADE_INSECURE_REQUESTS
1 HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36 HTTP_VERSION
HTTP/1.1 PATH_INFO
/node/version QUERY_STRING
node_full=10.30.220.7 REMOTE_ADDR 10.193.158.36 REQUEST_METHOD
GET REQUEST_PATH
/node/version REQUEST_URI /node/version?node_full=10.30.220.7 SCRIPT_NAME SERVER_NAME big-blue.eh.pweh.com SERVER_PORT 8888 SERVER_PROTOCOL HTTP/1.1 SERVER_SOFTWARE puma 3.11.4 Love Song puma.config

<:configuration:0x000055696f010b98>"0.0.0.0", :Port=>"8888", :log_requests=>false, :binds=>["tcp://0.0.0.0:8888"], :app=>#<:builder:0x000055696e9885c8>#Proc:0x000055696e9883e8@/var/lib/gems/2.5.0/gems/oxidized-web-0.13.1/lib/oxidized/web.rb:21}, =[]>, :environment=>"development"}, ={}, ={:min_threads=>0, :max_threads=>16, :log_requests=>false, :debug=>false, :binds=>["tcp://0.0.0.0:9292"], :workers=>0, :daemon=>false, :mode=>:http, :worker_timeout=>60, :worker_boot_timeout=>60, :worker_shutdown_timeout=>30, :remote_address=>:socket, :tag=>"/", :environment=>"development", :rackup=>"config.ru", :logger=>#>, :persistent_timeout=>20, :first_data_timeout=>30, :Verbose=>false, :Silent=>false}>, =#<:pluginloader:0x000055696f0109b8>, =#<:dsl:0x000055696f010968 ...>, ={:Host=>"0.0.0.0", :Port=>"8888", :log_requests=>false, :binds=>["tcp://0.0.0.0:8888"], :app=>#<:builder:0x000055696e9885c8>#Proc:0x000055696e9883e8@/var/lib/gems/2.5.0/gems/oxidized-web-0.13.1/lib/oxidized/web.rb:21}, =[]>, :environment=>"development"}, =[]>, =#<:dsl:0x000055696f010918 ...>, ={}, =[]>, =#<:dsl:0x000055696f0108c8 ...>, ={:min_threads=>0, :max_threads=>16, :log_requests=>false, :debug=>false, :binds=>["tcp://0.0.0.0:9292"], :workers=>0, :daemon=>false, :mode=>:http, :worker_timeout=>60, :worker_boot_timeout=>60, :worker_shutdown_timeout=>30, :remote_address=>:socket, :tag=>"/", :environment=>"development", :rackup=>"config.ru", :logger=>#>, :persistent_timeout=>20, :first_data_timeout=>30, :Verbose=>false, :Silent=>false}, =[]>></:dsl:0x000055696f0108c8></:dsl:0x000055696f010918></:builder:0x000055696e9885c8></:dsl:0x000055696f010968></:pluginloader:0x000055696f0109b8></:builder:0x000055696e9885c8></:configuration:0x000055696f010b98>

puma.socket

rack.after_reply
[] rack.errors

<0x000055696e994b98>0x000055696e994b98>

rack.hijack

<:client:0x3f99fe58ec24></:client:0x3f99fe58ec24>

rack.hijack?
true rack.input

<:nullio:0x000055696f06e8d8></:nullio:0x000055696f06e8d8>

rack.logger

<Rack::NullLogger:0x000055696f19b940 =#<Rack::Protection::FrameOptions:0x000055696f19bb20 =#<Rack::Protection::HttpOrigin:0x000055696f19bc10 =#<Rack::Protection::IPSpoofing:0x000055696f19bcd8 =#<Rack::Protection::JsonCsrf:0x000055696f19bda0 =#<:protection::pathtraversal:0x000055696f19be68 :versions>"", :default_encoding=>"utf-8"}, "/var/lib/gems/2.5.0/gems/oxidized-web-0.13.1/lib/oxidized/web/views"]=>#\<:hamltemplate:0x00007f33fcb12010>""}, =1, ="/var/lib/gems/2.5.0/gems/oxidized-web-0.13.1/lib/oxidized/web/views/versions.haml", ={[Oxidized::API::WebApp, []]=>#}, ="utf-8", =#<0x00007f33fcb11db8>, =".row.tbl-header\n .col-xs-12\n %h4\n %a{href: url_for('/nodes')} nodes\n \/ Versions for Node \n %span.node_title #{}\n\n.row\n .pull-right\n %form\n %button.ColVis_Button{type: 'button', onclick: 'history.go();'}\n %span.glyphicon.glyphicon-repeat Refresh\n .table-responsive\n %table.table.table-condensed.table-striped.table-hover#versionsTable\n %thead\n %tr\n %th Version\n %th Dates\n %th Author\n %th Message\n %th Actions\n\n %tbody\n - nb = .count + 1\n - .each do |x|\n %tr\n %td #{nb -= 1}\n %td #{time_from_now x[:date]}\n %td #{x[:author][:name]}\n %td #{x[:message]}\n %td\n - params = \"node=#{}&group=#{}&oid=#{x[:oid]}\"\n - params = \"#{params}&date=#{x[:date]}&num=#{nb}\"\n %a{title: 'configuration',\n href: url_for(\"/node/version/view?#{params}\")}\n %span.glyphicon.glyphicon-cloud-download\n   \n %a{title: 'diff', href: url_for(\"/node/version/diffs?#{params}\")}\n %img{src: url_for('/images/diff_15x17.png')}\n\n:javascript\n $(function() {\n $('#versionsTable').dataTable({\n dom: 'C<\"clear\">lfrtip',\n \"order\": [[0, \"desc\"]],\n bAutoWidth: false,\n columnDefs: [{\n visible: false,\n targets: [2, 3]\n }]\n });\n });\n", =#<:templeengine:0x00007f33fcb11bd8>"'", :autoclose=>["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], :encoding=>nil, :escape_attrs=>true, :escape_html=>false, :escape_filter_interpolations=>nil, :filename=>"/var/lib/gems/2.5.0/gems/oxidized-web-0.13.1/lib/oxidized/web/views/versions.haml", :format=>:html5, :hyphenate_data_attrs=>true, :line=>1, :mime_type=>"text/html", :preserve=>["textarea", "pre", "code"], :remove_whitespace=>false, :suppress_eval=>false, :cdata=>false, :parser_class=>Haml::Parser, :compiler_class=>Haml::Compiler, :trace=>false, :filters=>{}, :buffer=>"", :save_buffer=>true}]>, =[[:Parser, #Proc:0x000055696e5eba50@/var/lib/gems/2.5.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:89], [:Compiler, #Proc:0x000055696e5eae98@/var/lib/gems/2.5.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:89], [:"Haml::Escapable", #Proc:0x000055696e5d2618@/var/lib/gems/2.5.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76], [:ControlFlow, #Proc:0x000055696e3c1c70@/var/lib/gems/2.5.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76], [:MultiFlattener, #Proc:0x000055696e329a10@/var/lib/gems/2.5.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76], [:StaticMerger, #Proc:0x000055696e0ebaf0@/var/lib/gems/2.5.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76], [:"Haml::Generator", #Proc:0x000055696e0ea420@/var/lib/gems/2.5.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76]], =#, =[#<:parser:0x00007f33fcb11188>, =[], =0, =0, =[], =(root nil (tag {:name=>"div", :attributes=>{"class"=>"row tbl-header"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-xs-12"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h4", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"nodes"}) (plain {:text=>"/ Versions for Node"}) (tag {:name=>"span", :attributes=>{"class"=>"node_title"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{}\""})))) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"pull-right"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"form", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"button", :attributes=>{"class"=>"ColVis_Button"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"span", :attributes=>{"class"=>"glyphicon glyphicon-repeat"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Refresh"})))) (tag {:name=>"div", :attributes=>{"class"=>"table-responsive"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"table", :attributes=>{"class"=>"table table-condensed table-striped table-hover", "id"=>"versionsTable"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"thead", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"tr", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Version"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Dates"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Author"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Message"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Actions"}))) (tag {:name=>"tbody", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" nb = .count + 1", :keyword=>nil}) (silent_script {:text=>" .each do |x|", :keyword=>nil} (tag {:name=>"tr", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{nb -= 1}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{time_from_now x[:date]}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{x[:author][:name]}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{x[:message]}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" params = \"node=#{}&group=#{}&oid=#{x[:oid]}\"", :keyword=>nil}) (silent_script {:text=>" params = \"#{params}&date=#{x[:date]}&num=#{nb}\"", :keyword=>nil}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"span", :attributes=>{"class"=>"glyphicon glyphicon-cloud-download"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>""})) (plain {:text=>"  "}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"img", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}))))))))) (filter {:name=>"javascript", :text=>"$(function() {\n $('#versionsTable').dataTable({\n dom: 'C<\"clear\">lfrtip',\n \"order\": [[0, \"desc\"]],\n bAutoWidth: false,\n columnDefs: [{\n visible: false,\n targets: [2, 3]\n }]\n });\n});\n"})), =(root nil (tag {:name=>"div", :attributes=>{"class"=>"row tbl-header"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-xs-12"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h4", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"nodes"}) (plain {:text=>"/ Versions for Node"}) (tag {:name=>"span", :attributes=>{"class"=>"node_title"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{}\""})))) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"pull-right"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"form", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"button", :attributes=>{"class"=>"ColVis_Button"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"span", :attributes=>{"class"=>"glyphicon glyphicon-repeat"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Refresh"})))) (tag {:name=>"div", :attributes=>{"class"=>"table-responsive"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"table", :attributes=>{"class"=>"table table-condensed table-striped table-hover", "id"=>"versionsTable"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"thead", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"tr", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Version"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Dates"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Author"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Message"}) (tag {:name=>"th", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Actions"}))) (tag {:name=>"tbody", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" nb = .count + 1", :keyword=>nil}) (silent_script {:text=>" .each do |x|", :keyword=>nil} (tag {:name=>"tr", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{nb -= 1}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{time_from_now x[:date]}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{x[:author][:name]}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"#{x[:message]}\""}) (tag {:name=>"td", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" params = \"node=#{}&group=#{}&oid=#{x[:oid]}\"", :keyword=>nil}) (silent_script {:text=>" params = \"#{params}&date=#{x[:date]}&num=#{nb}\"", :keyword=>nil}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"span", :attributes=>{"class"=>"glyphicon glyphicon-cloud-download"}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>""})) (plain {:text=>"  "}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"img", :attributes=>{}, :dynamic_attributes=>#, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}))))))))) (filter {:name=>"javascript", :text=>"$(function() {\n $('#versionsTable').dataTable({\n dom: 'C<\"clear\">lfrtip',\n \"order\": [[0, \"desc\"]],\n bAutoWidth: false,\n columnDefs: [{\n visible: false,\n targets: [2, 3]\n }]\n });\n});\n"})), =false, =nil, =" ", =#, eod=true>, =#, eod=true>, =nil, =nil>, #<:compiler:0x00007f33fcb0bdc8>, =[], =[:multi, [:static, "\
\n"], [:static, "\
\n"], [:static, "\

\n"], [:static, "\ _haml_attribute_compiler1 }, nil)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, true, [:dynamic, "_haml_attribute_compiler1"]], [:static, "'"]]]]]], [:static, ">"], [:static, "nodes\n"], [:static, "/ Versions for Node\n"], [:static, ""], [:dynamic, "(\"#{}\"\n).to_s"], [:static, "\n"], [:static, "

\n"], [:static, "
\n"], [:static, "
\n"], [:static, "
\n"], [:static, "
\n"], [:static, "\n"], [:static, "\n"], [:static, ""], [:static, "Refresh\n"], [:static, "\n"], [:static, "\n"], [:static, "
\n"], [:static, "
\n"], [:static, "\n"], [:static, "\n"], [:static, "\n"], [:static, ""], [:static, "Version\n"], [:static, ""], [:static, "Dates\n"], [:static, ""], [:static, "Author\n"], [:static, ""], [:static, "Message\n"], [:static, ""], [:static, "Actions\n"], [:static, "\n"], [:static, "\n"], [:static, "\n"], [:code, "\n nb = .count + 1\n"], [:code, " .each do |x|\n"], [:static, "\n"], [:static, ""], [:dynamic, "(\"#{nb -= 1}\"\n).to_s"], [:static, "\n"], [:static, ""], [:dynamic, "(\"#{time_from_now x[:date]}\"\n).to_s"], [:static, "\n"], [:static, ""], [:dynamic, "(\"#{x[:author][:name]}\"\n).to_s"], [:static, "\n"], [:static, ""], [:dynamic, "(\"#{x[:message]}\"\n).to_s"], [:static, "\n"], [:static, "\n"], [:code, "\n params = \"node=#{}&group=#{}&oid=#{x[:oid]}\"\n"], [:code, " params = \"#{params}&date=#{x[:date]}&num=#{nb}\"\n"], [:static, " _haml_attribute_compiler2 }, nil)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, true, [:dynamic, "_haml_attribute_compiler2"]], [:static, "'"]]]]], [:static, " title='configuration'"]], [:static, ">\n"], [:static, ""], [:static, "\n"], [:static, "\n"], [:static, "  \n"], [:static, " _haml_attribute_compiler3 }, nil)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, true, [:dynamic, "_haml_attribute_compiler3"]], [:static, "'"]]]]], [:static, " title='diff'"]], [:static, ">\n"], [:static, " _haml_attribute_compiler4 }, nil)"]], ["true", [:static, " src"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " src='"], [:escape, true, [:dynamic, "_haml_attribute_compiler4"]], [:static, "'"]]]]]], [:static, ">\n"], [:static, "\n"], [:static, "\n"], [:static, "\n"], [:code, "end;"], [:static, "\n"], [:static, "\n"], [:static, "
\n"], [:static, "
\n"], [:static, "\n"]], =nil, ={"plain"=>Haml::Filters::Plain, "javascript"=>Haml::Filters::Javascript, "css"=>Haml::Filters::Css, "cdata"=>Haml::Filters::Cdata, "escaped"=>Haml::Filters::Escaped, "ruby"=>Haml::Filters::Ruby, "preserve"=>Haml::Filters::Preserve, "sass"=>Haml::Filters::Sass, "scss"=>Haml::Filters::Scss, "less"=>Haml::Filters::Less, "markdown"=>Haml::Filters::Markdown, "erb"=>Haml::Filters::Erb, "coffee"=>Haml::Filters::Coffee, "coffeescript"=>Haml::Filters::Coffee}, =#<:attributecompiler:0x00007f33fcb0a5b8>, =39>, #<:escapable:0x00007f33fcb0a068>, ="::Haml::Helpers.html_escape((%s))", =#Proc:0x00007f33fcb09898@(eval):1, ="::Haml::Helpers.escape_once((%s))", =#Proc:0x00007f33fcb093e8@(eval):1, =false>, #<:filters::controlflow:0x00007f33fcb08ee8>>, #<:filters::multiflattener:0x00007f33fcb08650>>, #<:filters::staticmerger:0x00007f33fcb03ee8>>, #<:generator:0x00007f33fcb034e8>true}]>>], ="_hamlout.buffer << (\"
\n
\n

\n<a\".freeze);; \n; \n; \n; _haml_attribute_compiler1 = (url_for('/nodes')); case (_haml_attribute_compiler1); when Hash; _hamlout.buffer << ((_hamlout.attributes({ \"href\".freeze => _haml_attribute_compiler1 }, nil)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape((_haml_attribute_compiler1)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">nodes\n/ Versions for Node\n\".freeze);; \n; \n; _hamlout.buffer << (((\"#{}\"\n).to_s).to_s);; _hamlout.buffer << (\"\n

\n
\n
\n
\n
\n\n\nRefresh\n\n\n
\n
\n\n\n\nVersion\nDates\nAuthor\nMessage\nActions\n\n\n\n\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n nb = .count + 1\n; .each do |x|\n; _hamlout.buffer << (\"\n\".freeze);; \n; _hamlout.buffer << (((\"#{nb -= 1}\"\n).to_s).to_s);; _hamlout.buffer << (\"\n\".freeze);; _hamlout.buffer << (((\"#{time_from_now x[:date]}\"\n).to_s).to_s);; _hamlout.buffer << (\"\n\".freeze);; _hamlout.buffer << (((\"#{x[:author][:name]}\"\n).to_s).to_s);; _hamlout.buffer << (\"\n\".freeze);; _hamlout.buffer << (((\"#{x[:message]}\"\n).to_s).to_s);; _hamlout.buffer << (\"\n\n\".freeze);; \n params = \"node=#{}&group=#{}&oid=#{x[:oid]}\"\n; params = \"#{params}&date=#{x[:date]}&num=#{nb}\"\n; _hamlout.buffer << (\"<a\".freeze);; _haml_attribute_compiler2 = (url_for(\"/node/version/view?#{params}\")); case (_haml_attribute_compiler2); when Hash; _hamlout.buffer << ((_hamlout.attributes({ \"href\".freeze => _haml_attribute_compiler2 }, nil)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape((_haml_attribute_compiler2)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\" title='configuration'>\n\n\n  \n<a\".freeze);; \n; \n; \n; \n; _haml_attribute_compiler3 = (url_for(\"/node/version/diffs?#{params}\")); case (_haml_attribute_compiler3); when Hash; _hamlout.buffer << ((_hamlout.attributes({ \"href\".freeze => _haml_attribute_compiler3 }, nil)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape((_haml_attribute_compiler3)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\" title='diff'>\n<img\".freeze);; \n; _haml_attribute_compiler4 = (url_for('/images/diff_15x17.png')); case (_haml_attribute_compiler4); when Hash; _hamlout.buffer << ((_hamlout.attributes({ \"src\".freeze => _haml_attribute_compiler4 }, nil)).to_s);; when true; _hamlout.buffer << (\" src\".freeze);; when false, nil; else; _hamlout.buffer << (\" src='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape((_haml_attribute_compiler4)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\n\n\n\n\".freeze);; end;; _hamlout.buffer << (\"\n\n
\n
\n\n\".freeze);">>}>>, ={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :xss_mode=>:block, :nosniff=>true, :except=>[:session_hijacking, :remote_token]}>, ={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, ={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, ={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, ={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, ={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :frame_options=>:sameorigin, :except=>[:session_hijacking, :remote_token]}, ="SAMEORIGIN">></:generator:0x00007f33fcb034e8></:filters::staticmerger:0x00007f33fcb03ee8></:filters::multiflattener:0x00007f33fcb08650></:filters::controlflow:0x00007f33fcb08ee8></:escapable:0x00007f33fcb0a068></:attributecompiler:0x00007f33fcb0a5b8></:compiler:0x00007f33fcb0bdc8></:parser:0x00007f33fcb11188></:templeengine:0x00007f33fcb11bd8>0x00007f33fcb11db8></:hamltemplate:0x00007f33fcb12010></:protection::pathtraversal:0x000055696f19be68>

rack.multiprocess
false rack.multithread
true rack.request.cookie_hash
{} rack.request.query_hash {"node_full"=>"10.30.220.7"} rack.request.query_string
node_full=10.30.220.7 rack.run_once
false rack.url_scheme http rack.version
[1, 3] sinatra.accept
[#<:request::acceptentry:0x00007f33fca12cc8>, #<:request::acceptentry:0x00007f33fca12b10>, #<:request::acceptentry:0x00007f33fca12610>, #<:request::acceptentry:0x00007f33fca12480>, #<:request::acceptentry:0x00007f33fca11d28>"b3"}, =0.9>, #<:request::acceptentry:0x00007f33fca12980>, #<:request::acceptentry:0x00007f33fca122c8>] sinatra.error </:request::acceptentry:0x00007f33fca122c8></:request::acceptentry:0x00007f33fca12980></:request::acceptentry:0x00007f33fca11d28></:request::acceptentry:0x00007f33fca12480></:request::acceptentry:0x00007f33fca12610></:request::acceptentry:0x00007f33fca12b10></:request::acceptentry:0x00007f33fca12cc8>

sinatra.route
GET /node/version.?:format?

该提问来源于开源项目:ytti/oxidized

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

8条回答

  • weixin_39569747 weixin_39569747 5月前

    I have the same problem. oxidized version 0.27.0

    点赞 评论 复制链接分享
  • weixin_39867296 weixin_39867296 5月前

    Duplicate of #2049

    点赞 评论 复制链接分享
  • weixin_39618824 weixin_39618824 5月前

    Why was this closed? I saw that other post but didn't see what the fix was supposed to be.

    点赞 评论 复制链接分享
  • weixin_39867296 weixin_39867296 5月前

    Use your mouse to scroll all the way to the bottom of the page, or use 'Page Down' key, below the last comment is the commit which fixes it, hope this helps.

    点赞 评论 复制链接分享
  • weixin_39569747 weixin_39569747 5月前

    Help me this commit https://github.com/ytti/oxidized/commit/d96a592be605149f8a4f8d45e8b35e1ed8f3049c

    Maybe you need to release 0.27.1 ? :)

    点赞 评论 复制链接分享
  • weixin_39867296 weixin_39867296 5月前

    Yes, we need to cut new release at some point. Of course there are many other options, like docker gets built for every commit and you can always build your own from master.

    点赞 评论 复制链接分享
  • weixin_39618824 weixin_39618824 5月前

    Use your mouse to scroll all the way to the bottom of the page, or use 'Page Down' key, below the last comment is the commit which fixes it, hope this helps.

    Thanks, that did the trick. I'm somewhat new to github; didn't understand the commit link.

    点赞 评论 复制链接分享
  • weixin_39761255 weixin_39761255 5月前

    I just removed old oxidized gems and rebuilt oxidized from git. I am still seeing this problem when trying to view versions. I see in lib/oxidized/output/git.rb line 77 is "walker.push(repo.head.target.oid)" as in the commit. Any ideas?

    点赞 评论 复制链接分享