mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Server does not reply with clTRID when not specified in request
This commit is contained in:
parent
9a4b268322
commit
5e6cb6cbd1
4 changed files with 18 additions and 11 deletions
|
@ -31,14 +31,14 @@ module Epp
|
|||
@xml ||= EppXml.new(cl_trid: 'ABC-12345')
|
||||
case user
|
||||
when :gitlab
|
||||
@gitlab_login_xml ||=
|
||||
@xml.session.login(clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' })
|
||||
@gitlab_login_xml ||=
|
||||
@xml.session.login(clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' })
|
||||
when :registrar1
|
||||
@registrar1_login_xml ||=
|
||||
@xml.session.login(clID: { value: 'registrar1' }, pw: { value: 'ghyt9e4fu' })
|
||||
@registrar1_login_xml ||=
|
||||
@xml.session.login(clID: { value: 'registrar1' }, pw: { value: 'ghyt9e4fu' })
|
||||
when :registrar2
|
||||
@registrar2_login_xml ||=
|
||||
@xml.session.login(clID: { value: 'registrar2' }, pw: { value: 'ghyt9e4fu' })
|
||||
@registrar2_login_xml ||=
|
||||
@xml.session.login(clID: { value: 'registrar2' }, pw: { value: 'ghyt9e4fu' })
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -78,7 +78,7 @@ module Epp
|
|||
rescue => e
|
||||
e
|
||||
end
|
||||
|
||||
|
||||
def server
|
||||
# tag and password not in use, add those at login xml
|
||||
@server ||= Epp::Server.new({ server: 'localhost', port: 701, tag: '', password: '' })
|
||||
|
@ -89,7 +89,7 @@ module Epp
|
|||
|
||||
obj = {
|
||||
results: [],
|
||||
clTRID: res.css('epp trID clTRID').text,
|
||||
clTRID: res.css('epp trID clTRID').first.try(:text),
|
||||
parsed: res.remove_namespaces!,
|
||||
raw: raw
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ module Epp
|
|||
|
||||
xml_params = defaults.deep_merge(xml_params)
|
||||
|
||||
epp_xml = EppXml::Domain.new(cl_trid: 'ABC-12345')
|
||||
epp_xml = EppXml::Domain.new(cl_trid: '')
|
||||
epp_xml.info(xml_params)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue