Merge pull request #1949 from internetee/dependabot/bundler/rexml-3.2.5

Bump rexml from 3.2.4 to 3.2.5
This commit is contained in:
Alex Sherman 2021-04-26 15:46:56 +05:00 committed by Oleg Hasjanov
commit 9c2bbd8e89
4 changed files with 8 additions and 2 deletions

View file

@ -398,7 +398,7 @@ GEM
http-cookie (>= 1.0.2, < 2.0) http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0) mime-types (>= 1.16, < 4.0)
netrc (~> 0.8) netrc (~> 0.8)
rexml (3.2.4) rexml (3.2.5)
ruby2_keywords (0.0.4) ruby2_keywords (0.0.4)
rubyzip (2.3.0) rubyzip (2.3.0)
sass-rails (6.0.0) sass-rails (6.0.0)

View file

@ -103,7 +103,7 @@ module Epp
@errors += obj.errors[:epp_errors] @errors += obj.errors[:epp_errors]
end end
if params[:parsed_frame].at_css('update') if params[:parsed_frame]&.at_css('update')
@errors.each_with_index do |errors, index| @errors.each_with_index do |errors, index|
if errors[:code] == '2304' && if errors[:code] == '2304' &&
errors[:value].present? && errors[:value].present? &&

View file

@ -6,5 +6,10 @@ module Epp
epp_errors << { code: params[:code], msg: params[:msg] } epp_errors << { code: params[:code], msg: params[:msg] }
render_epp_response '/epp/error' render_epp_response '/epp/error'
end end
def command_handler
epp_errors << { code: '2000', msg: 'Unknown command' }
render_epp_response '/epp/error'
end
end end
end end

View file

@ -36,6 +36,7 @@ Rails.application.routes.draw do
post 'command/poll', to: 'polls#poll', as: 'poll', constraints: EppConstraint.new(:poll) post 'command/poll', to: 'polls#poll', as: 'poll', constraints: EppConstraint.new(:poll)
get 'error/:command', to: 'errors#error' get 'error/:command', to: 'errors#error'
get 'error', to: 'errors#command_handler'
end end
namespace :repp do namespace :repp do