From 99ad0993f651a3d3db0fa58883f4ecc9ad2e8286 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Wed, 27 May 2015 13:39:04 +0300 Subject: [PATCH 01/23] Move trID under response #2637 --- app/views/epp/contacts/check.xml.builder | 2 +- app/views/epp/contacts/create.xml.builder | 2 +- app/views/epp/contacts/delete.xml.builder | 2 +- app/views/epp/contacts/info.xml.builder | 8 ++--- app/views/epp/contacts/update.xml.builder | 2 +- app/views/epp/domains/check.xml.builder | 2 +- app/views/epp/domains/create.xml.builder | 4 +-- app/views/epp/domains/info.xml.builder | 34 +++++++++---------- app/views/epp/domains/renew.xml.builder | 2 +- app/views/epp/domains/success.xml.builder | 4 +-- .../epp/domains/success_pending.xml.builder | 3 +- app/views/epp/domains/transfer.xml.builder | 4 +-- app/views/epp/error.xml.builder | 3 +- app/views/epp/poll/poll_ack.xml.builder | 2 +- app/views/epp/poll/poll_keyrelay.xml.builder | 2 +- .../epp/poll/poll_no_messages.xml.builder | 2 +- app/views/epp/poll/poll_req.xml.builder | 2 +- app/views/epp/sessions/login_fail.xml.builder | 4 +-- .../epp/sessions/login_success.xml.builder | 2 +- app/views/epp/sessions/logout.xml.builder | 4 +-- app/views/epp/shared/_trID.xml.builder | 7 ++-- app/views/epp/shared/success.xml.builder | 4 +-- 22 files changed, 50 insertions(+), 51 deletions(-) diff --git a/app/views/epp/contacts/check.xml.builder b/app/views/epp/contacts/check.xml.builder index 4df3597e3..efa5ae231 100644 --- a/app/views/epp/contacts/check.xml.builder +++ b/app/views/epp/contacts/check.xml.builder @@ -15,6 +15,6 @@ xml.epp_head do end end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/contacts/create.xml.builder b/app/views/epp/contacts/create.xml.builder index 85f5f50c1..8e96f27f0 100644 --- a/app/views/epp/contacts/create.xml.builder +++ b/app/views/epp/contacts/create.xml.builder @@ -11,6 +11,6 @@ xml.epp_head do end end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/contacts/delete.xml.builder b/app/views/epp/contacts/delete.xml.builder index 4490335a9..a111f92d0 100644 --- a/app/views/epp/contacts/delete.xml.builder +++ b/app/views/epp/contacts/delete.xml.builder @@ -4,6 +4,6 @@ xml.epp_head do xml.msg 'Command completed successfully' end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/contacts/info.xml.builder b/app/views/epp/contacts/info.xml.builder index cdec58fe2..ce692020c 100644 --- a/app/views/epp/contacts/info.xml.builder +++ b/app/views/epp/contacts/info.xml.builder @@ -28,11 +28,11 @@ xml.epp_head do end xml.tag!('contact:clID', @contact.registrar.try(:name)) - xml.tag!('contact:crID', @contact.creator.try(:registrar)) + xml.tag!('contact:crID', @contact.creator.try(:registrar)) xml.tag!('contact:crDate', @contact.created_at) if @contact.updated_at != @contact.created_at xml.tag!('contact:upID', @contact.updator.try(:registrar)) - xml.tag!('contact:upDate', @contact.updated_at) + xml.tag!('contact:upDate', @contact.updated_at) end # xml.tag!('contact:trDate', '123') if false if can? :view_password, @contact, @password @@ -49,12 +49,12 @@ xml.epp_head do if can? :view_full_info, @contact, @password xml.tag!('extension') do xml.tag!('eis:extdata', 'xmlns:eis' => 'urn:ee:eis:xml:epp:eis-1.0') do - xml.tag!('eis:ident', @contact.ident, + xml.tag!('eis:ident', @contact.ident, type: @contact.ident_type, cc: @contact.ident_country_code) end end end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/contacts/update.xml.builder b/app/views/epp/contacts/update.xml.builder index 85f5f50c1..8e96f27f0 100644 --- a/app/views/epp/contacts/update.xml.builder +++ b/app/views/epp/contacts/update.xml.builder @@ -11,6 +11,6 @@ xml.epp_head do end end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/domains/check.xml.builder b/app/views/epp/domains/check.xml.builder index 2a6398b15..6bfc382a3 100644 --- a/app/views/epp/domains/check.xml.builder +++ b/app/views/epp/domains/check.xml.builder @@ -15,6 +15,6 @@ xml.epp_head do end end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/domains/create.xml.builder b/app/views/epp/domains/create.xml.builder index ada6b7362..6ccfda07b 100644 --- a/app/views/epp/domains/create.xml.builder +++ b/app/views/epp/domains/create.xml.builder @@ -11,7 +11,7 @@ xml.epp_head do xml.tag!('domain:exDate', @domain.valid_to) end end - end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) + end end diff --git a/app/views/epp/domains/info.xml.builder b/app/views/epp/domains/info.xml.builder index 22b352dfb..57d4903f0 100644 --- a/app/views/epp/domains/info.xml.builder +++ b/app/views/epp/domains/info.xml.builder @@ -59,26 +59,26 @@ xml.epp_head do end end end - end - xml.extension do - xml.tag!('secDNS:infData', 'xmlns:secDNS' => 'urn:ietf:params:xml:ns:secDNS-1.1') do - @domain.dnskeys.sort.each do |key| - xml.tag!('secDNS:dsData') do - xml.tag!('secDNS:keyTag', key.ds_key_tag) - xml.tag!('secDNS:alg', key.ds_alg) - xml.tag!('secDNS:digestType', key.ds_digest_type) - xml.tag!('secDNS:digest', key.ds_digest) - xml.tag!('secDNS:keyData') do - xml.tag!('secDNS:flags', key.flags) - xml.tag!('secDNS:protocol', key.protocol) - xml.tag!('secDNS:alg', key.alg) - xml.tag!('secDNS:pubKey', key.public_key) + xml.extension do + xml.tag!('secDNS:infData', 'xmlns:secDNS' => 'urn:ietf:params:xml:ns:secDNS-1.1') do + @domain.dnskeys.sort.each do |key| + xml.tag!('secDNS:dsData') do + xml.tag!('secDNS:keyTag', key.ds_key_tag) + xml.tag!('secDNS:alg', key.ds_alg) + xml.tag!('secDNS:digestType', key.ds_digest_type) + xml.tag!('secDNS:digest', key.ds_digest) + xml.tag!('secDNS:keyData') do + xml.tag!('secDNS:flags', key.flags) + xml.tag!('secDNS:protocol', key.protocol) + xml.tag!('secDNS:alg', key.alg) + xml.tag!('secDNS:pubKey', key.public_key) + end end end end - end - end if @domain.dnskeys.any? + end if @domain.dnskeys.any? - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) + end end diff --git a/app/views/epp/domains/renew.xml.builder b/app/views/epp/domains/renew.xml.builder index 34484b096..f1d2a7742 100644 --- a/app/views/epp/domains/renew.xml.builder +++ b/app/views/epp/domains/renew.xml.builder @@ -11,6 +11,6 @@ xml.epp_head do end end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/domains/success.xml.builder b/app/views/epp/domains/success.xml.builder index a8bfe162f..a111f92d0 100644 --- a/app/views/epp/domains/success.xml.builder +++ b/app/views/epp/domains/success.xml.builder @@ -3,7 +3,7 @@ xml.epp_head do xml.result('code' => '1000') do xml.msg 'Command completed successfully' end - end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) + end end diff --git a/app/views/epp/domains/success_pending.xml.builder b/app/views/epp/domains/success_pending.xml.builder index 3d1783009..e7c52f970 100644 --- a/app/views/epp/domains/success_pending.xml.builder +++ b/app/views/epp/domains/success_pending.xml.builder @@ -3,7 +3,6 @@ xml.epp_head do xml.result('code' => '1001') do xml.msg 'Command completed successfully; action pending' end + render('epp/shared/trID', builder: xml) end - - xml << render('/epp/shared/trID') end diff --git a/app/views/epp/domains/transfer.xml.builder b/app/views/epp/domains/transfer.xml.builder index bea166939..59fffc852 100644 --- a/app/views/epp/domains/transfer.xml.builder +++ b/app/views/epp/domains/transfer.xml.builder @@ -7,7 +7,7 @@ xml.epp_head do xml.resData do xml << render('epp/domains/partials/transfer', builder: xml, dt: @domain_transfer) end - end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) + end end diff --git a/app/views/epp/error.xml.builder b/app/views/epp/error.xml.builder index 718440bd7..796856f4c 100644 --- a/app/views/epp/error.xml.builder +++ b/app/views/epp/error.xml.builder @@ -20,7 +20,6 @@ xml.epp_head do end end + render('epp/shared/trID', builder: xml) end - - xml << render('/epp/shared/trID') end diff --git a/app/views/epp/poll/poll_ack.xml.builder b/app/views/epp/poll/poll_ack.xml.builder index 3ba104dcd..05ea8b8d0 100644 --- a/app/views/epp/poll/poll_ack.xml.builder +++ b/app/views/epp/poll/poll_ack.xml.builder @@ -6,6 +6,6 @@ xml.epp_head do xml.tag!('msgQ', 'count' => current_user.queued_messages.count, 'id' => @message.id) - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/poll/poll_keyrelay.xml.builder b/app/views/epp/poll/poll_keyrelay.xml.builder index 049b0bf39..4189c6e82 100644 --- a/app/views/epp/poll/poll_keyrelay.xml.builder +++ b/app/views/epp/poll/poll_keyrelay.xml.builder @@ -44,6 +44,6 @@ xml.epp( end end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/poll/poll_no_messages.xml.builder b/app/views/epp/poll/poll_no_messages.xml.builder index 1e57a1216..b48b8cef5 100644 --- a/app/views/epp/poll/poll_no_messages.xml.builder +++ b/app/views/epp/poll/poll_no_messages.xml.builder @@ -4,6 +4,6 @@ xml.epp_head do xml.msg 'Command completed successfully; no messages' end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/poll/poll_req.xml.builder b/app/views/epp/poll/poll_req.xml.builder index f839670a3..b79ba160b 100644 --- a/app/views/epp/poll/poll_req.xml.builder +++ b/app/views/epp/poll/poll_req.xml.builder @@ -15,6 +15,6 @@ xml.epp_head do end end if @object - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/sessions/login_fail.xml.builder b/app/views/epp/sessions/login_fail.xml.builder index a76057270..5e2e99162 100644 --- a/app/views/epp/sessions/login_fail.xml.builder +++ b/app/views/epp/sessions/login_fail.xml.builder @@ -3,7 +3,7 @@ xml.epp_head do xml.result('code' => '2501') do xml.msg(@msg || 'Authentication error; server closing connection') end - end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) + end end diff --git a/app/views/epp/sessions/login_success.xml.builder b/app/views/epp/sessions/login_success.xml.builder index 4490335a9..a111f92d0 100644 --- a/app/views/epp/sessions/login_success.xml.builder +++ b/app/views/epp/sessions/login_success.xml.builder @@ -4,6 +4,6 @@ xml.epp_head do xml.msg 'Command completed successfully' end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) end end diff --git a/app/views/epp/sessions/logout.xml.builder b/app/views/epp/sessions/logout.xml.builder index 917481a7e..5bf1f8873 100644 --- a/app/views/epp/sessions/logout.xml.builder +++ b/app/views/epp/sessions/logout.xml.builder @@ -3,7 +3,7 @@ xml.epp_head do xml.result('code' => '1500') do xml.msg 'Command completed successfully; ending session' end - end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) + end end diff --git a/app/views/epp/shared/_trID.xml.builder b/app/views/epp/shared/_trID.xml.builder index 995c27c05..ace7b1beb 100644 --- a/app/views/epp/shared/_trID.xml.builder +++ b/app/views/epp/shared/_trID.xml.builder @@ -1,4 +1,5 @@ -xml.trID do - xml.clTRID params[:clTRID] if params[:clTRID].present? - xml.svTRID @svTRID +# builder ||= xml +builder.trID do + builder.clTRID params[:clTRID] if params[:clTRID].present? + builder.svTRID @svTRID end diff --git a/app/views/epp/shared/success.xml.builder b/app/views/epp/shared/success.xml.builder index a8bfe162f..a111f92d0 100644 --- a/app/views/epp/shared/success.xml.builder +++ b/app/views/epp/shared/success.xml.builder @@ -3,7 +3,7 @@ xml.epp_head do xml.result('code' => '1000') do xml.msg 'Command completed successfully' end - end - xml << render('/epp/shared/trID') + render('epp/shared/trID', builder: xml) + end end From c47f80280c4a0518059b1cbc99751f722c324c84 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Wed, 27 May 2015 13:48:42 +0300 Subject: [PATCH 02/23] Update epp examples --- doc/epp-examples.md | 5309 ++++++++++++++++++++++++++++++------------- 1 file changed, 3696 insertions(+), 1613 deletions(-) diff --git a/doc/epp-examples.md b/doc/epp-examples.md index df906d509..4d7192332 100644 --- a/doc/epp-examples.md +++ b/doc/epp-examples.md @@ -1,6 +1,6 @@ # EPP REQUEST - RESPONSE EXAMPLES -GENERATED AT: 2015-04-02 12:30:35 +0300 -EXAMPLE COUNT: 125 +GENERATED AT: 2015-05-27 10:43:23 UTC +EXAMPLE COUNT: 159 --- @@ -42,10 +42,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-1233952216 - + + ABC-12345 + ccReg-1585073425 + ``` @@ -96,11 +96,11 @@ RESPONSE: Required parameter missing: extension > extdata > ident [ident] + + ABC-12345 + ccReg-5715688008 + - - ABC-12345 - ccReg-3287526489 - ``` @@ -149,14 +149,14 @@ RESPONSE: - 8785c682 - 2015-04-02 09:30:37 UTC + FIRST0:34DF69A9 + 2015-05-27 10:43:25 UTC - - ABC-12345 - ccReg-2395064431 - + + ABC-12345 + ccReg-8051171569 + ``` @@ -206,14 +206,14 @@ RESPONSE: - 323ba226 - 2015-04-02 09:30:37 UTC + FIRST0:336265E0 + 2015-05-27 10:43:25 UTC - - ABC-12345 - ccReg-8997416744 - + + ABC-12345 + ccReg-5199925447 + ``` @@ -263,14 +263,14 @@ RESPONSE: - 391df6a8 - 2015-04-02 09:30:37 UTC + FIRST0:C852640B + 2015-05-27 10:43:25 UTC - - ABC-12345 - ccReg-7132910453 - + + ABC-12345 + ccReg-7518097746 + ``` @@ -320,19 +320,19 @@ RESPONSE: - 1eaf1950 - 2015-04-02 09:30:37 UTC + FIRST0:03344A72 + 2015-05-27 10:43:25 UTC - - ABC-12345 - ccReg-6618133267 - + + ABC-12345 + ccReg-3037699624 + ``` -### EPP Contact with valid user create command successfully saves custom code +### EPP Contact with valid user create command should add registrar prefix for code when missing REQUEST: @@ -353,7 +353,7 @@ REQUEST: +372.1234567 test@example.example - 12345 + abc12345 @@ -378,14 +378,414 @@ RESPONSE: - registrar1:12345 - 2015-04-02 09:30:37 UTC + FIRST0:ABC12345 + 2015-05-27 10:43:25 UTC - - ABC-12345 - ccReg-2453380772 - + + ABC-12345 + ccReg-2425066108 + + + +``` + +### EPP Contact with valid user create command should add registrar prefix for code when missing + +REQUEST: + +```xml + + + + + + + John Doe + + 123 Example + Tallinn + 123456 + EE + + + +372.1234567 + test@example.example + abc:ABC:12345 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:ABC:ABC:12345 + 2015-05-27 10:43:25 UTC + + + + ABC-12345 + ccReg-9903302869 + + + +``` + +### EPP Contact with valid user create command should not allow spaces in custom code + +REQUEST: + +```xml + + + + + + + John Doe + + 123 Example + Tallinn + 123456 + EE + + + +372.1234567 + test@example.example + abc 123 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + is invalid [code] + + + ABC-12345 + ccReg-2339768655 + + + +``` + +### EPP Contact with valid user create command should add registrar prefix for code when legacy prefix present + +REQUEST: + +```xml + + + + + + + John Doe + + 123 Example + Tallinn + 123456 + EE + + + +372.1234567 + test@example.example + CID:FIRST0:abc:ABC:NEW:12345 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:CID:FIRST0:ABC:ABC:NEW:12345 + 2015-05-27 10:43:25 UTC + + + + ABC-12345 + ccReg-6869800314 + + + +``` + +### EPP Contact with valid user create command should not remove suffix CID + +REQUEST: + +```xml + + + + + + + John Doe + + 123 Example + Tallinn + 123456 + EE + + + +372.1234567 + test@example.example + CID:FIRST0:abc:CID:ABC:NEW:12345 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:CID:FIRST0:ABC:CID:ABC:NEW:12345 + 2015-05-27 10:43:25 UTC + + + + ABC-12345 + ccReg-5110224581 + + + +``` + +### EPP Contact with valid user create command should not add registrar prefix for code when prefix present + +REQUEST: + +```xml + + + + + + + John Doe + + 123 Example + Tallinn + 123456 + EE + + + +372.1234567 + test@example.example + FIRST0:abc22 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:ABC22 + 2015-05-27 10:43:25 UTC + + + + ABC-12345 + ccReg-3526845166 + + + +``` + +### EPP Contact with valid user create command should add registrar prefix for code does not match exactly to prefix + +REQUEST: + +```xml + + + + + + + John Doe + + 123 Example + Tallinn + 123456 + EE + + + +372.1234567 + test@example.example + cid2:first0:abc:ABC:11111 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:CID2:FIRST0:ABC:ABC:11111 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-3943735784 + + + +``` + +### EPP Contact with valid user create command should ignore custom code when only contact prefix given + +REQUEST: + +```xml + + + + + + + John Doe + + 123 Example + Tallinn + 123456 + EE + + + +372.1234567 + test@example.example + CID:FIRST0 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:CID:FIRST0 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-3812376837 + ``` @@ -436,14 +836,14 @@ RESPONSE: - 9a8b4708 - 2015-04-02 09:30:37 UTC + FIRST0:FCCE0C37 + 2015-05-27 10:43:26 UTC - - ABC-12345 - ccReg-8583394129 - + + ABC-12345 + ccReg-6490804956 + ``` @@ -493,14 +893,14 @@ RESPONSE: - 92af8b59 - 2015-04-02 09:30:37 UTC + FIRST0:1752FB11 + 2015-05-27 10:43:26 UTC - - ABC-12345 - ccReg-4962506701 - + + ABC-12345 + ccReg-4664789940 + ``` @@ -549,11 +949,11 @@ RESPONSE: Parameter value policy error. Org must be blank: postalInfo > org [org] + + ABC-12345 + ccReg-2217323355 + - - ABC-12345 - ccReg-9648398992 - ``` @@ -601,11 +1001,11 @@ RESPONSE: Parameter value policy error. Fax must be blank: fax [fax] + + ABC-12345 + ccReg-2596146301 + - - ABC-12345 - ccReg-5762592386 - ``` @@ -637,14 +1037,11 @@ RESPONSE: Required parameter missing: update > update > id [id] - - Required parameter missing: update > update > authInfo > pw [pw] - + + ABC-12345 + ccReg-5177160774 + - - ABC-12345 - ccReg-5502832054 - ``` @@ -695,14 +1092,14 @@ RESPONSE: Object does not exist - not-exists + NOT-EXISTS + + ABC-12345 + ccReg-1486161642 + - - ABC-12345 - ccReg-6358984822 - ``` @@ -716,7 +1113,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 password @@ -755,19 +1152,65 @@ RESPONSE: - sh8013 - 2015-04-02 09:30:37 UTC + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC - - ABC-12345 - ccReg-9896533575 - + + ABC-12345 + ccReg-1514698242 + ``` -### EPP Contact with valid user update command fails with wrong authentication info +### EPP Contact with valid user update command is succesful for own contact without password + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + + John Doe Edited + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-0772549072 + + + +``` + +### EPP Contact with valid user update command should update other contact with correct password REQUEST: @@ -807,10 +1250,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-7879674966 - + + ABC-12345 + ccReg-3877274588 + ``` @@ -823,7 +1266,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 password @@ -857,14 +1300,20 @@ RESPONSE: - - Authorization error + + Command completed successfully + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-0346588044 + - - ABC-12345 - ccReg-9497399081 - ``` @@ -906,10 +1355,142 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-2756467450 - + + ABC-12345 + ccReg-1836171811 + + + +``` + +### EPP Contact with valid user update command should not update other contact without password + +REQUEST: + +```xml + + + + + registrar2 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-3673815346 + + + +``` + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + + John Doe Edited + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Authorization error + + + ABC-12345 + ccReg-0819879826 + + + +``` + +REQUEST: + +```xml + + + + + registrar1 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-3607963168 + ``` @@ -924,7 +1505,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 password @@ -964,11 +1545,11 @@ RESPONSE: Email is invalid [email] + + ABC-12345 + ccReg-2845722155 + - - ABC-12345 - ccReg-0573724614 - ``` @@ -982,7 +1563,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 password @@ -1020,14 +1601,14 @@ RESPONSE: Object does not exist - sh8013notpossibletoupdate + FIRST0:SH8013NOTPOSSIBLETOUPDATE + + ABC-12345 + ccReg-9111281614 + - - ABC-12345 - ccReg-8967980859 - ``` @@ -1041,7 +1622,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 password @@ -1080,14 +1661,14 @@ RESPONSE: - sh8013 - 2015-04-02 09:30:37 UTC + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC - - ABC-12345 - ccReg-1289469541 - + + ABC-12345 + ccReg-5675773022 + ``` @@ -1102,7 +1683,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 password @@ -1140,11 +1721,11 @@ RESPONSE: Parameter value policy error. Org must be blank: postalInfo > org [org] + + ABC-12345 + ccReg-5962790806 + - - ABC-12345 - ccReg-7130809324 - ``` @@ -1158,7 +1739,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 password @@ -1196,11 +1777,11 @@ RESPONSE: Parameter value policy error. Fax must be blank: fax [fax] + + ABC-12345 + ccReg-4675099884 + - - ABC-12345 - ccReg-9624548628 - ``` @@ -1214,7 +1795,7 @@ REQUEST: - sh8013 + FIRST0:SH8013 Payment overdue. @@ -1235,14 +1816,533 @@ RESPONSE: Parameter value policy error. Client-side object status management not supported: status [status] - - Required parameter missing: update > update > authInfo > pw [pw] - + + ABC-12345 + ccReg-1311892678 + + + +``` + +### EPP Contact with valid user update command should add value voice value + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + +372.11111111 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-5301697215 + + + +``` + +### EPP Contact with valid user update command should return error when add attributes phone value is empty + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + + + + + example@example.ee + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Required parameter missing - phone [phone] + + + Phone nr is invalid [phone] + + + ABC-12345 + ccReg-2304368720 + + + +``` + +### EPP Contact with valid user update command should honor chg value over add value when both changes same attribute + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + +372.2222222222222 + + + +372.11111111111 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-5525783094 + + + +``` + +### EPP Contact with valid user update command should not allow to remove required voice attribute + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + +372.7654321 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Required parameter missing - phone [phone] + + + Phone nr is invalid [phone] + + + ABC-12345 + ccReg-5500267943 + + + +``` + +### EPP Contact with valid user update command should not allow to remove required attribute + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + +372.7654321 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Required parameter missing - phone [phone] + + + Phone nr is invalid [phone] + + + ABC-12345 + ccReg-0108854211 + + + +``` + +### EPP Contact with valid user update command should honor add over rem + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + not important + + + +372.3333333 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-7179239442 + + + +``` + +### EPP Contact with valid user update command should honor chg over rem + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + not important + + + +372.44444444 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-6722651709 + + + +``` + +### EPP Contact with valid user update command should honor chg over rem and add + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + +372.666666 + + + +372.555555 + + + not important + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-3206173115 + + + +``` + +### EPP Contact with valid user update command should not remove password + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + + password + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIRST0:SH8013 + 2015-05-27 10:43:26 UTC + + + + ABC-12345 + ccReg-6097209925 + + + +``` + +### EPP Contact with valid user update command should return general policy error when removing org + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + + not important + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Parameter value policy error. Org must be blank: postalInfo > org [org] + + + ABC-12345 + ccReg-0081608878 + + + +``` + +### EPP Contact with valid user update command should return error when removing street + +REQUEST: + +```xml + + + + + + FIRST0:SH8013 + + password + + + + not important + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Required parameter missing - name [name] + + + ABC-12345 + ccReg-8929861116 + - - ABC-12345 - ccReg-7975112656 - ``` @@ -1271,14 +2371,11 @@ RESPONSE: Required parameter missing: delete > delete > id [id] - - Required parameter missing: delete > delete > authInfo > pw [pw] - + + ABC-12345 + ccReg-4224986078 + - - ABC-12345 - ccReg-4876546115 - ``` @@ -1318,14 +2415,14 @@ RESPONSE: Object does not exist - not-exists + NOT-EXISTS + + ABC-12345 + ccReg-6695799151 + - - ABC-12345 - ccReg-6707134195 - ``` @@ -1339,7 +2436,7 @@ REQUEST: - sh616871733 + FIRST0:SH002595873 password @@ -1365,10 +2462,89 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-0769582785 - + + ABC-12345 + ccReg-9877498133 + + + +``` + +### EPP Contact with valid user delete command deletes own contact even with wrong password + +REQUEST: + +```xml + + + + + + FIRST0:SH085363854 + + wrong password + + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-2124046501 + + + +``` + +### EPP Contact with valid user delete command deletes own contact even without password + +REQUEST: + +```xml + + + + + + FIRST0:SH588117405 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-1641432006 + ``` @@ -1383,7 +2559,7 @@ REQUEST: - sh317872324 + FIRST0:SH462986476 password @@ -1409,15 +2585,15 @@ RESPONSE: Object association prohibits operation [domains] + + ABC-12345 + ccReg-6733472504 + - - ABC-12345 - ccReg-9622128674 - ``` -### EPP Contact with valid user delete command fails with wrong authentication info +### EPP Contact with valid user delete command should delete when not owner but with correct password REQUEST: @@ -1457,10 +2633,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9519410809 - + + ABC-12345 + ccReg-9593963234 + ``` @@ -1473,7 +2649,7 @@ REQUEST: - sh849994836 + FIRST0:SH345866719 password @@ -1496,14 +2672,14 @@ RESPONSE: - - Authorization error + + Command completed successfully + + ABC-12345 + ccReg-4321232367 + - - ABC-12345 - ccReg-6470384730 - ``` @@ -1545,10 +2721,271 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-2702175300 - + + ABC-12345 + ccReg-9943668816 + + + +``` + +### EPP Contact with valid user delete command should not delete when not owner without password + +REQUEST: + +```xml + + + + + registrar2 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-4143129224 + + + +``` + +REQUEST: + +```xml + + + + + + FIRST0:SH1376434210 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Authorization error + + + ABC-12345 + ccReg-2155291311 + + + +``` + +REQUEST: + +```xml + + + + + registrar1 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-4451657543 + + + +``` + +### EPP Contact with valid user delete command should not delete when not owner with wrong password + +REQUEST: + +```xml + + + + + registrar2 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-5071844006 + + + +``` + +REQUEST: + +```xml + + + + + + FIRST0:SH3882613511 + wrong password + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + 37605030299 + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Authorization error + + + ABC-12345 + ccReg-6382118387 + + + +``` + +REQUEST: + +```xml + + + + + registrar1 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-0221108510 + ``` @@ -1578,11 +3015,11 @@ RESPONSE: Required parameter missing: check > check > id [id] + + ABC-12345 + ccReg-1250931582 + - - ABC-12345 - ccReg-9548831820 - ``` @@ -1596,7 +3033,7 @@ REQUEST: - check-1234 + FIXED:CHECK-1234 check-4321 @@ -1617,7 +3054,7 @@ RESPONSE: - check-1234 + FIXED:CHECK-1234 in use @@ -1625,10 +3062,57 @@ RESPONSE: - - ABC-12345 - ccReg-4583380937 - + + ABC-12345 + ccReg-5446739255 + + + +``` + +### EPP Contact with valid user check command should support legacy CID farmat + +REQUEST: + +```xml + + + + + + FIXED:CHECK-LEGACY + CID:FIXED:CHECK-LEGACY + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + + FIXED:CHECK-LEGACY + in use + + + CID:FIXED:CHECK-LEGACY + + + + + ABC-12345 + ccReg-2438715118 + ``` @@ -1658,11 +3142,11 @@ RESPONSE: Required parameter missing: info > info > id [id] + + ABC-12345 + ccReg-8371968302 + - - ABC-12345 - ccReg-0827476737 - ``` @@ -1696,14 +3180,14 @@ RESPONSE: Object does not exist - no-contact + NO-CONTACT + + ABC-12345 + ccReg-3188555074 + - - ABC-12345 - ccReg-7078773469 - ``` @@ -1717,7 +3201,7 @@ REQUEST: - info-4444 + FIXED:INFO-4444 password @@ -1739,9 +3223,9 @@ RESPONSE: - info-4444 + FIXED:INFO-4444 +372.12345678 - otilia@trompmetz.info + llewellyn@bernier.org Johnny Awesome @@ -1752,9 +3236,9 @@ RESPONSE: EE - registrar1 + fixed registrar - 2015-04-02 09:30:38 UTC + 2015-05-27 10:43:29 UTC password @@ -1766,10 +3250,77 @@ RESPONSE: 37605030299 - - ABC-12345 - ccReg-6410502093 - + + ABC-12345 + ccReg-2762164451 + + + +``` + +### EPP Contact with valid user info command should add legacy CID format as append + +REQUEST: + +```xml + + + + + + FIXED:CID:FIXED:INFO-5555 + + password + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIXED:CID:FIXED:INFO-5555 + +372.12345678 + llewellyn@bernier.org + + Johnny Awesome + + Short street 11 + Tallinn + 11111 + + EE + + + fixed registrar + + 2015-05-27 10:43:29 UTC + + password + + + + + + + 37605030299 + + + + ABC-12345 + ccReg-5753089221 + ``` @@ -1784,7 +3335,7 @@ REQUEST: - info-ident + FIRST0:INFO-IDENT password @@ -1806,9 +3357,9 @@ RESPONSE: - info-ident + FIRST0:INFO-IDENT +372.12345678 - otilia@trompmetz.info + llewellyn@bernier.org Johnny Awesome @@ -1821,7 +3372,7 @@ RESPONSE: registrar1 - 2015-04-02 09:30:38 UTC + 2015-05-27 10:43:29 UTC password @@ -1833,15 +3384,15 @@ RESPONSE: 37605030299 - - ABC-12345 - ccReg-6975719991 - + + ABC-12345 + ccReg-0873990421 + ``` -### EPP Contact with valid user info command returns no authorization error for wrong password when owner +### EPP Contact with valid user info command returns no authorization error for wrong password when registrant REQUEST: @@ -1851,7 +3402,7 @@ REQUEST: - sh191232150 + FIRST0:SH762612490 wrong-pw @@ -1873,11 +3424,11 @@ RESPONSE: - sh191232150 + FIRST0:SH762612490 +372.12345678 - otilia@trompmetz.info + llewellyn@bernier.org - Khalil Ernser0 + Liliana Crist II0 Short street 11 Tallinn @@ -1888,7 +3439,7 @@ RESPONSE: registrar1 - 2015-04-02 09:30:36 UTC + 2015-05-27 10:43:24 UTC password @@ -1900,10 +3451,77 @@ RESPONSE: 37605030299 - - ABC-12345 - ccReg-4705338516 - + + ABC-12345 + ccReg-8366914454 + + + +``` + +### EPP Contact with valid user info command should honor new contact code format + +REQUEST: + +```xml + + + + + + FIXED:TEST:CUSTOM:CODE + + password + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + FIXED:TEST:CUSTOM:CODE + +372.12345678 + llewellyn@bernier.org + + Mrs. Willard Kling15 + + Short street 11 + Tallinn + 11111 + + EE + + + fixed registrar + + 2015-05-27 10:43:29 UTC + + password + + + + + + + 37605030299 + + + + ABC-12345 + ccReg-1094860403 + ``` @@ -1948,10 +3566,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-2244559397 - + + ABC-12345 + ccReg-1156272733 + ``` @@ -1964,7 +3582,7 @@ REQUEST: - sh191232150 + FIRST0:SH762612490 password @@ -1986,11 +3604,11 @@ RESPONSE: - sh191232150 + FIRST0:SH762612490 +372.12345678 - otilia@trompmetz.info + llewellyn@bernier.org - Khalil Ernser0 + Liliana Crist II0 Short street 11 Tallinn @@ -2001,7 +3619,7 @@ RESPONSE: registrar1 - 2015-04-02 09:30:36 UTC + 2015-05-27 10:43:24 UTC password @@ -2013,10 +3631,10 @@ RESPONSE: 37605030299 - - ABC-12345 - ccReg-7930412610 - + + ABC-12345 + ccReg-8181550058 + ``` @@ -2059,10 +3677,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-3033397293 - + + ABC-12345 + ccReg-6586282287 + ``` @@ -2107,10 +3725,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-2110451392 - + + ABC-12345 + ccReg-2861885021 + ``` @@ -2123,7 +3741,7 @@ REQUEST: - sh191232150 + FIRST0:SH762612490 wrong-pw @@ -2143,11 +3761,11 @@ RESPONSE: Authorization error + + ABC-12345 + ccReg-0042572211 + - - ABC-12345 - ccReg-6034273022 - ``` @@ -2189,10 +3807,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6728126220 - + + ABC-12345 + ccReg-4742331049 + ``` @@ -2237,10 +3855,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9479746307 - + + ABC-12345 + ccReg-6748839643 + ``` @@ -2253,7 +3871,7 @@ REQUEST: - sh191232150 + FIRST0:SH762612490 @@ -2275,20 +3893,20 @@ RESPONSE: - sh191232150 + FIRST0:SH762612490 - Khalil Ernser0 + Liliana Crist II0 registrar1 - 2015-04-02 09:30:36 UTC + 2015-05-27 10:43:24 UTC - - ABC-12345 - ccReg-9878707653 - + + ABC-12345 + ccReg-8839721470 + ``` @@ -2331,10 +3949,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-8394470155 - + + ABC-12345 + ccReg-0850650289 + ``` @@ -2369,11 +3987,11 @@ RESPONSE: Unimplemented command + + ABC-12345 + ccReg-8524752910 + - - ABC-12345 - ccReg-4449817183 - ``` @@ -2415,10 +4033,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6479345571 - + + ABC-12345 + ccReg-5841042302 + ``` @@ -2433,7 +4051,7 @@ REQUEST: - example29991941952598574.ee + example70096036052024755.ee 1 @@ -2445,8 +4063,8 @@ REQUEST: ns2.example.net - citizen_1234 - citizen_1234 + FIXED:CITIZEN_1234 + FIXED:CITIZEN_1234 sh1111 sh2222 @@ -2487,11 +4105,11 @@ RESPONSE: sh2222 + + ABC-12345 + ccReg-6329567919 + - - ABC-12345 - ccReg-9003154174 - ``` @@ -2531,15 +4149,15 @@ RESPONSE: Required parameter missing: extension > extdata > legalDocument [legal_document] + + ABC-12345 + ccReg-1727549112 + - - ABC-12345 - ccReg-3507870669 - ``` -### EPP Domain with citizen as an owner creates a domain +### EPP Domain with citizen as a registrant creates a domain REQUEST: @@ -2549,7 +4167,7 @@ REQUEST: - example69986438078627922.ee + example18875779892898751.ee 1 @@ -2561,10 +4179,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -2596,20 +4214,20 @@ RESPONSE: - example69986438078627922.ee - 2015-04-02 09:30:39 UTC - 2016-04-02 00:00:00 UTC + example18875779892898751.ee + 2015-05-27 10:43:30 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-7138232020 + - - ABC-12345 - ccReg-1862475581 - ``` -### EPP Domain with citizen as an owner creates a domain with legal document +### EPP Domain with citizen as a registrant creates a domain with legal document REQUEST: @@ -2619,7 +4237,7 @@ REQUEST: - example47860272766685766.ee + example16518501250481074.ee 1 @@ -2631,10 +4249,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -2658,20 +4276,20 @@ RESPONSE: - example47860272766685766.ee - 2015-04-02 09:30:39 UTC - 2016-04-02 00:00:00 UTC + example16518501250481074.ee + 2015-05-27 10:43:30 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-6949714810 + - - ABC-12345 - ccReg-9791125228 - ``` -### EPP Domain with citizen as an owner validates nameserver ipv4 when in same zone as domain +### EPP Domain with citizen as a registrant validates nameserver ipv4 when in same zone as domain REQUEST: @@ -2681,20 +4299,20 @@ REQUEST: - example65969542925515313.ee + example34657545915229578.ee 1 - ns1.example65969542925515313.ee + ns1.example34657545915229578.ee - ns2.example65969542925515313.ee + ns2.example34657545915229578.ee - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -2724,15 +4342,15 @@ RESPONSE: IPv4 is missing [ipv4] + + ABC-12345 + ccReg-3705921440 + - - ABC-12345 - ccReg-3337898568 - ``` -### EPP Domain with citizen as an owner does not create reserved domain +### EPP Domain with citizen as a registrant does not create reserved domain REQUEST: @@ -2754,10 +4372,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -2790,15 +4408,15 @@ RESPONSE: 1162.ee + + ABC-12345 + ccReg-3665167833 + - - ABC-12345 - ccReg-8534003724 - ``` -### EPP Domain with citizen as an owner does not create domain without contacts and registrant +### EPP Domain with citizen as a registrant does not create domain without contacts and registrant REQUEST: @@ -2808,7 +4426,7 @@ REQUEST: - example61321583015887262.ee + example95948665035556904.ee 1 @@ -2820,9 +4438,9 @@ REQUEST: ns2.example.net - sh8013 - sh8013 - sh801333 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -2853,15 +4471,15 @@ RESPONSE: Required parameter missing: create > create > registrant [registrant] + + ABC-12345 + ccReg-2552697936 + - - ABC-12345 - ccReg-1067001064 - ``` -### EPP Domain with citizen as an owner does not create domain without nameservers +### EPP Domain with citizen as a registrant does not create domain without nameservers REQUEST: @@ -2871,13 +4489,13 @@ REQUEST: - example31779613815936591.ee + example48967884144781787.ee 1 - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -2910,15 +4528,15 @@ RESPONSE: Required parameter missing: create > create > ns > hostAttr [host_attr] + + ABC-12345 + ccReg-9940643139 + - - ABC-12345 - ccReg-6148309271 - ``` -### EPP Domain with citizen as an owner does not create domain with too many nameservers +### EPP Domain with citizen as a registrant does not create domain with too many nameservers REQUEST: @@ -2928,7 +4546,7 @@ REQUEST: - example70843109875439590.ee + example26199879111999630.ee 1 @@ -2974,10 +4592,10 @@ REQUEST: ns13.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3007,15 +4625,15 @@ RESPONSE: Nameservers count must be between 2-11 [nameservers] + + ABC-12345 + ccReg-9523508089 + - - ABC-12345 - ccReg-0854842404 - ``` -### EPP Domain with citizen as an owner returns error when invalid nameservers are present +### EPP Domain with citizen as a registrant returns error when invalid nameservers are present REQUEST: @@ -3025,7 +4643,7 @@ REQUEST: - example63972387399181910.ee + example67443327025915260.ee 1 @@ -3035,10 +4653,10 @@ REQUEST: -invalid2 - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3077,15 +4695,15 @@ RESPONSE: -invalid2 + + ABC-12345 + ccReg-1674811016 + - - ABC-12345 - ccReg-4558439165 - ``` -### EPP Domain with citizen as an owner checks hostAttr presence +### EPP Domain with citizen as a registrant checks hostAttr presence REQUEST: @@ -3095,16 +4713,16 @@ REQUEST: - example64998887953122208.ee + example4862326639681440.ee 1 ns1.example.ee ns2.example.ee - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3134,15 +4752,15 @@ RESPONSE: Required parameter missing: create > create > ns > hostAttr [host_attr] + + ABC-12345 + ccReg-0201147447 + - - ABC-12345 - ccReg-8993773766 - ``` -### EPP Domain with citizen as an owner creates domain with nameservers with ips +### EPP Domain with citizen as a registrant creates domain with nameservers with ips REQUEST: @@ -3152,7 +4770,7 @@ REQUEST: - example66094690867566868.ee + example67163358337402331.ee 1 @@ -3164,10 +4782,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 2fooBAR @@ -3194,20 +4812,20 @@ RESPONSE: - example66094690867566868.ee - 2015-04-02 09:30:40 UTC - 2016-04-02 00:00:00 UTC + example67163358337402331.ee + 2015-05-27 10:43:31 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-8005178303 + - - ABC-12345 - ccReg-8694496624 - ``` -### EPP Domain with citizen as an owner returns error when nameserver has invalid ips +### EPP Domain with citizen as a registrant returns error when nameserver has invalid ips REQUEST: @@ -3217,7 +4835,7 @@ REQUEST: - example74143344678584894.ee + example83921540659724800.ee 1 @@ -3229,10 +4847,10 @@ REQUEST: invalid_ipv6 - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 2fooBAR @@ -3266,15 +4884,15 @@ RESPONSE: INVALID_IPV6 + + ABC-12345 + ccReg-0480672774 + - - ABC-12345 - ccReg-4896771251 - ``` -### EPP Domain with citizen as an owner creates a domain with period in days +### EPP Domain with citizen as a registrant creates a domain with period in days REQUEST: @@ -3284,7 +4902,7 @@ REQUEST: - example68910576882568383.ee + example31168439878572805.ee 1 @@ -3296,10 +4914,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3331,20 +4949,20 @@ RESPONSE: - example68910576882568383.ee - 2015-04-02 09:30:40 UTC - 2016-04-02 00:00:00 UTC + example31168439878572805.ee + 2015-05-27 10:43:31 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-0710914199 + - - ABC-12345 - ccReg-8254662407 - ``` -### EPP Domain with citizen as an owner does not create a domain with invalid period +### EPP Domain with citizen as a registrant does not create a domain with invalid period REQUEST: @@ -3354,7 +4972,7 @@ REQUEST: - example49512361195062727.ee + example91174490590886314.ee 367 @@ -3366,10 +4984,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3402,15 +5020,15 @@ RESPONSE: 367 + + ABC-12345 + ccReg-2677386716 + - - ABC-12345 - ccReg-1464107209 - ``` -### EPP Domain with citizen as an owner creates a domain with multiple dnskeys +### EPP Domain with citizen as a registrant creates a domain with multiple dnskeys REQUEST: @@ -3420,7 +5038,7 @@ REQUEST: - example5422433521677756.ee + example91267215976498865.ee 1 @@ -3432,10 +5050,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3479,20 +5097,20 @@ RESPONSE: - example5422433521677756.ee - 2015-04-02 09:30:40 UTC - 2016-04-02 00:00:00 UTC + example91267215976498865.ee + 2015-05-27 10:43:31 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-6086717774 + - - ABC-12345 - ccReg-3904270163 - ``` -### EPP Domain with citizen as an owner does not create a domain when dnskeys are invalid +### EPP Domain with citizen as a registrant does not create a domain when dnskeys are invalid REQUEST: @@ -3502,7 +5120,7 @@ REQUEST: - example69912340093826806.ee + example45325893459192952.ee 1 @@ -3514,10 +5132,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3595,15 +5213,15 @@ RESPONSE: 5 + + ABC-12345 + ccReg-8175538906 + - - ABC-12345 - ccReg-9441960354 - ``` -### EPP Domain with citizen as an owner does not create a domain with two identical dnskeys +### EPP Domain with citizen as a registrant does not create a domain with two identical dnskeys REQUEST: @@ -3613,7 +5231,7 @@ REQUEST: - example65131165697692498.ee + example15916927116711123.ee 1 @@ -3625,10 +5243,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3667,15 +5285,15 @@ RESPONSE: 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + ABC-12345 + ccReg-9219211054 + - - ABC-12345 - ccReg-6791307481 - ``` -### EPP Domain with citizen as an owner validated dnskeys count +### EPP Domain with citizen as a registrant validated dnskeys count REQUEST: @@ -3685,7 +5303,7 @@ REQUEST: - example45831056679599713.ee + example91454458242964658.ee 1 @@ -3697,10 +5315,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3736,15 +5354,15 @@ RESPONSE: DNS keys count must be between 0-1 [dnskeys] + + ABC-12345 + ccReg-9548686640 + - - ABC-12345 - ccReg-7825718946 - ``` -### EPP Domain with citizen as an owner creates domain with ds data +### EPP Domain with citizen as a registrant creates domain with ds data REQUEST: @@ -3754,7 +5372,7 @@ REQUEST: - example37215299046398843.ee + example71491564741929352.ee 1 @@ -3766,10 +5384,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3801,20 +5419,20 @@ RESPONSE: - example37215299046398843.ee - 2015-04-02 09:30:41 UTC - 2016-04-02 00:00:00 UTC + example71491564741929352.ee + 2015-05-27 10:43:32 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-4235232567 + - - ABC-12345 - ccReg-7095694178 - ``` -### EPP Domain with citizen as an owner creates domain with ds data with key +### EPP Domain with citizen as a registrant creates domain with ds data with key REQUEST: @@ -3824,7 +5442,7 @@ REQUEST: - example67486651509736417.ee + example30406577928067538.ee 1 @@ -3836,10 +5454,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3877,20 +5495,20 @@ RESPONSE: - example67486651509736417.ee - 2015-04-02 09:30:41 UTC - 2016-04-02 00:00:00 UTC + example30406577928067538.ee + 2015-05-27 10:43:32 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-7688480402 + - - ABC-12345 - ccReg-6068198686 - ``` -### EPP Domain with citizen as an owner prohibits dsData +### EPP Domain with citizen as a registrant prohibits dsData REQUEST: @@ -3900,7 +5518,7 @@ REQUEST: - example58465853895457101.ee + example63040009625343060.ee 1 @@ -3912,10 +5530,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -3951,15 +5569,15 @@ RESPONSE: dsData object is not allowed + + ABC-12345 + ccReg-5582933815 + - - ABC-12345 - ccReg-6174712138 - ``` -### EPP Domain with citizen as an owner prohibits keyData +### EPP Domain with citizen as a registrant prohibits keyData REQUEST: @@ -3969,7 +5587,7 @@ REQUEST: - example97193404282661106.ee + example73287430336373315.ee 1 @@ -3981,10 +5599,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -4014,15 +5632,15 @@ RESPONSE: keyData object is not allowed + + ABC-12345 + ccReg-4249180668 + - - ABC-12345 - ccReg-2738595388 - ``` -### EPP Domain with citizen as an owner prohibits dsData and keyData when they exists together +### EPP Domain with citizen as a registrant prohibits dsData and keyData when they exists together REQUEST: @@ -4032,7 +5650,7 @@ REQUEST: - example8349587703882463.ee + example12685922679382848.ee 1 @@ -4044,10 +5662,10 @@ REQUEST: ns2.example.net - citizen_1234 - sh8013 - sh8013 - sh801333 + FIXED:CITIZEN_1234 + FIXED:SH8013 + FIXED:SH8013 + FIXED:SH801333 @@ -4083,15 +5701,15 @@ RESPONSE: Mutually exclusive parameters: extension > create > keyData, extension > create > dsData + + ABC-12345 + ccReg-3972247485 + - - ABC-12345 - ccReg-3820228900 - ``` -### EPP Domain with juridical persion as an owner creates a domain with contacts +### EPP Domain with juridical persion as a registrant creates a domain with contacts REQUEST: @@ -4101,7 +5719,7 @@ REQUEST: - example11522860072959556.ee + example31407412492547028.ee 1 @@ -4113,8 +5731,8 @@ REQUEST: ns2.example.net - juridical_1234 - sh8013 + FIXED:JURIDICAL_1234 + FIXED:SH8013 @@ -4146,20 +5764,20 @@ RESPONSE: - example11522860072959556.ee - 2015-04-02 09:30:41 UTC - 2016-04-02 00:00:00 UTC + example31407412492547028.ee + 2015-05-27 10:43:32 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-4939043794 + - - ABC-12345 - ccReg-7422719300 - ``` -### EPP Domain with juridical persion as an owner does not create a domain without admin contact +### EPP Domain with juridical persion as a registrant does not create a domain without admin contact REQUEST: @@ -4169,7 +5787,7 @@ REQUEST: - example4597088465974685.ee + example43179409594610423.ee 1 @@ -4181,8 +5799,8 @@ REQUEST: ns2.example.net - juridical_1234 - sh8013 + FIXED:JURIDICAL_1234 + FIXED:SH8013 @@ -4212,15 +5830,15 @@ RESPONSE: Admin contacts count must be between 1-10 [admin_domain_contacts] + + ABC-12345 + ccReg-9685299222 + - - ABC-12345 - ccReg-1845021908 - ``` -### EPP Domain with juridical persion as an owner cannot assign juridical person as admin contact +### EPP Domain with juridical persion as a registrant cannot assign juridical person as admin contact REQUEST: @@ -4230,7 +5848,7 @@ REQUEST: - example42791140549073590.ee + example11348446936077523.ee 1 @@ -4242,8 +5860,8 @@ REQUEST: ns2.example.net - juridical_1234 - juridical_1234 + FIXED:JURIDICAL_1234 + FIXED:JURIDICAL_1234 @@ -4273,14 +5891,14 @@ RESPONSE: Admin contact can be private person only - juridical_1234 + FIXED:JURIDICAL_1234 + + ABC-12345 + ccReg-4691511606 + - - ABC-12345 - ccReg-9414004240 - ``` @@ -4324,10 +5942,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-7857345433 - + + ABC-12345 + ccReg-0917111585 + ``` @@ -4342,7 +5960,7 @@ REQUEST: domain1.ee - 6dfc702c9b9f4a4935eddd44e8a9357f + 7e6a4a98534e2582634758ca77ee7148 @@ -4369,18 +5987,18 @@ RESPONSE: domain1.ee serverApproved - 222 - 2015-04-02 09:30:42 UTC - 111 - 2015-04-02 09:30:42 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:32 UTC + REGDOMAIN1 + 2015-05-27 10:43:32 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-3335421781 + - - ABC-12345 - ccReg-8712491017 - ``` @@ -4422,160 +6040,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-1010222202 - - - -``` - -REQUEST: - -```xml - - - - - - domain1.ee - - a1b720f933d963ad93a12169f646de29 - - - - - - JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== - - - ABC-12345 - - -``` - -RESPONSE: - -```xml - - - - - Command completed successfully - - - - domain1.ee - pending - 111 - 2015-04-02 09:30:42 UTC - 222 - 2015-04-02 10:30:42 UTC - 2016-04-02 00:00:00 UTC - - - - - ABC-12345 - ccReg-5304388039 - - -``` - -REQUEST: - -```xml - - - - - - domain1.ee - - a1b720f933d963ad93a12169f646de29 - - - - - - JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== - - - ABC-12345 - - -``` - -RESPONSE: - -```xml - - - - - Command completed successfully - - - - domain1.ee - pending - 111 - 2015-04-02 09:30:42 UTC - 222 - 2015-04-02 10:30:42 UTC - 2016-04-02 00:00:00 UTC - - - - - ABC-12345 - ccReg-6275383342 - - -``` - -REQUEST: - -```xml - - - - - registrar2 - ghyt9e4fu - - 1.0 - en - - - urn:ietf:params:xml:ns:domain-1.0 - urn:ietf:params:xml:ns:contact-1.0 - urn:ietf:params:xml:ns:host-1.0 - urn:ietf:params:xml:ns:keyrelay-1.0 - - urn:ietf:params:xml:ns:secDNS-1.1 - urn:ee:eis:xml:epp:eis-1.0 - - - - ABC-12345 - - -``` - -RESPONSE: - -```xml - - - - - Command completed successfully - - - ABC-12345 - ccReg-5159106216 - + + ABC-12345 + ccReg-6267499339 + ``` @@ -4602,24 +6070,24 @@ RESPONSE: Command completed successfully; ack to dequeue - 2015-04-02 09:30:42 UTC - Transfer requested. + 2015-05-27 10:43:33 UTC + Domain transfer was approved, associated contacts are: ["REGDOMAIN2:2C52859D", "REGDOMAIN2:A464BC75"] domain1.ee - pending - 111 - 2015-04-02 09:30:42 UTC - 222 - 2015-04-02 10:30:42 UTC - 2016-04-02 00:00:00 UTC + serverApproved + REGDOMAIN2 + 2015-05-27 10:43:32 UTC + REGDOMAIN1 + 2015-05-27 10:43:32 UTC + 2016-05-27 00:00:00 UTC - - ABC-12345 - ccReg-1613521643 - + + ABC-12345 + ccReg-9254728904 + ``` @@ -4630,24 +6098,19 @@ REQUEST: - - registrar1 - ghyt9e4fu - - 1.0 - en - - - urn:ietf:params:xml:ns:domain-1.0 - urn:ietf:params:xml:ns:contact-1.0 - urn:ietf:params:xml:ns:host-1.0 - urn:ietf:params:xml:ns:keyrelay-1.0 - - urn:ietf:params:xml:ns:secDNS-1.1 - urn:ee:eis:xml:epp:eis-1.0 - - - + + + domain1.ee + + 055ee8bb38b32b97e378132ff3ca916c + + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + + ABC-12345 @@ -4662,10 +6125,73 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-5553786927 - + + + domain1.ee + pending + REGDOMAIN1 + 2015-05-27 10:43:33 UTC + REGDOMAIN2 + 2015-05-27 11:43:33 UTC + 2016-05-27 00:00:00 UTC + + + + ABC-12345 + ccReg-0275538941 + + + +``` + +REQUEST: + +```xml + + + + + + domain1.ee + + 055ee8bb38b32b97e378132ff3ca916c + + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + domain1.ee + pending + REGDOMAIN1 + 2015-05-27 10:43:33 UTC + REGDOMAIN2 + 2015-05-27 11:43:33 UTC + 2016-05-27 00:00:00 UTC + + + + ABC-12345 + ccReg-0757752457 + ``` @@ -4708,10 +6234,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9831901646 - + + ABC-12345 + ccReg-7935547078 + ``` @@ -4722,7 +6248,7 @@ REQUEST: - + ABC-12345 @@ -4734,14 +6260,28 @@ RESPONSE: - - Command completed successfully + + Command completed successfully; ack to dequeue - - - ABC-12345 - ccReg-2894235467 - + + 2015-05-27 10:43:33 UTC + Transfer requested. + + + + domain1.ee + pending + REGDOMAIN1 + 2015-05-27 10:43:33 UTC + REGDOMAIN2 + 2015-05-27 11:43:33 UTC + 2016-05-27 00:00:00 UTC + + + + ABC-12345 + ccReg-9141426728 + ``` @@ -4784,10 +6324,132 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4269600320 - + + ABC-12345 + ccReg-6011620786 + + + +``` + +REQUEST: + +```xml + + + + + registrar2 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-3668445992 + + + +``` + +REQUEST: + +```xml + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + + ABC-12345 + ccReg-3613917922 + + + +``` + +REQUEST: + +```xml + + + + + registrar1 + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-0925120539 + ``` @@ -4832,10 +6494,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-3699819070 - + + ABC-12345 + ccReg-6028794756 + ``` @@ -4850,7 +6512,7 @@ REQUEST: domain2.ee - 357355fa4e0739928775457accc59549 + a3507d8fe60d7b06de6fa7ee3b7a11ad @@ -4877,18 +6539,18 @@ RESPONSE: domain2.ee pending - 222 - 2015-04-02 09:30:43 UTC - 111 - 2015-04-02 10:30:43 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:34 UTC + REGDOMAIN1 + 2015-05-27 11:43:34 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-7730469220 + - - ABC-12345 - ccReg-5521355427 - ``` @@ -4930,10 +6592,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4791283018 - + + ABC-12345 + ccReg-9035579043 + ``` @@ -4976,10 +6638,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6191445057 - + + ABC-12345 + ccReg-4920254507 + ``` @@ -4994,7 +6656,7 @@ REQUEST: domain2.ee - 357355fa4e0739928775457accc59549 + a3507d8fe60d7b06de6fa7ee3b7a11ad @@ -5021,18 +6683,18 @@ RESPONSE: domain2.ee pending - 222 - 2015-04-02 09:30:43 UTC - 111 - 2015-04-02 10:30:43 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:34 UTC + REGDOMAIN1 + 2015-05-27 11:43:34 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-5694613676 + - - ABC-12345 - ccReg-2972123016 - ``` @@ -5074,10 +6736,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6161338274 - + + ABC-12345 + ccReg-5785816065 + ``` @@ -5122,10 +6784,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9870720384 - + + ABC-12345 + ccReg-7366349974 + ``` @@ -5140,7 +6802,7 @@ REQUEST: domain3.ee - fd41d26f8400b0cacfec33b018795c90 + a0b72c9e75ef63d04bb9ad8715ca48fc @@ -5162,18 +6824,18 @@ RESPONSE: domain3.ee serverApproved - 222 - 2015-04-02 09:30:43 UTC - 111 - 2015-04-02 09:30:43 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:34 UTC + REGDOMAIN1 + 2015-05-27 10:43:34 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-6246328390 + - - ABC-12345 - ccReg-0598613440 - ``` @@ -5215,10 +6877,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-0655089715 - + + ABC-12345 + ccReg-0391926934 + ``` @@ -5263,10 +6925,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-1498176471 - + + ABC-12345 + ccReg-7912772234 + ``` @@ -5281,7 +6943,7 @@ REQUEST: domain4.ee - 469c52225809cea1b5ab5f269b8f0345 + b083517b9f3a926e61702411cdf0c7be @@ -5303,18 +6965,18 @@ RESPONSE: domain4.ee serverApproved - 222 - 2015-04-02 09:30:43 UTC - 111 - 2015-04-02 09:30:43 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:34 UTC + REGDOMAIN1 + 2015-05-27 10:43:35 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-2452237245 + - - ABC-12345 - ccReg-5410410789 - ``` @@ -5356,10 +7018,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6342683850 - + + ABC-12345 + ccReg-5853115117 + ``` @@ -5404,10 +7066,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-8777764252 - + + ABC-12345 + ccReg-7994647230 + ``` @@ -5422,7 +7084,7 @@ REQUEST: domain5.ee - 57127a78f868cc7105550c99f02f5125 + c6ac11f0a30b90e2435872b947f676bc @@ -5444,18 +7106,18 @@ RESPONSE: domain5.ee serverApproved - 222 - 2015-04-02 09:30:44 UTC - 111 - 2015-04-02 09:30:44 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:35 UTC + REGDOMAIN1 + 2015-05-27 10:43:35 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-8456401947 + - - ABC-12345 - ccReg-3717942382 - ``` @@ -5497,10 +7159,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-7884334910 - + + ABC-12345 + ccReg-0451125168 + ``` @@ -5545,10 +7207,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-5998762450 - + + ABC-12345 + ccReg-9996143631 + ``` @@ -5563,7 +7225,7 @@ REQUEST: domain8.ee - 239f7120741566851be43ff27d8098b3 + 15c978c4fdb8c7c8b320ff836238ff24 @@ -5585,18 +7247,18 @@ RESPONSE: domain8.ee serverApproved - 222 - 2015-04-02 09:30:44 UTC - 111 - 2015-04-02 09:30:44 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:36 UTC + REGDOMAIN1 + 2015-05-27 10:43:36 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-6547163770 + - - ABC-12345 - ccReg-9877768476 - ``` @@ -5638,10 +7300,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4014504567 - + + ABC-12345 + ccReg-8938696546 + ``` @@ -5686,10 +7348,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-1519903345 - + + ABC-12345 + ccReg-1935599554 + ``` @@ -5704,7 +7366,7 @@ REQUEST: domain9.ee - 8c05b1875ad30ff1ec29cb184ca02595 + 99e7f00907374d57c7152d5a4cf6306c @@ -5726,18 +7388,18 @@ RESPONSE: domain9.ee serverApproved - 222 - 2015-04-02 09:30:45 UTC - 111 - 2015-04-02 09:30:45 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:36 UTC + REGDOMAIN1 + 2015-05-27 10:43:36 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-6108438709 + - - ABC-12345 - ccReg-6035084608 - ``` @@ -5779,10 +7441,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4665648420 - + + ABC-12345 + ccReg-7842682602 + ``` @@ -5827,10 +7489,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-0827534026 - + + ABC-12345 + ccReg-7725230435 + ``` @@ -5845,7 +7507,7 @@ REQUEST: domain11.ee - 26f350f364ef045477ce75fac2489dee + 02c630c0d9e223719ccd33c01a93a81c @@ -5867,18 +7529,18 @@ RESPONSE: domain11.ee serverApproved - 222 - 2015-04-02 09:30:45 UTC - 111 - 2015-04-02 09:30:45 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:37 UTC + REGDOMAIN1 + 2015-05-27 10:43:37 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-0988527962 + - - ABC-12345 - ccReg-2312727567 - ``` @@ -5920,15 +7582,15 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-2631195876 - + + ABC-12345 + ccReg-1153070739 + ``` -### EPP Domain with valid domain transfers domain and references exsisting owner contact to domain contacts +### EPP Domain with valid domain transfers domain and references exsisting registrant to domain contacts REQUEST: @@ -5968,10 +7630,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4396670784 - + + ABC-12345 + ccReg-1035262117 + ``` @@ -5986,7 +7648,7 @@ REQUEST: domain14.ee - b2b106747e308678a83d2e6eba9149cf + 8c8a24afd65fb32cbea0683f805a2394 @@ -6008,18 +7670,18 @@ RESPONSE: domain14.ee serverApproved - 222 - 2015-04-02 09:30:46 UTC - 111 - 2015-04-02 09:30:46 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:37 UTC + REGDOMAIN1 + 2015-05-27 10:43:37 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-3828737809 + - - ABC-12345 - ccReg-2042346800 - ``` @@ -6061,10 +7723,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-8668462665 - + + ABC-12345 + ccReg-6455795713 + ``` @@ -6109,10 +7771,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-1154374419 - + + ABC-12345 + ccReg-8823340387 + ``` @@ -6127,7 +7789,7 @@ REQUEST: domain15.ee - 3bcc3c532d935e259e3841a8313fdd15 + 0f81c488e43a5ff0d09d9ae2ad89534e @@ -6149,18 +7811,18 @@ RESPONSE: domain15.ee serverApproved - 222 - 2015-04-02 09:30:46 UTC - 111 - 2015-04-02 09:30:46 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:38 UTC + REGDOMAIN1 + 2015-05-27 10:43:38 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-0363538601 + - - ABC-12345 - ccReg-9821029703 - ``` @@ -6202,10 +7864,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4088686497 - + + ABC-12345 + ccReg-5923931571 + ``` @@ -6250,10 +7912,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6492717966 - + + ABC-12345 + ccReg-3627375804 + ``` @@ -6286,11 +7948,11 @@ RESPONSE: Authorization error + + ABC-12345 + ccReg-1686309037 + - - ABC-12345 - ccReg-8048438585 - ``` @@ -6332,10 +7994,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-7296528631 - + + ABC-12345 + ccReg-5701905644 + ``` @@ -6352,7 +8014,7 @@ REQUEST: domain17.ee - 35c48f9b0d4c7d70fb1571a9fff630e8 + 16eb001e706172697a4ae9ab2a7982d2 @@ -6379,18 +8041,18 @@ RESPONSE: domain17.ee clientApproved - 222 - 2015-04-02 09:30:47 UTC - 111 - 2015-04-02 09:30:47 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:38 UTC + REGDOMAIN1 + 2015-05-27 10:43:38 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-4816670665 + - - ABC-12345 - ccReg-8455837335 - ``` @@ -6434,10 +8096,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9895076557 - + + ABC-12345 + ccReg-8804211053 + ``` @@ -6452,7 +8114,7 @@ REQUEST: domain18.ee - 2f1d76dd1d400386194f78986c9a1387 + b9d30de5879c3596d1f8a6c69a832a8a @@ -6475,11 +8137,11 @@ RESPONSE: Transfer can be rejected only by current registrar + + ABC-12345 + ccReg-2803345752 + - - ABC-12345 - ccReg-3480621440 - ``` @@ -6521,10 +8183,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-1371548665 - + + ABC-12345 + ccReg-6778373394 + ``` @@ -6539,7 +8201,7 @@ REQUEST: domain18.ee - 2f1d76dd1d400386194f78986c9a1387 + b9d30de5879c3596d1f8a6c69a832a8a @@ -6566,18 +8228,18 @@ RESPONSE: domain18.ee clientRejected - 222 - 2015-04-02 09:30:47 UTC - 111 - 2015-04-02 09:30:47 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:39 UTC + REGDOMAIN1 + 2015-05-27 10:43:39 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-5197335200 + - - ABC-12345 - ccReg-4727507539 - ``` @@ -6621,10 +8283,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-7738853308 - + + ABC-12345 + ccReg-5888721799 + ``` @@ -6639,7 +8301,7 @@ REQUEST: domain19.ee - 44b3c808fcf89b69de50a5c6daabe206 + d41c85651d45c9289191006f559c9ec8 @@ -6662,11 +8324,11 @@ RESPONSE: Transfer can be approved only by current domain registrar + + ABC-12345 + ccReg-7064775457 + - - ABC-12345 - ccReg-3577435242 - ``` @@ -6708,10 +8370,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-8997502823 - + + ABC-12345 + ccReg-9310455244 + ``` @@ -6751,15 +8413,15 @@ RESPONSE: Authorization error + + ABC-12345 + ccReg-7658729961 + - - ABC-12345 - ccReg-6810281251 - ``` -### EPP Domain with valid domain ignores transfer when owner registrar requests transfer +### EPP Domain with valid domain ignores transfer wha registrant registrar requests transfer REQUEST: @@ -6771,7 +8433,7 @@ REQUEST: domain21.ee - 28ceb4792391b6fef2b39ebaa51efd20 + 8ab45ffd3acddb71c6359404cb4c2c34 @@ -6794,11 +8456,11 @@ RESPONSE: Domain already belongs to the querying registrar + + ABC-12345 + ccReg-1943177997 + - - ABC-12345 - ccReg-9527258829 - ``` @@ -6812,7 +8474,7 @@ REQUEST: - example38015316701110573.ee + example98769030605825402.ee 98oiewslkfkd @@ -6832,11 +8494,11 @@ RESPONSE: Attribute is invalid: op + + ABC-12345 + ccReg-6324054729 + - - ABC-12345 - ccReg-9405995760 - ``` @@ -6880,10 +8542,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6108949505 - + + ABC-12345 + ccReg-2397606336 + ``` @@ -6898,7 +8560,7 @@ REQUEST: domain22.ee - e26e60c11bce975174dd8c0c6eb34d6f + e9bfcbdfeeda4465e3a5f109f2377bca @@ -6925,18 +8587,18 @@ RESPONSE: domain22.ee serverApproved - 222 - 2015-04-02 09:30:48 UTC - 111 - 2015-04-02 09:30:48 UTC - 2016-04-02 00:00:00 UTC + REGDOMAIN2 + 2015-05-27 10:43:40 UTC + REGDOMAIN1 + 2015-05-27 10:43:40 UTC + 2016-05-27 00:00:00 UTC + + ABC-12345 + ccReg-4954465709 + - - ABC-12345 - ccReg-0849827514 - ``` @@ -6950,7 +8612,7 @@ REQUEST: domain22.ee - e26e60c11bce975174dd8c0c6eb34d6f + e9bfcbdfeeda4465e3a5f109f2377bca @@ -6973,11 +8635,11 @@ RESPONSE: Authorization error + + ABC-12345 + ccReg-5087615942 + - - ABC-12345 - ccReg-2282068554 - ``` @@ -7019,10 +8681,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-8548503025 - + + ABC-12345 + ccReg-6484511821 + ``` @@ -7039,7 +8701,7 @@ REQUEST: domain23.ee - 9dc563b201a0bd0719bbad1cfe144c1b + d3e0cefadeefa7f1b2868f852adf1228 @@ -7062,15 +8724,15 @@ RESPONSE: Pending transfer was not found + + ABC-12345 + ccReg-5156334511 + - - ABC-12345 - ccReg-5058318458 - ``` -### EPP Domain with valid domain updates a domain +### EPP Domain with valid domain should update right away without update pending status REQUEST: @@ -7082,7 +8744,7 @@ REQUEST: domain24.ee - citizen_1234 + FIXED:CITIZEN_1234 @@ -7106,11 +8768,99 @@ RESPONSE: Command completed successfully + + ABC-12345 + ccReg-1610390580 + + + +``` + +### EPP Domain with valid domain updates a domain + +REQUEST: + +```xml + + + + + + domain25.ee + + FIXED:CITIZEN_1234 + + + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully; action pending + + + ABC-12345 + ccReg-2809632744 + + + +``` + +### EPP Domain with valid domain should not allow any update when status pending update + +REQUEST: + +```xml + + + + + + domain26.ee + + FIXED:CITIZEN_1234 + + + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Object status prohibits operation + + + ABC-12345 + ccReg-8912347187 + - - ABC-12345 - ccReg-0340648474 - ``` @@ -7124,7 +8874,7 @@ REQUEST: - domain25.ee + domain27.ee @@ -7134,7 +8884,7 @@ REQUEST: ns2.example.com - mak21 + FIXED:MAK21 Payment overdue. @@ -7172,14 +8922,14 @@ RESPONSE: Contact was not found - mak21 + FIXED:MAK21 + + ABC-12345 + ccReg-7279422608 + - - ABC-12345 - ccReg-4989232734 - ``` @@ -7191,7 +8941,7 @@ REQUEST: - domain25.ee + domain27.ee @@ -7201,7 +8951,7 @@ REQUEST: ns2.example.com - mak21 + FIXED:MAK21 Payment overdue. @@ -7239,11 +8989,11 @@ RESPONSE: Command completed successfully + + ABC-12345 + ccReg-3196572742 + - - ABC-12345 - ccReg-2376189737 - ``` @@ -7255,7 +9005,7 @@ REQUEST: - domain25.ee + domain27.ee @@ -7265,7 +9015,7 @@ REQUEST: ns2.example.com - mak21 + FIXED:MAK21 Payment overdue. @@ -7303,25 +9053,19 @@ RESPONSE: Nameserver already exists on this domain [hostname] - ns1.example.com + ns2.example.com Nameserver already exists on this domain [hostname] - ns2.example.com + ns1.example.com Contact already exists on this domain [contact_code_cache] - mak21 - - - - Status already exists on this domain [value] - - clientHold + FIXED:MAK21 @@ -7331,9 +9075,9 @@ RESPONSE: - Public key already exists [public_key] + Status already exists on this domain [value] - 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + clientHold @@ -7342,11 +9086,162 @@ RESPONSE: 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + Public key already exists [public_key] + + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + ABC-12345 + ccReg-3629702536 + + + +``` + +### EPP Domain with valid domain updates domain with registrant change what triggers action pending + +REQUEST: + +```xml + + + + + + domain28.ee + + FIXED:CITIZEN_1234 + + + + + ns1.example.com + + + ns2.example.com + + + FIXED:PENDINGMAK21 + Payment overdue. + + + + + + + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 3 + 254 + 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Contact was not found + + FIXED:PENDINGMAK21 + + + + ABC-12345 + ccReg-0035237276 + + + +``` + +REQUEST: + +```xml + + + + + + domain28.ee + + FIXED:CITIZEN_1234 + + + + + ns1.example.com + + + ns2.example.com + + + FIXED:PENDINGMAK21 + Payment overdue. + + + + + + + + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + 256 + 3 + 254 + 841936717ae427ace63c28d04918569a841936717ae427ace63c28d0 + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully; action pending + + + ABC-12345 + ccReg-2590035754 + - - ABC-12345 - ccReg-8012751067 - ``` @@ -7360,7 +9255,7 @@ REQUEST: - domain26.ee + domain29.ee Payment overdue. @@ -7381,11 +9276,11 @@ RESPONSE: Parameter value policy error. Client-side object status management not supported: status [status] + + ABC-12345 + ccReg-0742932026 + - - ABC-12345 - ccReg-1067863132 - ``` @@ -7399,7 +9294,7 @@ REQUEST: - domain27.ee + domain30.ee @@ -7409,7 +9304,7 @@ REQUEST: ns2.example.com - citizen_1234 + FIXED:CITIZEN_1234 Payment overdue. @@ -7447,11 +9342,11 @@ RESPONSE: Command completed successfully + + ABC-12345 + ccReg-5200564648 + - - ABC-12345 - ccReg-3906653198 - ``` @@ -7463,14 +9358,14 @@ REQUEST: - domain27.ee + domain30.ee ns1.example.com - citizen_1234 + FIXED:CITIZEN_1234 @@ -7498,11 +9393,11 @@ RESPONSE: Command completed successfully + + ABC-12345 + ccReg-0319078323 + - - ABC-12345 - ccReg-8564278542 - ``` @@ -7514,14 +9409,14 @@ REQUEST: - domain27.ee + domain30.ee ns1.example.com - citizen_1234 + FIXED:CITIZEN_1234 @@ -7555,7 +9450,7 @@ RESPONSE: Contact was not found - citizen_1234 + FIXED:CITIZEN_1234 @@ -7570,11 +9465,11 @@ RESPONSE: 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + ABC-12345 + ccReg-1059381148 + - - ABC-12345 - ccReg-5976251561 - ``` @@ -7588,7 +9483,7 @@ REQUEST: - domain28.ee + domain31.ee @@ -7611,11 +9506,11 @@ RESPONSE: serverHold + + ABC-12345 + ccReg-5054919824 + - - ABC-12345 - ccReg-8895696227 - ``` @@ -7629,14 +9524,14 @@ REQUEST: - domain29.ee + domain32.ee - ns.graham84.ee + ns.mclaughlinauer93.ee - sh6892878164 + FIXED:SH1132295975 @@ -7654,11 +9549,11 @@ RESPONSE: Command completed successfully + + ABC-12345 + ccReg-5215036552 + - - ABC-12345 - ccReg-8651137150 - ``` @@ -7670,14 +9565,14 @@ REQUEST: - domain29.ee + domain32.ee - ns.graham84.ee + ns.mclaughlinauer93.ee - sh6892878164 + FIXED:SH1132295975 @@ -7695,20 +9590,20 @@ RESPONSE: Nameserver already exists on this domain [hostname] - ns.graham84.ee + ns.mclaughlinauer93.ee Contact already exists on this domain [contact_code_cache] - sh6892878164 + FIXED:SH1132295975 + + ABC-12345 + ccReg-1074473944 + - - ABC-12345 - ccReg-4328077081 - ``` @@ -7722,9 +9617,9 @@ REQUEST: - domain30.ee + domain33.ee - citizen_1234 + FIXED:CITIZEN_1234 @@ -7742,11 +9637,11 @@ RESPONSE: Required parameter missing: extension > extdata > legalDocument [legal_document] + + ABC-12345 + ccReg-6965471467 + - - ABC-12345 - ccReg-6566236021 - ``` @@ -7760,7 +9655,7 @@ REQUEST: - domain31.ee + domain34.ee @@ -7783,11 +9678,11 @@ RESPONSE: invalidStatus + + ABC-12345 + ccReg-9485651549 + - - ABC-12345 - ccReg-8027057885 - ``` @@ -7801,8 +9696,8 @@ REQUEST: - domain32.ee - 2016-04-02 + domain35.ee + 2016-05-27 1 @@ -7822,14 +9717,14 @@ RESPONSE: - domain32.ee - 2017-04-02 00:00:00 UTC + domain35.ee + 2017-05-27 00:00:00 UTC - - ABC-12345 - ccReg-1155889097 - + + ABC-12345 + ccReg-2938890628 + ``` @@ -7844,7 +9739,7 @@ REQUEST: - domain33.ee + domain36.ee 2200-08-07 1 @@ -7866,11 +9761,11 @@ RESPONSE: 2200-08-07 + + ABC-12345 + ccReg-6690551934 + - - ABC-12345 - ccReg-9921182086 - ``` @@ -7884,8 +9779,8 @@ REQUEST: - domain34.ee - 2016-04-02 + domain37.ee + 2016-05-27 4 @@ -7906,11 +9801,11 @@ RESPONSE: 4 + + ABC-12345 + ccReg-2230915815 + - - ABC-12345 - ccReg-2768552598 - ``` @@ -7924,13 +9819,13 @@ REQUEST: - domain35.ee + domain38.ee 2fooBAR - ABC-12345 + ``` @@ -7946,21 +9841,22 @@ RESPONSE: - domain35.ee + domain38.ee Payment overdue. - sh7284535177 - sh3880278978 + FIXED:REGISTRANT2741815436 + FIXED:SH0138863290 + FIXED:SH2076456589 - ns.baumbach105.ee + ns.gislason114.ee 192.168.1.1 - ns.rosenbaum106.ee + ns.wilkinson115.ee 192.168.1.1 - ns.crooks107.ee + ns.lemke116.ee 192.168.1.1 @@ -7971,47 +9867,46 @@ RESPONSE: registrar1 - 2015-04-02 09:30:51 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:51 UTC + 2015-05-27 10:43:43 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:43 UTC - 33fbbf9a8afc8eaab78beca8da2a9095 + fc35227d625b0f64334a64e79d830693 - - - - - 123 - 3 - 1 - abc - - 257 - 3 + + + + 123 3 - AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 - - - - 123 - 3 - 1 - abc - - 0 - 3 - 5 - 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f - - - - - - ABC-12345 - ccReg-1974888440 - + 1 + abc + + 257 + 3 + 3 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + 123 + 3 + 1 + abc + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + + ccReg-0824479428 + + ``` @@ -8023,13 +9918,13 @@ REQUEST: - domain35.ee + domain38.ee 2fooBAR - ABC-12345 + ``` @@ -8045,21 +9940,22 @@ RESPONSE: - domain35.ee + domain38.ee Payment overdue. - sh7284535177 - sh3880278978 + FIXED:REGISTRANT2741815436 + FIXED:SH0138863290 + FIXED:SH2076456589 - ns.baumbach105.ee + ns.gislason114.ee 192.168.1.1 - ns.rosenbaum106.ee + ns.wilkinson115.ee 192.168.1.1 - ns.crooks107.ee + ns.lemke116.ee 192.168.1.1 @@ -8070,47 +9966,46 @@ RESPONSE: registrar1 - 2015-04-02 09:30:51 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:51 UTC + 2015-05-27 10:43:43 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:43 UTC - 33fbbf9a8afc8eaab78beca8da2a9095 + fc35227d625b0f64334a64e79d830693 - - - - - 123 - 3 - 1 - abc - - 257 - 3 + + + + 123 3 - AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 - - - - 123 - 3 - 1 - abc - - 0 - 3 - 5 - 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f - - - - - - ABC-12345 - ccReg-6008864794 - + 1 + abc + + 257 + 3 + 3 + AwEAAddt2AkLfYGKgiEZB5SmIF8EvrjxNMH6HtxWEA4RJ9Ao6LCWheg8 + + + + 123 + 3 + 1 + abc + + 0 + 3 + 5 + 700b97b591ed27ec2590d19f06f88bba700b97b591ed27ec2590d19f + + + + + + ccReg-2750667963 + + ``` @@ -8124,13 +10019,13 @@ REQUEST: - domain36.ee + domain39.ee 2fooBAR - ABC-12345 + ``` @@ -8144,11 +10039,10 @@ RESPONSE: Attribute is invalid: hosts + + ccReg-0144253530 + - - ABC-12345 - ccReg-3939237932 - ``` @@ -8160,13 +10054,13 @@ REQUEST: - domain36.ee + domain39.ee 2fooBAR - ABC-12345 + ``` @@ -8182,37 +10076,37 @@ RESPONSE: - domain36.ee + domain39.ee - sh4498443879 - sh4355215380 + FIXED:REGISTRANT3507395337 + FIXED:SH9812701792 + FIXED:SH5796684791 - ns1.domain36.ee + ns1.domain39.ee 192.168.1.1 1080:0:0:0:8:800:200C:417A - ns2.domain36.ee + ns2.domain39.ee 192.168.1.1 1080:0:0:0:8:800:200C:417A registrar1 - 2015-04-02 09:30:51 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:51 UTC + 2015-05-27 10:43:43 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:43 UTC - 4b37e8ab04620cef28710d125652e91e + fc42e6becbedb165889c19f43a2540ab + + ccReg-1069575583 + - - ABC-12345 - ccReg-6384280415 - ``` @@ -8224,13 +10118,13 @@ REQUEST: - domain36.ee + domain39.ee 2fooBAR - ABC-12345 + ``` @@ -8246,10 +10140,11 @@ RESPONSE: - domain36.ee + domain39.ee - sh4498443879 - sh4355215380 + FIXED:REGISTRANT3507395337 + FIXED:SH9812701792 + FIXED:SH5796684791 ns3.test.ee @@ -8259,19 +10154,18 @@ RESPONSE: registrar1 - 2015-04-02 09:30:51 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:51 UTC + 2015-05-27 10:43:43 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:43 UTC - 4b37e8ab04620cef28710d125652e91e + fc42e6becbedb165889c19f43a2540ab + + ccReg-0643395459 + - - ABC-12345 - ccReg-8224764132 - ``` @@ -8283,13 +10177,13 @@ REQUEST: - domain36.ee + domain39.ee 2fooBAR - ABC-12345 + ``` @@ -8305,25 +10199,25 @@ RESPONSE: - domain36.ee + domain39.ee - sh4498443879 - sh4355215380 + FIXED:REGISTRANT3507395337 + FIXED:SH9812701792 + FIXED:SH5796684791 registrar1 - 2015-04-02 09:30:51 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:51 UTC + 2015-05-27 10:43:43 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:43 UTC - 4b37e8ab04620cef28710d125652e91e + fc42e6becbedb165889c19f43a2540ab + + ccReg-3688764669 + - - ABC-12345 - ccReg-7332661363 - ``` @@ -8335,13 +10229,13 @@ REQUEST: - domain36.ee + domain39.ee 2fooBAR - ABC-12345 + ``` @@ -8357,18 +10251,19 @@ RESPONSE: - domain36.ee + domain39.ee - sh4498443879 - sh4355215380 + FIXED:REGISTRANT3507395337 + FIXED:SH9812701792 + FIXED:SH5796684791 - ns1.domain36.ee + ns1.domain39.ee 192.168.1.1 1080:0:0:0:8:800:200C:417A - ns2.domain36.ee + ns2.domain39.ee 192.168.1.1 1080:0:0:0:8:800:200C:417A @@ -8380,19 +10275,18 @@ RESPONSE: registrar1 - 2015-04-02 09:30:51 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:51 UTC + 2015-05-27 10:43:43 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:43 UTC - 4b37e8ab04620cef28710d125652e91e + fc42e6becbedb165889c19f43a2540ab + + ccReg-5604815953 + - - ABC-12345 - ccReg-3772303930 - ``` @@ -8412,7 +10306,7 @@ REQUEST: - ABC-12345 + ``` @@ -8429,11 +10323,10 @@ RESPONSE: test.ee + + ccReg-5161660847 + - - ABC-12345 - ccReg-6273798373 - ``` @@ -8447,13 +10340,13 @@ REQUEST: - domain37.ee + domain40.ee 2fooBAR - ABC-12345 + ``` @@ -8469,39 +10362,39 @@ RESPONSE: - domain37.ee + domain40.ee - sh9104935681 - sh8882670882 + FIXED:REGISTRANT0887546238 + FIXED:SH8726482994 + FIXED:SH5179344293 - ns.dickensbeahan111.ee + ns.renner120.ee 192.168.1.1 - ns.hahn112.ee + ns.stiedemann121.ee 192.168.1.1 - ns.price113.ee + ns.walkermitchell122.ee 192.168.1.1 registrar1 - 2015-04-02 09:30:51 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:51 UTC + 2015-05-27 10:43:44 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:44 UTC - 6f92a3b0961e0b502da8b2ba0069f119 + 07b874494197f5d551179bde6c743dc1 + + ccReg-3483125791 + - - ABC-12345 - ccReg-1189117340 - ``` @@ -8545,10 +10438,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-5222570408 - + + ABC-12345 + ccReg-0433009755 + ``` @@ -8561,13 +10454,13 @@ REQUEST: - domain38.ee + domain41.ee 2fooBAR - ABC-12345 + ``` @@ -8581,11 +10474,10 @@ RESPONSE: Authorization error + + ccReg-9728706466 + - - ABC-12345 - ccReg-3637769101 - ``` @@ -8627,10 +10519,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-8212846190 - + + ABC-12345 + ccReg-3974422485 + ``` @@ -8675,10 +10567,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9203907921 - + + ABC-12345 + ccReg-4142452023 + ``` @@ -8691,10 +10583,10 @@ REQUEST: - domain39.ee + domain42.ee - ABC-12345 + ``` @@ -8710,36 +10602,36 @@ RESPONSE: - domain39.ee + domain42.ee - sh9393185485 - sh9937875586 + FIXED:REGISTRANT3430252540 + FIXED:SH3885267898 + FIXED:SH8898454097 - ns.kerlukeschuster117.ee + ns.bauch126.ee 192.168.1.1 - ns.ferrywhite118.ee + ns.millerhudson127.ee 192.168.1.1 - ns.adams119.ee + ns.jakubowskimacgyver128.ee 192.168.1.1 registrar1 - 2015-04-02 09:30:52 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:52 UTC + 2015-05-27 10:43:44 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:44 UTC + + ccReg-3186032703 + - - ABC-12345 - ccReg-0274089113 - ``` @@ -8781,10 +10673,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9142721117 - + + ABC-12345 + ccReg-7433830827 + ``` @@ -8829,10 +10721,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-2646431282 - + + ABC-12345 + ccReg-6666385262 + ``` @@ -8845,13 +10737,13 @@ REQUEST: - domain40.ee + domain43.ee - 82d3c691b479d51300fbc8247864015d + caeb09c88ac3065e75384525e444b28d - ABC-12345 + ``` @@ -8867,39 +10759,39 @@ RESPONSE: - domain40.ee + domain43.ee - sh8178403887 - sh9058803888 + FIXED:REGISTRANT1287087941 + FIXED:SH25240842100 + FIXED:SH4103432799 - ns.lang120.ee + ns.murphysawayn129.ee 192.168.1.1 - ns.krajcik121.ee + ns.parkerbailey130.ee 192.168.1.1 - ns.pfannerstill122.ee + ns.pagac131.ee 192.168.1.1 registrar1 - 2015-04-02 09:30:52 UTC - 2016-04-02 00:00:00 UTC - 2015-04-02 09:30:52 UTC + 2015-05-27 10:43:44 UTC + 2016-05-27 00:00:00 UTC + 2015-05-27 10:43:44 UTC - 82d3c691b479d51300fbc8247864015d + caeb09c88ac3065e75384525e444b28d + + ccReg-0149171551 + - - ABC-12345 - ccReg-1822021145 - ``` @@ -8941,10 +10833,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6032311880 - + + ABC-12345 + ccReg-1852061545 + ``` @@ -8959,7 +10851,7 @@ REQUEST: - domain41.ee + domain44.ee @@ -8978,14 +10870,14 @@ RESPONSE: - - Command completed successfully + + Command completed successfully; action pending + + ABC-12345 + ccReg-2271849131 + - - ABC-12345 - ccReg-0253339129 - ``` @@ -8999,7 +10891,7 @@ REQUEST: - domain42.ee + domain45.ee @@ -9021,11 +10913,51 @@ RESPONSE: Domain status prohibits operation + + ABC-12345 + ccReg-9476531499 + + + +``` + +### EPP Domain with valid domain does not delete domain with pending delete + +REQUEST: + +```xml + + + + + + domain46.ee + + + + + JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Object status prohibits operation + + + ABC-12345 + ccReg-0939566483 + - - ABC-12345 - ccReg-9280243175 - ``` @@ -9056,11 +10988,11 @@ RESPONSE: Required parameter missing: extension > extdata > legalDocument [legal_document] + + ABC-12345 + ccReg-9335855114 + - - ABC-12345 - ccReg-5632446934 - ``` @@ -9098,10 +11030,10 @@ RESPONSE: - - ABC-12345 - ccReg-8120420843 - + + ABC-12345 + ccReg-4928370789 + ``` @@ -9114,7 +11046,7 @@ REQUEST: - domain43.ee + domain47.ee ABC-12345 @@ -9134,15 +11066,15 @@ RESPONSE: - domain43.ee + domain47.ee in use - - ABC-12345 - ccReg-5402119196 - + + ABC-12345 + ccReg-3952532476 + ``` @@ -9189,10 +11121,10 @@ RESPONSE: - - ABC-12345 - ccReg-2847422830 - + + ABC-12345 + ccReg-9733374439 + ``` @@ -9236,10 +11168,10 @@ RESPONSE: - - ABC-12345 - ccReg-2990576653 - + + ABC-12345 + ccReg-8694188647 + ``` @@ -9284,10 +11216,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-3536780546 - + + ABC-12345 + ccReg-5192810508 + ``` @@ -9301,7 +11233,7 @@ REQUEST: - domain44.ee + domain48.ee 256 3 @@ -9309,13 +11241,13 @@ REQUEST: cmlraXN0aGViZXN0 - ec4585b042057eed9d3ce096f64c2b96 + d3e3d1fe3ece74a0927320fb3bb567de P1M13D - 1427967053 + 1432723426 ``` @@ -9326,14 +11258,17 @@ RESPONSE: - - Command completed successfully + + Unimplemented object service + + domain48.ee + + + 1432723426 + ccReg-7694214472 + - - 1427967053 - ccReg-5382286699 - ``` @@ -9346,20 +11281,20 @@ REQUEST: - domain44.ee + domain48.ee 3 8 cmlraXN0aGViZXN0 - ec4585b042057eed9d3ce096f64c2b96 + d3e3d1fe3ece74a0927320fb3bb567de Invalid Expiry - 1427967053 + 1432723426 ``` @@ -9379,11 +11314,11 @@ RESPONSE: Invalid Expiry + + 1432723426 + ccReg-0640451513 + - - 1427967053 - ccReg-1200401461 - ``` @@ -9396,7 +11331,7 @@ REQUEST: - domain44.ee + domain48.ee 256 3 @@ -9404,13 +11339,13 @@ REQUEST: cmlraXN0aGViZXN0 - ec4585b042057eed9d3ce096f64c2b96 + d3e3d1fe3ece74a0927320fb3bb567de Invalid Expiry - 1427967053 + 1432723426 ``` @@ -9427,11 +11362,11 @@ RESPONSE: Invalid Expiry + + 1432723426 + ccReg-7577070399 + - - 1427967053 - ccReg-7444929407 - ``` @@ -9444,7 +11379,7 @@ REQUEST: - domain44.ee + domain48.ee 256 3 @@ -9452,13 +11387,13 @@ REQUEST: cmlraXN0aGViZXN0 - ec4585b042057eed9d3ce096f64c2b96 + d3e3d1fe3ece74a0927320fb3bb567de Invalid Absolute - 1427967053 + 1432723426 ``` @@ -9475,11 +11410,11 @@ RESPONSE: Invalid Absolute + + 1432723426 + ccReg-0078778441 + - - 1427967053 - ccReg-3602131394 - ``` @@ -9492,7 +11427,7 @@ REQUEST: - domain44.ee + domain48.ee 256 3 @@ -9500,14 +11435,14 @@ REQUEST: cmlraXN0aGViZXN0 - ec4585b042057eed9d3ce096f64c2b96 + d3e3d1fe3ece74a0927320fb3bb567de P1D 2014-12-23 - 1427967053 + 1432723426 ``` @@ -9521,11 +11456,11 @@ RESPONSE: Exactly one parameter required: keyrelay > expiry > relative OR keyrelay > expiry > absolute + + 1432723426 + ccReg-9000657815 + - - 1427967053 - ccReg-1904450442 - ``` @@ -9538,7 +11473,7 @@ REQUEST: - domain44.ee + domain48.ee 256 3 @@ -9546,7 +11481,7 @@ REQUEST: cmlraXN0aGViZXN0 - ec4585b042057eed9d3ce096f64c2b96 + d3e3d1fe3ece74a0927320fb3bb567de P1D @@ -9555,7 +11490,7 @@ REQUEST: JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== - 1427967053 + 1432723426 ``` @@ -9566,14 +11501,17 @@ RESPONSE: - - Command completed successfully + + Unimplemented object service + + domain48.ee + + + 1432723426 + ccReg-5852406493 + - - 1427967053 - ccReg-4736415479 - ``` @@ -9586,7 +11524,7 @@ REQUEST: - domain44.ee + domain48.ee 256 3 @@ -9594,7 +11532,7 @@ REQUEST: cmlraXN0aGViZXN0 - ec4585b042057eed9d3ce096f64c2b96 + d3e3d1fe3ece74a0927320fb3bb567de P1D @@ -9603,7 +11541,7 @@ REQUEST: JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp== - 1427967054 + 1432723426 ``` @@ -9617,11 +11555,11 @@ RESPONSE: Attribute is invalid: type + + 1432723426 + ccReg-5724944407 + - - 1427967054 - ccReg-3574524353 - ``` @@ -9663,10 +11601,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-1815017065 - + + ABC-12345 + ccReg-9186607336 + ``` @@ -9680,7 +11618,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -9694,10 +11632,10 @@ RESPONSE: Command completed successfully; no messages - - 1427967054 - ccReg-1728191385 - + + 1432723427 + ccReg-4362839400 + ``` @@ -9742,10 +11680,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6295264865 - + + ABC-12345 + ccReg-0618571136 + ``` @@ -9757,7 +11695,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -9771,10 +11709,10 @@ RESPONSE: Command completed successfully; no messages - - 1427967054 - ccReg-4959006260 - + + 1432723427 + ccReg-9229141591 + ``` @@ -9817,10 +11755,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-7806182071 - + + ABC-12345 + ccReg-7150833559 + ``` @@ -9832,7 +11770,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -9847,13 +11785,13 @@ RESPONSE: Command completed successfully; ack to dequeue - 2015-04-02 09:30:54 UTC + 2015-05-27 10:43:47 UTC Balance low. - - 1427967054 - ccReg-1065036331 - + + 1432723427 + ccReg-6409633797 + ``` @@ -9896,10 +11834,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4737308347 - + + ABC-12345 + ccReg-1091372734 + ``` @@ -9911,7 +11849,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -9928,11 +11866,11 @@ RESPONSE: 1 + + 1432723427 + ccReg-4266035206 + - - 1427967054 - ccReg-5155427619 - ``` @@ -9974,10 +11912,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-6756422935 - + + ABC-12345 + ccReg-5253306865 + ``` @@ -9989,7 +11927,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10004,10 +11942,10 @@ RESPONSE: Command completed successfully - - 1427967054 - ccReg-7615901694 - + + 1432723427 + ccReg-5030345374 + ``` @@ -10019,7 +11957,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10036,11 +11974,11 @@ RESPONSE: 1 + + 1432723427 + ccReg-3853180260 + - - 1427967054 - ccReg-0875606068 - ``` @@ -10053,7 +11991,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10067,11 +12005,11 @@ RESPONSE: Attribute is invalid: op + + 1432723427 + ccReg-4855688629 + - - 1427967054 - ccReg-7102855017 - ``` @@ -10084,7 +12022,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10099,13 +12037,13 @@ RESPONSE: Command completed successfully; ack to dequeue - 2015-04-02 09:30:54 UTC + 2015-05-27 10:43:47 UTC Smth else. - - 1427967054 - ccReg-2968797976 - + + 1432723427 + ccReg-8604749468 + ``` @@ -10117,7 +12055,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10132,10 +12070,10 @@ RESPONSE: Command completed successfully - - 1427967054 - ccReg-8087270127 - + + 1432723427 + ccReg-9137309782 + ``` @@ -10147,7 +12085,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10162,13 +12100,13 @@ RESPONSE: Command completed successfully; ack to dequeue - 2015-04-02 09:30:54 UTC + 2015-05-27 10:43:47 UTC Something. - - 1427967054 - ccReg-4746360314 - + + 1432723427 + ccReg-9591605036 + ``` @@ -10180,7 +12118,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10195,10 +12133,10 @@ RESPONSE: Command completed successfully - - 1427967054 - ccReg-2705511628 - + + 1432723427 + ccReg-3197560707 + ``` @@ -10210,7 +12148,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10225,13 +12163,13 @@ RESPONSE: Command completed successfully; ack to dequeue - 2015-04-02 09:30:54 UTC + 2015-05-27 10:43:47 UTC Balance low. - - 1427967054 - ccReg-3482010110 - + + 1432723427 + ccReg-9671477441 + ``` @@ -10243,7 +12181,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10258,10 +12196,10 @@ RESPONSE: Command completed successfully - - 1427967054 - ccReg-1008015830 - + + 1432723427 + ccReg-9804202574 + ``` @@ -10273,7 +12211,7 @@ REQUEST: - 1427967054 + 1432723427 ``` @@ -10287,10 +12225,10 @@ RESPONSE: Command completed successfully; no messages - - 1427967054 - ccReg-1326047312 - + + 1432723427 + ccReg-8729751147 + ``` @@ -10304,7 +12242,7 @@ RESPONSE: EPP server (EIS) - 2015-04-02T09:30:55Z + 2015-05-27T10:43:48Z 1.0 en @@ -10378,11 +12316,11 @@ RESPONSE: Authentication error; server closing connection + + ABC-12345 + ccReg-7587508443 + - - ABC-12345 - ccReg-7067103299 - ``` @@ -10426,11 +12364,11 @@ RESPONSE: Authentication error; server closing connection + + ABC-12345 + ccReg-7134407379 + - - ABC-12345 - ccReg-9646591596 - ``` @@ -10459,11 +12397,58 @@ RESPONSE: You need to login first. + + ABC-12345 + ccReg-5606311571 + + + +``` + +### EPP Session when connected should not have clTRID in response if client does not send it + +REQUEST: + +```xml + + + + + wrong-user + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + + + +``` + +RESPONSE: + +```xml + + + + + Authentication error; server closing connection + + + ccReg-3376507236 + - - ABC-12345 - ccReg-5691369575 - ``` @@ -10507,10 +12492,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-4033240040 - + + ABC-12345 + ccReg-1053185597 + ``` @@ -10555,10 +12540,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-9199828071 - + + ABC-12345 + ccReg-9585410433 + ``` @@ -10601,11 +12586,11 @@ RESPONSE: Already logged in. Use <logout> first. + + ABC-12345 + ccReg-0652880827 + - - ABC-12345 - ccReg-7373047914 - ``` @@ -10649,10 +12634,10 @@ RESPONSE: Command completed successfully - - ABC-12345 - ccReg-7594007931 - + + ABC-12345 + ccReg-4357103420 + ``` @@ -10678,11 +12663,109 @@ RESPONSE: Command completed successfully; ending session + + ABC-12345 + ccReg-2409810658 + + + +``` + +### EPP Session when connected with valid user changes password and logs in + +REQUEST: + +```xml + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + abcdefg + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Command completed successfully + + + ABC-12345 + ccReg-7664508234 + + + +``` + +### EPP Session when connected with valid user fails if new password is not valid + +REQUEST: + +```xml + + + + + gitlab + ghyt9e4fu + + 1.0 + en + + + urn:ietf:params:xml:ns:domain-1.0 + urn:ietf:params:xml:ns:contact-1.0 + urn:ietf:params:xml:ns:host-1.0 + urn:ietf:params:xml:ns:keyrelay-1.0 + + urn:ietf:params:xml:ns:secDNS-1.1 + urn:ee:eis:xml:epp:eis-1.0 + + + + + ABC-12345 + + +``` + +RESPONSE: + +```xml + + + + + Password is missing [password] + + + ABC-12345 + ccReg-8555388764 + - - ABC-12345 - ccReg-0995963655 - ``` From bd18cc0a85804441298bdcc8976a550a6dac0907 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Wed, 27 May 2015 16:27:41 +0300 Subject: [PATCH 03/23] Fix date formats in EPP #2644 --- app/views/epp/contacts/create.xml.builder | 2 +- app/views/epp/contacts/info.xml.builder | 4 +-- app/views/epp/contacts/update.xml.builder | 2 +- app/views/epp/domains/create.xml.builder | 4 +-- app/views/epp/domains/info.xml.builder | 6 ++-- .../domains/partials/_transfer.xml.builder | 6 ++-- app/views/epp/domains/renew.xml.builder | 2 +- app/views/epp/poll/poll_keyrelay.xml.builder | 4 +-- app/views/epp/poll/poll_req.xml.builder | 2 +- spec/epp/contact_spec.rb | 22 ++++++------ spec/epp/domain_spec.rb | 34 +++++++++---------- 11 files changed, 44 insertions(+), 44 deletions(-) diff --git a/app/views/epp/contacts/create.xml.builder b/app/views/epp/contacts/create.xml.builder index 8e96f27f0..da48d780c 100644 --- a/app/views/epp/contacts/create.xml.builder +++ b/app/views/epp/contacts/create.xml.builder @@ -7,7 +7,7 @@ xml.epp_head do xml.resData do xml.tag!('contact:creData', 'xmlns:contact' => 'urn:ietf:params:xml:ns:contact-1.0') do xml.tag!('contact:id', @contact.code) - xml.tag!('contact:crDate', @contact.created_at) + xml.tag!('contact:crDate', @contact.created_at.try(:iso8601)) end end diff --git a/app/views/epp/contacts/info.xml.builder b/app/views/epp/contacts/info.xml.builder index ce692020c..82edd64b8 100644 --- a/app/views/epp/contacts/info.xml.builder +++ b/app/views/epp/contacts/info.xml.builder @@ -29,10 +29,10 @@ xml.epp_head do xml.tag!('contact:clID', @contact.registrar.try(:name)) xml.tag!('contact:crID', @contact.creator.try(:registrar)) - xml.tag!('contact:crDate', @contact.created_at) + xml.tag!('contact:crDate', @contact.created_at.try(:iso8601)) if @contact.updated_at != @contact.created_at xml.tag!('contact:upID', @contact.updator.try(:registrar)) - xml.tag!('contact:upDate', @contact.updated_at) + xml.tag!('contact:upDate', @contact.updated_at.try(:iso8601)) end # xml.tag!('contact:trDate', '123') if false if can? :view_password, @contact, @password diff --git a/app/views/epp/contacts/update.xml.builder b/app/views/epp/contacts/update.xml.builder index 8e96f27f0..da48d780c 100644 --- a/app/views/epp/contacts/update.xml.builder +++ b/app/views/epp/contacts/update.xml.builder @@ -7,7 +7,7 @@ xml.epp_head do xml.resData do xml.tag!('contact:creData', 'xmlns:contact' => 'urn:ietf:params:xml:ns:contact-1.0') do xml.tag!('contact:id', @contact.code) - xml.tag!('contact:crDate', @contact.created_at) + xml.tag!('contact:crDate', @contact.created_at.try(:iso8601)) end end diff --git a/app/views/epp/domains/create.xml.builder b/app/views/epp/domains/create.xml.builder index 6ccfda07b..ba6661504 100644 --- a/app/views/epp/domains/create.xml.builder +++ b/app/views/epp/domains/create.xml.builder @@ -7,8 +7,8 @@ xml.epp_head do xml.resData do xml.tag!('domain:creData', 'xmlns:domain' => 'urn:ietf:params:xml:ns:domain-1.0') do xml.tag!('domain:name', @domain.name) - xml.tag!('domain:crDate', @domain.created_at) - xml.tag!('domain:exDate', @domain.valid_to) + xml.tag!('domain:crDate', @domain.created_at.try(:iso8601)) + xml.tag!('domain:exDate', @domain.valid_to.try(:iso8601)) end end diff --git a/app/views/epp/domains/info.xml.builder b/app/views/epp/domains/info.xml.builder index 57d4903f0..d4fc26036 100644 --- a/app/views/epp/domains/info.xml.builder +++ b/app/views/epp/domains/info.xml.builder @@ -40,14 +40,14 @@ xml.epp_head do xml.tag!('domain:crID', @domain.creator.try(:registrar)) - xml.tag!('domain:crDate', @domain.created_at) + xml.tag!('domain:crDate', @domain.created_at.try(:iso8601)) - xml.tag!('domain:exDate', @domain.valid_to) + xml.tag!('domain:exDate', @domain.valid_to.try(:iso8601)) # TODO Make domain stampable #xml.tag!('domain:upID', @domain.updated_by) - xml.tag!('domain:upDate', @domain.updated_at) if @domain.updated_at != @domain.created_at + xml.tag!('domain:upDate', @domain.updated_at.try(:iso8601)) if @domain.updated_at != @domain.created_at # TODO Make domain transferrable #xml.tag!('domain:trDate', @domain.transferred_at) if @domain.transferred_at diff --git a/app/views/epp/domains/partials/_transfer.xml.builder b/app/views/epp/domains/partials/_transfer.xml.builder index 893cd7c2e..39f9b147f 100644 --- a/app/views/epp/domains/partials/_transfer.xml.builder +++ b/app/views/epp/domains/partials/_transfer.xml.builder @@ -2,8 +2,8 @@ builder.tag!('domain:trnData', 'xmlns:domain' => 'urn:ietf:params:xml:ns:domain- builder.tag!('domain:name', dt.domain_name) builder.tag!('domain:trStatus', dt.status) builder.tag!('domain:reID', dt.transfer_to.code) - builder.tag!('domain:reDate', dt.transfer_requested_at) + builder.tag!('domain:reDate', dt.transfer_requested_at.try(:iso8601)) builder.tag!('domain:acID', dt.transfer_from.code) - builder.tag!('domain:acDate', dt.transferred_at || dt.wait_until) - builder.tag!('domain:exDate', dt.domain_valid_to) + builder.tag!('domain:acDate', dt.transferred_at.try(:iso8601) || dt.wait_until.try(:iso8601)) + builder.tag!('domain:exDate', dt.domain_valid_to.try(:iso8601)) end diff --git a/app/views/epp/domains/renew.xml.builder b/app/views/epp/domains/renew.xml.builder index f1d2a7742..ea2192c18 100644 --- a/app/views/epp/domains/renew.xml.builder +++ b/app/views/epp/domains/renew.xml.builder @@ -7,7 +7,7 @@ xml.epp_head do xml.resData do xml.tag!('domain:renData', 'xmlns:domain' => 'urn:ietf:params:xml:ns:domain-1.0') do xml.tag!('domain:name', @domain[:name]) - xml.tag!('domain:exDate', @domain.valid_to) + xml.tag!('domain:exDate', @domain.valid_to.try(:iso8601)) end end diff --git a/app/views/epp/poll/poll_keyrelay.xml.builder b/app/views/epp/poll/poll_keyrelay.xml.builder index 4189c6e82..5b037702a 100644 --- a/app/views/epp/poll/poll_keyrelay.xml.builder +++ b/app/views/epp/poll/poll_keyrelay.xml.builder @@ -11,7 +11,7 @@ xml.epp( end xml.tag!('msgQ', 'count' => current_user.queued_messages.count, 'id' => @message.id) do - xml.qDate @message.created_at + xml.qDate @message.created_at.try(:iso8601) xml.msg @message.body end @@ -19,7 +19,7 @@ xml.epp( xml.tag!('keyrelay:response') do xml.tag!('keyrelay:panData') do xml.tag!('keyrelay:name', @object.domain_name) - xml.tag!('keyrelay:paDate', @object.pa_date) + xml.tag!('keyrelay:paDate', @object.pa_date.try(:iso8601)) xml.tag!('keyrelay:keyData') do xml.tag!('secDNS:flags', @object.key_data_flags) diff --git a/app/views/epp/poll/poll_req.xml.builder b/app/views/epp/poll/poll_req.xml.builder index b79ba160b..347f0a632 100644 --- a/app/views/epp/poll/poll_req.xml.builder +++ b/app/views/epp/poll/poll_req.xml.builder @@ -5,7 +5,7 @@ xml.epp_head do end xml.tag!('msgQ', 'count' => current_user.queued_messages.count, 'id' => @message.id) do - xml.qDate @message.created_at + xml.qDate @message.created_at.try(:iso8601) xml.msg @message.body end diff --git a/spec/epp/contact_spec.rb b/spec/epp/contact_spec.rb index 2d92329a4..19a0a3d0d 100644 --- a/spec/epp/contact_spec.rb +++ b/spec/epp/contact_spec.rb @@ -51,19 +51,19 @@ describe 'EPP Contact', epp: true do response = epp_plain_request(@epp_xml.create, :xml) response[:results][0][:msg].should == 'Required parameter missing: create > create > postalInfo > name [name]' - response[:results][1][:msg].should == + response[:results][1][:msg].should == 'Required parameter missing: create > create > postalInfo > addr > street [street]' - response[:results][2][:msg].should == + response[:results][2][:msg].should == 'Required parameter missing: create > create > postalInfo > addr > city [city]' - response[:results][3][:msg].should == + response[:results][3][:msg].should == 'Required parameter missing: create > create > postalInfo > addr > pc [pc]' - response[:results][4][:msg].should == + response[:results][4][:msg].should == 'Required parameter missing: create > create > postalInfo > addr > cc [cc]' - response[:results][5][:msg].should == + response[:results][5][:msg].should == 'Required parameter missing: create > create > voice [voice]' - response[:results][6][:msg].should == + response[:results][6][:msg].should == 'Required parameter missing: create > create > email [email]' - response[:results][7][:msg].should == + response[:results][7][:msg].should == 'Required parameter missing: extension > extdata > ident [ident]' response[:results][0][:result_code].should == '2003' @@ -299,7 +299,7 @@ describe 'EPP Contact', epp: true do response = update_request({ id: { value: 'FIRST0:SH8013' } }) response[:msg].should == 'Command completed successfully' - + @contact.reload @contact.name.should == 'John Doe Edited' @contact.email.should == 'edited@example.example' @@ -629,12 +629,12 @@ describe 'EPP Contact', epp: true do id: { value: 'FIRST0:SH8013' }, authInfo: { pw: { value: 'password' } }, rem: { - postalInfo: { org: { value: 'not important' } } + postalInfo: { org: { value: 'not important' } } } }) response = epp_plain_request(xml, :xml) - response[:results][0][:msg].should == + response[:results][0][:msg].should == 'Parameter value policy error. Org must be blank: postalInfo > org [org]' response[:results][0][:result_code].should == '2306' end @@ -644,7 +644,7 @@ describe 'EPP Contact', epp: true do id: { value: 'FIRST0:SH8013' }, authInfo: { pw: { value: 'password' } }, rem: { - postalInfo: { + postalInfo: { name: { value: 'not important' } } } diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index b886e229e..0440e6995 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -88,8 +88,8 @@ describe 'EPP Domain', epp: true do cre_data = response[:parsed].css('creData') cre_data.css('name').text.should == dn - cre_data.css('crDate').text.should == d.created_at.to_time.utc.to_s - cre_data.css('exDate').text.should == d.valid_to.to_time.utc.to_s + cre_data.css('crDate').text.should == d.created_at.to_time.utc.iso8601 + cre_data.css('exDate').text.should == d.valid_to.to_time.utc.iso8601 response[:clTRID].should == 'ABC-12345' @@ -733,10 +733,10 @@ describe 'EPP Domain', epp: true do trn_data.css('name').text.should == domain.name trn_data.css('trStatus').text.should == 'serverApproved' trn_data.css('reID').text.should == 'REGDOMAIN2' - trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s + trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601 trn_data.css('acID').text.should == 'REGDOMAIN1' - trn_data.css('acDate').text.should == dtl.transferred_at.to_time.utc.to_s - trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s + trn_data.css('acDate').text.should == dtl.transferred_at.to_time.utc.iso8601 + trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601 domain.registrar.should == @registrar2 @@ -777,10 +777,10 @@ describe 'EPP Domain', epp: true do trn_data.css('name').text.should == domain.name trn_data.css('trStatus').text.should == 'pending' trn_data.css('reID').text.should == 'REGDOMAIN1' - trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s - trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.to_s + trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601 + trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.iso8601 trn_data.css('acID').text.should == 'REGDOMAIN2' - trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s + trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601 domain.registrar.should == @registrar2 @@ -792,10 +792,10 @@ describe 'EPP Domain', epp: true do trn_data.css('name').text.should == domain.name trn_data.css('trStatus').text.should == 'pending' trn_data.css('reID').text.should == 'REGDOMAIN1' - trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s - trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.to_s + trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601 + trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.iso8601 trn_data.css('acID').text.should == 'REGDOMAIN2' - trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s + trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601 domain.registrar.should == @registrar2 @@ -1199,9 +1199,9 @@ describe 'EPP Domain', epp: true do trn_data.css('name').text.should == domain.name trn_data.css('trStatus').text.should == 'clientApproved' trn_data.css('reID').text.should == 'REGDOMAIN2' - trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s + trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601 trn_data.css('acID').text.should == 'REGDOMAIN1' - trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s + trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601 end it 'rejects a domain transfer' do @@ -1870,7 +1870,7 @@ describe 'EPP Domain', epp: true do ex_date = response[:parsed].css('renData exDate').text name = response[:parsed].css('renData name').text - ex_date.should == "#{(exp_date + 1.year)} 00:00:00 UTC" + ex_date.should == "#{(exp_date + 1.year)}T00:00:00Z" name.should == domain.name end @@ -1957,8 +1957,8 @@ describe 'EPP Domain', epp: true do ns1.css('hostName').last.text.should == 'ns1.example.com' ns1.css('hostAddr').first.text.should == '192.168.1.1' ns1.css('hostAddr').last.text.should == '1080:0:0:0:8:800:200C:417A' - inf_data.css('crDate').text.should == domain.created_at.to_time.utc.to_s - inf_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s + inf_data.css('crDate').text.should == domain.created_at.to_time.utc.iso8601 + inf_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601 inf_data.css('pw').text.should == domain.auth_info ds_data_1 = response[:parsed].css('dsData')[0] @@ -1987,7 +1987,7 @@ describe 'EPP Domain', epp: true do response = epp_plain_request(domain_info_xml(name: { value: domain.name }), :xml) inf_data = response[:parsed].css('resData infData') - inf_data.css('upDate').text.should == domain.updated_at.to_time.utc.to_s + inf_data.css('upDate').text.should == domain.updated_at.to_time.utc.iso8601 end it 'returns domain info with different nameservers' do From 573349d0b61a1ff4ecbca7243167fe7a3d77e168 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Thu, 28 May 2015 12:07:18 +0300 Subject: [PATCH 04/23] Allow removing contacts one by one #2596 --- app/models/depp/domain.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/models/depp/domain.rb b/app/models/depp/domain.rb index 857f74fb2..4a13d5ba5 100644 --- a/app/models/depp/domain.rb +++ b/app/models/depp/domain.rb @@ -192,10 +192,10 @@ module Depp end def construct_edit_hash(domain_params, old_domain_params) - contacts = create_contacts_hash(domain_params) - create_contacts_hash(old_domain_params) + contacts = array_difference(create_contacts_hash(domain_params), create_contacts_hash(old_domain_params)) add_anon = contacts - contacts = create_contacts_hash(old_domain_params) - create_contacts_hash(domain_params) + contacts = array_difference(create_contacts_hash(old_domain_params), create_contacts_hash(domain_params)) rem_anon = contacts if domain_params[:registrant] != old_domain_params[:registrant] @@ -284,6 +284,15 @@ module Depp pubKey: { value: key_data_params['public_key'] } } end + + def array_difference(x, y) + ret = x.dup + y.each do |element| + index = ret.index(element) + ret.delete_at(index) if index + end + ret + end end end end From a9449bb05e461ef07c22fc0134bdecd5adff5b8e Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Thu, 28 May 2015 12:29:37 +0300 Subject: [PATCH 05/23] Revert "Remove Gitlab internal documents" This reverts commit e8d7f02ce5754f9a3235bba4d1d9514ede8c9a63. --- doc/schemas/contact-1.0.xsd | 408 +++++++++++++++++++++++++++++++++ doc/schemas/domain-1.0.xsd | 432 +++++++++++++++++++++++++++++++++++ doc/schemas/epp-1.0.xsd | 443 ++++++++++++++++++++++++++++++++++++ doc/schemas/eppcom-1.0.xsd | 105 +++++++++ doc/schemas/host-1.0.xsd | 244 ++++++++++++++++++++ 5 files changed, 1632 insertions(+) create mode 100644 doc/schemas/contact-1.0.xsd create mode 100644 doc/schemas/domain-1.0.xsd create mode 100644 doc/schemas/epp-1.0.xsd create mode 100644 doc/schemas/eppcom-1.0.xsd create mode 100644 doc/schemas/host-1.0.xsd diff --git a/doc/schemas/contact-1.0.xsd b/doc/schemas/contact-1.0.xsd new file mode 100644 index 000000000..dc2b366e6 --- /dev/null +++ b/doc/schemas/contact-1.0.xsd @@ -0,0 +1,408 @@ + + + + + + + + + + + Extensible Provisioning Protocol v1.0 + contact provisioning schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/schemas/domain-1.0.xsd b/doc/schemas/domain-1.0.xsd new file mode 100644 index 000000000..0774da0a8 --- /dev/null +++ b/doc/schemas/domain-1.0.xsd @@ -0,0 +1,432 @@ + + + + + + + + + + + + Extensible Provisioning Protocol v1.0 + domain provisioning schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/schemas/epp-1.0.xsd b/doc/schemas/epp-1.0.xsd new file mode 100644 index 000000000..1efc25947 --- /dev/null +++ b/doc/schemas/epp-1.0.xsd @@ -0,0 +1,443 @@ + + + + + + + + + + Extensible Provisioning Protocol v1.0 schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/schemas/eppcom-1.0.xsd b/doc/schemas/eppcom-1.0.xsd new file mode 100644 index 000000000..d6ef94b24 --- /dev/null +++ b/doc/schemas/eppcom-1.0.xsd @@ -0,0 +1,105 @@ + + + + + + + Extensible Provisioning Protocol v1.0 + shared structures schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/schemas/host-1.0.xsd b/doc/schemas/host-1.0.xsd new file mode 100644 index 000000000..47015ec83 --- /dev/null +++ b/doc/schemas/host-1.0.xsd @@ -0,0 +1,244 @@ + + + + + + + + + + + Extensible Provisioning Protocol v1.0 + host provisioning schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 340ca96d1eefffdcee8d6c8185413b9d6d742e1c Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Thu, 28 May 2015 17:02:59 +0300 Subject: [PATCH 06/23] Added more epp tests about domain verify logic #2557 --- spec/epp/domain_spec.rb | 77 ++++++++++++++++++++++++++++++++++++++ spec/models/domain_spec.rb | 21 +++++++++++ 2 files changed, 98 insertions(+) diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index 0440e6995..f222f5abb 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -1411,6 +1411,83 @@ describe 'EPP Domain', epp: true do d.pending_update?.should == true end + it 'should not return action pending when changes are invalid' do + existing_pw = domain.auth_info + + xml_params = { + name: { value: domain.name }, + chg: [ + registrant: { value: 'FIXED:CITIZEN_1234' } + ], + rem: + domain.nameservers.map do |ns| + { + ns: [ + { + hostAttr: [ + { hostName: { value: ns.hostname } } + ] + } + ] + } + end + } + + response = epp_plain_request(domain_update_xml(xml_params, {}, { + _anonymus: [ + legalDocument: { + value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + attrs: { type: 'pdf' } + } + ] + }), :xml) + + response[:results][0][:msg].should == 'Nameservers count must be between 2-11 [nameservers]' + response[:results][0][:result_code].should == '2004' + + d = Domain.last + + d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update, because pending + d.auth_info.should == existing_pw + d.nameservers.size == 3 + d.pending_update?.should == false + end + + it 'should not return action pending when domain itself is already invaid' do + domain_id = domain.id + domain.nameservers.delete_all + domain.save(validate: false) + domain.reload.nameservers.size.should == 0 + + existing_pw = domain.auth_info + + xml_params = { + name: { value: domain.name }, + chg: [ + registrant: { value: 'FIXED:CITIZEN_1234' } + ] + } + + response = epp_plain_request(domain_update_xml(xml_params, {}, { + _anonymus: [ + legalDocument: { + value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + attrs: { type: 'pdf' } + } + ] + }), :xml) + + response[:results][0][:msg].should == 'Nameservers count must be between 2-11 [nameservers]' + response[:results][0][:result_code].should == '2004' + + d = Domain.find(domain_id) + + d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update, because pending + d.auth_info.should == existing_pw + d.nameservers.size.should == 0 + d.pending_update?.should == false + end + it 'should not allow any update when status pending update' do domain.domain_statuses.create(value: DomainStatus::PENDING_UPDATE) diff --git a/spec/models/domain_spec.rb b/spec/models/domain_spec.rb index 56d9ee57f..741721f4e 100644 --- a/spec/models/domain_spec.rb +++ b/spec/models/domain_spec.rb @@ -106,6 +106,27 @@ describe Domain do end end + context 'about registrant update confirm when domain is invalid' do + before :all do + @domain.registrant_verification_token = 123 + @domain.registrant_verification_asked_at = Time.zone.now + @domain.domain_statuses.create(value: DomainStatus::PENDING_UPDATE) + end + + it 'should be registrant update confirm ready' do + @domain.registrant_update_confirmable?('123').should == true + end + + it 'should not be registrant update confirm ready when token does not match' do + @domain.registrant_update_confirmable?('wrong-token').should == false + end + + it 'should not be registrant update confirm ready when no correct status' do + @domain.domain_statuses.delete_all + @domain.registrant_update_confirmable?('123').should == false + end + end + context 'with versioning' do it 'should not have one version' do with_versioning do From 2ecce2141ec6a64dcdc5b090e8f1958257aa70cc Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Thu, 28 May 2015 18:39:26 +0300 Subject: [PATCH 07/23] Add schema validations for session spec #2660 --- Gemfile | 2 +- Gemfile.lock | 4 ++-- spec/epp/contact_spec.rb | 9 --------- spec/epp/requests/contacts/renew.xml | 15 --------------- spec/epp/session_spec.rb | 23 ++++++++++++++++++++--- spec/support/epp.rb | 28 ++++++++++++++++++++-------- 6 files changed, 43 insertions(+), 38 deletions(-) delete mode 100644 spec/epp/requests/contacts/renew.xml diff --git a/Gemfile b/Gemfile index ee11fae90..878dc62bf 100644 --- a/Gemfile +++ b/Gemfile @@ -68,7 +68,7 @@ gem 'digidoc_client', '~> 0.2.1' # epp gem 'epp', '~> 1.4.2', github: 'gitlabeu/epp' -gem 'epp-xml', '~> 0.10.4' # EPP XMLs +gem 'epp-xml', '~> 1.0.1' # EPP XMLs gem 'uuidtools', '~> 2.1.4' # For unique IDs (used by the epp gem) # for importing legacy db diff --git a/Gemfile.lock b/Gemfile.lock index 859830bbf..9b674285f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -161,7 +161,7 @@ GEM nokogiri (>= 1.4.0) savon (>= 2.4.0) docile (1.1.5) - epp-xml (0.10.4) + epp-xml (1.0.1) activesupport (~> 4.1) builder (~> 3.2) equalizer (0.0.11) @@ -512,7 +512,7 @@ DEPENDENCIES devise (~> 3.4.1) digidoc_client (~> 0.2.1) epp (~> 1.4.2)! - epp-xml (~> 0.10.4) + epp-xml (~> 1.0.1) fabrication (~> 2.12.2) faker (~> 1.3.0) figaro (~> 1.1.0) diff --git a/spec/epp/contact_spec.rb b/spec/epp/contact_spec.rb index 19a0a3d0d..02540e109 100644 --- a/spec/epp/contact_spec.rb +++ b/spec/epp/contact_spec.rb @@ -939,15 +939,6 @@ describe 'EPP Contact', epp: true do end end end - - context 'renew command' do - it 'returns 2101-unimplemented command' do - response = epp_plain_request('contacts/renew.xml') - - response[:msg].should == 'Unimplemented command' - response[:result_code].should == '2101' - end - end end def check_multiple_contacts_xml diff --git a/spec/epp/requests/contacts/renew.xml b/spec/epp/requests/contacts/renew.xml deleted file mode 100644 index aeffaa569..000000000 --- a/spec/epp/requests/contacts/renew.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - info-4444 - - 2fooBAR - - - - ABC-12345 - - diff --git a/spec/epp/session_spec.rb b/spec/epp/session_spec.rb index 4f4cde6c4..cdc36d2ee 100644 --- a/spec/epp/session_spec.rb +++ b/spec/epp/session_spec.rb @@ -5,6 +5,7 @@ describe 'EPP Session', epp: true do @api_user = Fabricate(:gitlab_api_user) @epp_xml = EppXml.new(cl_trid: 'ABC-12345') @login_xml_cache = @epp_xml.session.login(clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' }) + @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/epp-1.0.xsd')) end context 'when not connected' do @@ -40,14 +41,15 @@ describe 'EPP Session', epp: true do end it 'prohibits further actions unless logged in' do - response = epp_plain_request(@epp_xml.domain.create, :xml) + @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/domain-1.0.xsd')) + response = epp_plain_request(@epp_xml.domain.info(name: { value: 'test.ee' }), :xml) response[:msg].should == 'You need to login first.' response[:result_code].should == '2002' response[:clTRID].should == 'ABC-12345' end it 'should not have clTRID in response if client does not send it' do - epp_xml_no_cltrid = EppXml.new(cl_trid: '') + epp_xml_no_cltrid = EppXml.new(cl_trid: false) wrong_user = epp_xml_no_cltrid.session.login(clID: { value: 'wrong-user' }, pw: { value: 'ghyt9e4fu' }) response = epp_plain_request(wrong_user, :xml) response[:clTRID].should be_nil @@ -115,7 +117,22 @@ describe 'EPP Session', epp: true do clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' }, newPW: { value: '' } - ), :xml) + ), validate_input: false) + + response[:msg].should == 'Password is missing [password]' + response[:result_code].should == '2306' + + @api_user.reload + @api_user.password.should == 'ghyt9e4fu' + end + + it 'fails if new password is not valid' do + @api_user.update(password: 'ghyt9e4fu') + response = epp_plain_request(@epp_xml.session.login( + clID: { value: 'gitlab' }, + pw: { value: 'ghyt9e4fu' }, + newPW: { value: '' } + ), validate_input: false) response[:msg].should == 'Password is missing [password]' response[:result_code].should == '2306' diff --git a/spec/support/epp.rb b/spec/support/epp.rb index f877bfc2f..9673b8db7 100644 --- a/spec/support/epp.rb +++ b/spec/support/epp.rb @@ -66,15 +66,27 @@ module Epp end def epp_plain_request(data, *args) - res = parse_response(server.send_request(data)) if args.include?(:xml) - if res - log(data, res[:parsed]) - return res + options = args.extract_options! + validate_input = options[:validate_input] != false # true by default + validate_output = options[:validate_output] != false # true by default + + if validate_input && @xsd + xml = Nokogiri::XML(data) + @xsd.validate(xml).each do |error| + fail Exception.new, error.to_s + end end - res = parse_response(server.send_request(read_body(data))) - log(read_body(data), res[:parsed]) - return res + res = parse_response(server.send_request(data)) + if res + log(data, res[:parsed]) + if validate_output && @xsd + @xsd.validate(Nokogiri(res[:raw])).each do |error| + fail Exception.new, error.to_s + end + end + return res + end rescue => e e end @@ -127,7 +139,7 @@ module Epp xml_params = defaults.deep_merge(xml_params) - epp_xml = EppXml::Domain.new(cl_trid: '') + epp_xml = EppXml::Domain.new(cl_trid: false) epp_xml.info(xml_params) end From 5953d3e5ea37fe4df3ceae36f09ef64c09e05f99 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 29 May 2015 10:43:48 +0300 Subject: [PATCH 08/23] Remove xml type from epp_request call #2660 --- spec/epp/session_spec.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/epp/session_spec.rb b/spec/epp/session_spec.rb index cdc36d2ee..b8a0d6c21 100644 --- a/spec/epp/session_spec.rb +++ b/spec/epp/session_spec.rb @@ -24,7 +24,7 @@ describe 'EPP Session', epp: true do it 'does not log in with invalid user' do wrong_user = @epp_xml.session.login(clID: { value: 'wrong-user' }, pw: { value: 'ghyt9e4fu' }) - response = epp_plain_request(wrong_user, :xml) + response = epp_plain_request(wrong_user) response[:msg].should == 'Authentication error; server closing connection' response[:result_code].should == '2501' response[:clTRID].should == 'ABC-12345' @@ -35,14 +35,14 @@ describe 'EPP Session', epp: true do Fabricate(:api_user, username: 'inactive-user', active: false, registrar: @registrar) inactive = @epp_xml.session.login(clID: { value: 'inactive-user' }, pw: { value: 'ghyt9e4fu' }) - response = epp_plain_request(inactive, :xml) + response = epp_plain_request(inactive) response[:msg].should == 'Authentication error; server closing connection' response[:result_code].should == '2501' end it 'prohibits further actions unless logged in' do @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/domain-1.0.xsd')) - response = epp_plain_request(@epp_xml.domain.info(name: { value: 'test.ee' }), :xml) + response = epp_plain_request(@epp_xml.domain.info(name: { value: 'test.ee' })) response[:msg].should == 'You need to login first.' response[:result_code].should == '2002' response[:clTRID].should == 'ABC-12345' @@ -51,13 +51,13 @@ describe 'EPP Session', epp: true do it 'should not have clTRID in response if client does not send it' do epp_xml_no_cltrid = EppXml.new(cl_trid: false) wrong_user = epp_xml_no_cltrid.session.login(clID: { value: 'wrong-user' }, pw: { value: 'ghyt9e4fu' }) - response = epp_plain_request(wrong_user, :xml) + response = epp_plain_request(wrong_user) response[:clTRID].should be_nil end context 'with valid user' do it 'logs in epp user' do - response = epp_plain_request(@login_xml_cache, :xml) + response = epp_plain_request(@login_xml_cache) response[:msg].should == 'Command completed successfully' response[:result_code].should == '1000' response[:clTRID].should == 'ABC-12345' @@ -69,12 +69,12 @@ describe 'EPP Session', epp: true do end it 'does not log in twice' do - response = epp_plain_request(@login_xml_cache, :xml) + response = epp_plain_request(@login_xml_cache) response[:msg].should == 'Command completed successfully' response[:result_code].should == '1000' response[:clTRID].should == 'ABC-12345' - response = epp_plain_request(@login_xml_cache, :xml) + response = epp_plain_request(@login_xml_cache) response[:msg].should match(/Already logged in. Use/) response[:result_code].should == '2002' @@ -86,10 +86,10 @@ describe 'EPP Session', epp: true do it 'logs out epp user' do c = EppSession.count - epp_plain_request(@login_xml_cache, :xml) + epp_plain_request(@login_xml_cache) EppSession.count.should == c + 1 - response = epp_plain_request(@epp_xml.session.logout, :xml) + response = epp_plain_request(@epp_xml.session.logout) response[:msg].should == 'Command completed successfully; ending session' response[:result_code].should == '1500' @@ -102,7 +102,7 @@ describe 'EPP Session', epp: true do clID: { value: 'gitlab' }, pw: { value: 'ghyt9e4fu' }, newPW: { value: 'abcdefg' } - ), :xml) + )) response[:msg].should == 'Command completed successfully' response[:result_code].should == '1000' From ec2fa3532c52713ff7975393216d1e3e7d24e7a6 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 29 May 2015 15:36:39 +0300 Subject: [PATCH 09/23] Add secDNS and custom eis schemas #2660 --- doc/schemas/domain-1.0.xsd | 4 +- doc/schemas/eis-1.0.xsd | 74 +++++++++++++++++++++ doc/schemas/eppcom-1.0.xsd | 4 +- doc/schemas/secDNS-1.1.xsd | 130 +++++++++++++++++++++++++++++++++++++ spec/epp/domain_spec.rb | 35 +++++----- spec/support/epp.rb | 8 +-- 6 files changed, 231 insertions(+), 24 deletions(-) create mode 100644 doc/schemas/eis-1.0.xsd create mode 100644 doc/schemas/secDNS-1.1.xsd diff --git a/doc/schemas/domain-1.0.xsd b/doc/schemas/domain-1.0.xsd index 0774da0a8..baf63a658 100644 --- a/doc/schemas/domain-1.0.xsd +++ b/doc/schemas/domain-1.0.xsd @@ -14,6 +14,8 @@ + + @@ -46,7 +48,7 @@ minOccurs="0"/> - + diff --git a/doc/schemas/eis-1.0.xsd b/doc/schemas/eis-1.0.xsd new file mode 100644 index 000000000..390c45579 --- /dev/null +++ b/doc/schemas/eis-1.0.xsd @@ -0,0 +1,74 @@ + + + + + + EIS Extensible Provisioning Protocol v1.0 + extension schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/schemas/eppcom-1.0.xsd b/doc/schemas/eppcom-1.0.xsd index d6ef94b24..9d022b458 100644 --- a/doc/schemas/eppcom-1.0.xsd +++ b/doc/schemas/eppcom-1.0.xsd @@ -53,7 +53,7 @@ Abstract client and object identifier type. - + @@ -102,4 +102,4 @@ Transfer status identifiers. - \ No newline at end of file + diff --git a/doc/schemas/secDNS-1.1.xsd b/doc/schemas/secDNS-1.1.xsd new file mode 100644 index 000000000..e9fe3f65a --- /dev/null +++ b/doc/schemas/secDNS-1.1.xsd @@ -0,0 +1,130 @@ + + + + + + Extensible Provisioning Protocol v1.0 + domain name extension schema + for provisioning DNS security (DNSSEC) extensions. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index 0440e6995..40f628558 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -2,6 +2,7 @@ require 'rails_helper' describe 'EPP Domain', epp: true do before(:all) do + @xsd = Nokogiri::XML::Schema(File.read('doc/schemas/domain-1.0.xsd')) @epp_xml = EppXml.new(cl_trid: 'ABC-12345') @registrar1 = Fabricate(:registrar1, code: 'REGDOMAIN1') @registrar2 = Fabricate(:registrar2, code: 'REGDOMAIN2') @@ -716,7 +717,7 @@ describe 'EPP Domain', epp: true do }, 'query', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -760,7 +761,7 @@ describe 'EPP Domain', epp: true do }, 'query', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -838,7 +839,7 @@ describe 'EPP Domain', epp: true do }, 'query', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1183,7 +1184,7 @@ describe 'EPP Domain', epp: true do }, 'approve', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1219,7 +1220,7 @@ describe 'EPP Domain', epp: true do }, 'reject', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1253,7 +1254,7 @@ describe 'EPP Domain', epp: true do }, 'approve', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1274,7 +1275,7 @@ describe 'EPP Domain', epp: true do }, 'query', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1293,7 +1294,7 @@ describe 'EPP Domain', epp: true do }, 'query', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1319,7 +1320,7 @@ describe 'EPP Domain', epp: true do }, 'query', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1341,7 +1342,7 @@ describe 'EPP Domain', epp: true do }, 'approve', { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1366,7 +1367,7 @@ describe 'EPP Domain', epp: true do response = epp_plain_request(domain_update_xml(xml_params, {}, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1395,7 +1396,7 @@ describe 'EPP Domain', epp: true do response = epp_plain_request(domain_update_xml(xml_params, {}, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1426,7 +1427,7 @@ describe 'EPP Domain', epp: true do response = epp_plain_request(domain_update_xml(xml_params, {}, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1616,7 +1617,7 @@ describe 'EPP Domain', epp: true do { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -2085,7 +2086,7 @@ describe 'EPP Domain', epp: true do }, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -2105,7 +2106,7 @@ describe 'EPP Domain', epp: true do }, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -2123,7 +2124,7 @@ describe 'EPP Domain', epp: true do }, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] diff --git a/spec/support/epp.rb b/spec/support/epp.rb index 9673b8db7..5e9847d48 100644 --- a/spec/support/epp.rb +++ b/spec/support/epp.rb @@ -188,7 +188,7 @@ module Epp custom_params = { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -231,7 +231,7 @@ module Epp epp_xml.create(xml_params, {}, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -272,7 +272,7 @@ module Epp custom_params = { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -316,7 +316,7 @@ module Epp custom_params = { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] From 1fde3884bde1ee6d2618d64360a14802f10df9dc Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 29 May 2015 15:44:59 +0300 Subject: [PATCH 10/23] Fix contact and ns tests #2660 --- spec/epp/domain_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index 40f628558..441c55ac1 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -199,7 +199,7 @@ describe 'EPP Domain', epp: true do end it 'does not create domain without contacts and registrant' do - xml = domain_create_xml(contacts: [], registrant: false) + xml = domain_create_xml(_anonymus: [], registrant: false) response = epp_plain_request(xml, :xml) response[:results][0][:result_code].should == '2003' @@ -208,8 +208,8 @@ describe 'EPP Domain', epp: true do end it 'does not create domain without nameservers' do - xml = domain_create_xml(ns: []) - response = epp_plain_request(xml, :xml) + xml = domain_create_xml(ns: nil) + response = epp_plain_request(xml) response[:results][0][:msg].should == 'Required parameter missing: create > create > ns [ns]' From bd53db2040e3895052d3b4619afb2ec354e624e0 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 29 May 2015 15:56:04 +0300 Subject: [PATCH 11/23] Add day support to period in schema #2660 --- app/models/domain.rb | 4 ++-- doc/schemas/domain-1.0.xsd | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/models/domain.rb b/app/models/domain.rb index 3355469f1..d428bb447 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -117,7 +117,7 @@ class Domain < ActiveRecord::Base validate :validate_nameserver_ips - attr_accessor :registrant_typeahead, :update_me, :deliver_emails, + attr_accessor :registrant_typeahead, :update_me, :deliver_emails, :epp_pending_update, :epp_pending_delete def subordinate_nameservers @@ -250,7 +250,7 @@ class Domain < ActiveRecord::Base def validate_period return unless period.present? if period_unit == 'd' - valid_values = %w(365 366 710 712 1065 1068) + valid_values = %w(365 730 1095) elsif period_unit == 'm' valid_values = %w(12 24 36) else diff --git a/doc/schemas/domain-1.0.xsd b/doc/schemas/domain-1.0.xsd index baf63a658..c78bdbd45 100644 --- a/doc/schemas/domain-1.0.xsd +++ b/doc/schemas/domain-1.0.xsd @@ -64,7 +64,7 @@ - + @@ -72,6 +72,7 @@ + From 80e4fe0529a5f223ef37721129a76891b968f6bd Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Fri, 29 May 2015 17:04:20 +0300 Subject: [PATCH 12/23] Spec comment update, #2557 --- spec/epp/domain_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index f222f5abb..f9d355482 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -1406,7 +1406,7 @@ describe 'EPP Domain', epp: true do d = Domain.last - d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update, because pending + d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update d.auth_info.should == existing_pw d.pending_update?.should == true end @@ -1447,7 +1447,7 @@ describe 'EPP Domain', epp: true do d = Domain.last - d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update, because pending + d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update d.auth_info.should == existing_pw d.nameservers.size == 3 d.pending_update?.should == false @@ -1482,7 +1482,7 @@ describe 'EPP Domain', epp: true do d = Domain.find(domain_id) - d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update, because pending + d.registrant_code.should_not == 'FIXED:CITIZEN_1234' # should not update d.auth_info.should == existing_pw d.nameservers.size.should == 0 d.pending_update?.should == false From ed44238ec5e586a3a6a1c7ebbd14640cd8beeddc Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 29 May 2015 17:08:58 +0300 Subject: [PATCH 13/23] Allow specifying 'verified' attribute #2660 --- doc/schemas/domain-1.0.xsd | 22 +++++++++++++++++++--- doc/schemas/eppcom-1.0.xsd | 1 - spec/epp/domain_spec.rb | 6 +++--- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/doc/schemas/domain-1.0.xsd b/doc/schemas/domain-1.0.xsd index c78bdbd45..9ce83db8d 100644 --- a/doc/schemas/domain-1.0.xsd +++ b/doc/schemas/domain-1.0.xsd @@ -241,12 +241,28 @@ Allow the registrant value to be nullified by changing the minLength restriction to "0". --> - + + + + + + + + + + - - + + + + + + + + +