diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a59838ff..a58d3a268 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +16.12.2016 +* Allow contact address processing to be configurable via admin +* EPP XML schema namespace "urn:ietf:params:xml:ns:epp-1.0" replaced with "https://epp.tld.ee/schema/epp-ee-1.0.xsd" +* EPP XML schema contact-eis-1.0 replaced with contact-ee-1.1 + 18.11.2016 * Domain expiration emails are now sent out to admin contacts as well. Sending bug is fixed. * Include detailed registrar's contact info in emails diff --git a/Gemfile b/Gemfile index 83ec9b4a7..11e5d92a0 100644 --- a/Gemfile +++ b/Gemfile @@ -83,9 +83,8 @@ gem 'deep_cloneable', '2.1.1' # id + mid login gem 'digidoc_client', '0.2.1' -# epp -gem 'epp', '1.4.2', github: 'internetee/epp' -gem 'epp-xml', '1.0.5', github: 'internetee/epp-xml' # EIS EPP XMLs +gem 'epp', '1.5.0', github: 'internetee/epp' +gem 'epp-xml', '1.1.0', github: 'internetee/epp-xml' gem 'uuidtools', '2.1.5' # For unique IDs (used by the epp gem) # que diff --git a/Gemfile.lock b/Gemfile.lock index 31ecaeb02..7b3810caf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,17 +18,17 @@ GIT GIT remote: https://github.com/internetee/epp-xml.git - revision: 475f650951f2cf5015e00d48f408a2194ecc1662 + revision: 5dd542e67ef26d58365f30e553254d6db809277d specs: - epp-xml (1.0.5) + epp-xml (1.1.0) activesupport (~> 4.1) builder (~> 3.2) GIT remote: https://github.com/internetee/epp.git - revision: 505c3f2739eb1da918e54111aecfb138a822739d + revision: 1a50f2144f15a2d975337e56fb1ccaba5d956e9d specs: - epp (1.4.2) + epp (1.5.0) hpricot libxml-ruby @@ -299,7 +299,7 @@ GEM launchy (2.4.3) addressable (~> 2.3) libv8 (3.16.14.11) - libxml-ruby (2.8.0) + libxml-ruby (2.9.0) liquid (3.0.6) listen (3.0.3) rb-fsevent (>= 0.9.3) @@ -593,8 +593,8 @@ DEPENDENCIES deep_cloneable (= 2.1.1) devise (= 3.5.4) digidoc_client (= 0.2.1) - epp (= 1.4.2)! - epp-xml (= 1.0.5)! + epp (= 1.5.0)! + epp-xml (= 1.1.0)! fabrication (= 2.13.2) factory_girl_rails figaro (= 1.1.1) diff --git a/app/api/repp/contact_v1.rb b/app/api/repp/contact_v1.rb index 4b9b2d960..810829ef7 100644 --- a/app/api/repp/contact_v1.rb +++ b/app/api/repp/contact_v1.rb @@ -16,6 +16,11 @@ module Repp if params[:details] == 'true' contacts = current_user.registrar.contacts.limit(limit).offset(offset) + + unless Contact.address_processing? + attributes = Contact.attribute_names - Contact.address_attribute_names + contacts = contacts.select(attributes) + end else contacts = current_user.registrar.contacts.limit(limit).offset(offset).pluck(:code) end diff --git a/app/controllers/admin/settings_controller.rb b/app/controllers/admin/settings_controller.rb index 68e8b7788..737279653 100644 --- a/app/controllers/admin/settings_controller.rb +++ b/app/controllers/admin/settings_controller.rb @@ -78,7 +78,8 @@ class Admin::SettingsController < AdminController :registrar_ip_whitelist_enabled, :api_ip_whitelist_enabled, :request_confrimation_on_registrant_change_enabled, - :request_confirmation_on_domain_deletion_enabled + :request_confirmation_on_domain_deletion_enabled, + :address_processing ] params[:settings].each do |k, v| diff --git a/app/controllers/epp/contacts_controller.rb b/app/controllers/epp/contacts_controller.rb index 117aaabc0..7f28961f6 100644 --- a/app/controllers/epp/contacts_controller.rb +++ b/app/controllers/epp/contacts_controller.rb @@ -1,6 +1,7 @@ class Epp::ContactsController < EppController before_action :find_contact, only: [:info, :update, :delete] before_action :find_password, only: [:info, :update, :delete] + helper_method :address_processing? def info authorize! :info, @contact, @password @@ -17,12 +18,22 @@ class Epp::ContactsController < EppController def create authorize! :create, Epp::Contact - @contact = Epp::Contact.new(params[:parsed_frame], current_user.registrar) + frame = params[:parsed_frame] + @contact = Epp::Contact.new(frame, current_user.registrar) - @contact.add_legal_file_to_new(params[:parsed_frame]) + @contact.add_legal_file_to_new(frame) + @contact.generate_code if @contact.save - render_epp_response '/epp/contacts/create' + if !address_processing? && address_given? + @response_code = 1100 + @response_description = t('epp.contacts.completed_without_address') + else + @response_code = 1000 + @response_description = t('epp.contacts.completed') + end + + render_epp_response '/epp/contacts/save' else handle_errors(@contact) end @@ -31,8 +42,18 @@ class Epp::ContactsController < EppController def update authorize! :update, @contact, @password - if @contact.update_attributes(params[:parsed_frame], current_user) - render_epp_response 'epp/contacts/update' + frame = params[:parsed_frame] + + if @contact.update_attributes(frame, current_user) + if !address_processing? && address_given? + @response_code = 1100 + @response_description = t('epp.contacts.completed_without_address') + else + @response_code = 1000 + @response_description = t('epp.contacts.completed') + end + + render_epp_response 'epp/contacts/save' else handle_errors(@contact) end @@ -91,10 +112,23 @@ class Epp::ContactsController < EppController def validate_create @prefix = 'create > create >' - requires( - 'postalInfo > name', 'postalInfo > addr > street', 'postalInfo > addr > city', - 'postalInfo > addr > pc', 'postalInfo > addr > cc', 'voice', 'email' - ) + + required_attributes = [ + 'postalInfo > name', + 'voice', + 'email' + ] + + address_attributes = [ + 'postalInfo > addr > street', + 'postalInfo > addr > city', + 'postalInfo > addr > pc', + 'postalInfo > addr > cc', + ] + + required_attributes.concat(address_attributes) if address_processing? + + requires(*required_attributes) ident = params[:parsed_frame].css('ident') if ident.present? && ident.attr('type').blank? @@ -141,7 +175,7 @@ class Epp::ContactsController < EppController def contact_org_disabled return true if ENV['contact_org_enabled'] == 'true' return true if params[:parsed_frame].css('postalInfo org').text.blank? - + epp_errors << { code: '2306', msg: "#{I18n.t(:contact_org_error)}: postalInfo > org [org]" @@ -165,4 +199,12 @@ class Epp::ContactsController < EppController msg: "#{I18n.t(:client_side_status_editing_error)}: status [status]" } end + + def address_given? + params[:parsed_frame].css('postalInfo addr').size != 0 + end + + def address_processing? + Contact.address_processing? + end end diff --git a/app/models/contact.rb b/app/models/contact.rb index 822394d22..b50428bb1 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -18,8 +18,8 @@ class Contact < ActiveRecord::Base accepts_nested_attributes_for :legal_documents - validates :name, :phone, :email, :ident, :ident_type, - :street, :city, :zip, :country_code, :registrar, presence: true + validates :name, :phone, :email, :ident, :ident_type, :registrar, presence: true + validates :street, :city, :zip, :country_code, presence: true, if: 'self.class.address_processing?' # Phone nr validation is very minimam in order to support legacy requirements validates :phone, format: /\+[0-9]{1,3}\.[0-9]{1,14}?/ @@ -37,7 +37,8 @@ class Contact < ActiveRecord::Base validate :val_ident_type validate :val_ident_valid_format? validate :validate_html - validate :val_country_code + validate :validate_country_code + validate :validate_ident_country_code after_initialize do self.status_notes = {} if status_notes.nil? @@ -45,7 +46,6 @@ class Contact < ActiveRecord::Base end before_validation :to_upcase_country_code - before_validation :prefix_code before_validation :strip_email before_create :generate_auth_info @@ -257,6 +257,20 @@ class Contact < ActiveRecord::Base def emails pluck(:email) end + + def address_processing? + Setting.address_processing + end + + def address_attribute_names + %w( + city + street + zip + country_code + state + ) + end end def roid @@ -352,7 +366,7 @@ class Contact < ActiveRecord::Base end # rubocop:disable Metrics/CyclomaticComplexity - def prefix_code + def generate_code return nil unless new_record? return nil if registrar.blank? code = self[:code] @@ -370,13 +384,6 @@ class Contact < ActiveRecord::Base end # rubocop:enable Metrics/CyclomaticComplexity - # used only for contact transfer - def generate_new_code! - return nil if registrar.blank? - registrar.reload # for contact transfer - self[:code] = "#{registrar.code}:#{SecureRandom.hex(4)}".upcase - end - def country Country.new(country_code) end @@ -411,9 +418,13 @@ class Contact < ActiveRecord::Base self.country_code = country_code.upcase if country_code end - def val_country_code + def validate_country_code + return unless country_code + errors.add(:country_code, :invalid) unless Country.new(country_code) + end + + def validate_ident_country_code errors.add(:ident, :invalid_country_code) unless Country.new(ident_country_code) - errors.add(:ident, :invalid_country_code) unless Country.new(country_code) end def related_domain_descriptions @@ -567,4 +578,9 @@ class Contact < ActiveRecord::Base log end + def remove_address + self.class.address_attribute_names.each do |attr_name| + self[attr_name.to_sym] = nil + end + end end diff --git a/app/models/epp/contact.rb b/app/models/epp/contact.rb index bddee18ab..53ebb2ee8 100644 --- a/app/models/epp/contact.rb +++ b/app/models/epp/contact.rb @@ -30,11 +30,15 @@ class Epp::Contact < Contact at[:email] = f.css('email').text if f.css('email').present? at[:fax] = f.css('fax').text if f.css('fax').present? at[:phone] = f.css('voice').text if f.css('voice').present? - at[:city] = f.css('postalInfo addr city').text if f.css('postalInfo addr city').present? - at[:zip] = f.css('postalInfo addr pc').text if f.css('postalInfo addr pc').present? - at[:street] = f.css('postalInfo addr street').text if f.css('postalInfo addr street').present? - at[:state] = f.css('postalInfo addr sp').text if f.css('postalInfo addr sp').present? - at[:country_code] = f.css('postalInfo addr cc').text if f.css('postalInfo addr cc').present? + + if address_processing? + at[:city] = f.css('postalInfo addr city').text if f.css('postalInfo addr city').present? + at[:zip] = f.css('postalInfo addr pc').text if f.css('postalInfo addr pc').present? + at[:street] = f.css('postalInfo addr street').text if f.css('postalInfo addr street').present? + at[:state] = f.css('postalInfo addr sp').text if f.css('postalInfo addr sp').present? + at[:country_code] = f.css('postalInfo addr cc').text if f.css('postalInfo addr cc').present? + end + at[:auth_info] = f.css('authInfo pw').text if f.css('authInfo pw').present? @@ -125,6 +129,7 @@ class Epp::Contact < Contact [:ident, :invalid_EE_identity_format_update], [:ident, :invalid_birthday_format], [:ident, :invalid_country_code], + [:country_code, :invalid], [:ident_type, :missing], [:code, :invalid], [:code, :too_long_contact_code] diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index 55590e70f..f78d94c31 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -646,8 +646,9 @@ class Epp::Domain < Domain oc.code = nil oc.registrar_id = registrar_id oc.copy_from_id = c.id - oc.prefix_code + oc.generate_code oc.domain_transfer = true + oc.remove_address unless Contact.address_processing? oc.save!(validate: false) oc end diff --git a/app/views/admin/settings/index.haml b/app/views/admin/settings/index.haml index d1cfccc13..42f24877e 100644 --- a/app/views/admin/settings/index.haml +++ b/app/views/admin/settings/index.haml @@ -57,6 +57,7 @@ = render 'setting_row', var: :registrar_ip_whitelist_enabled = render 'setting_row', var: :request_confrimation_on_registrant_change_enabled = render 'setting_row', var: :request_confirmation_on_domain_deletion_enabled + = render 'setting_row', var: :address_processing .panel.panel-default .panel-heading.clearfix diff --git a/app/views/epp/contacts/check.xml.builder b/app/views/epp/contacts/check.xml.builder index 4d342fad4..e5ceee07a 100644 --- a/app/views/epp/contacts/check.xml.builder +++ b/app/views/epp/contacts/check.xml.builder @@ -5,7 +5,7 @@ xml.epp_head do end xml.resData do - xml.tag!('contact:chkData', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-eis-1.0.xsd') do + xml.tag!('contact:chkData', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-ee-1.1.xsd') do @results.each do |result| xml.tag!('contact:cd') do xml.tag! "contact:id", result[:code], avail: result[:avail] diff --git a/app/views/epp/contacts/info.xml.builder b/app/views/epp/contacts/info.xml.builder index fe851a6d9..068622203 100644 --- a/app/views/epp/contacts/info.xml.builder +++ b/app/views/epp/contacts/info.xml.builder @@ -5,7 +5,7 @@ xml.epp_head do end xml.resData do - xml.tag!('contact:infData', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-eis-1.0.xsd') do + xml.tag!('contact:infData', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-ee-1.1.xsd') do xml.tag!('contact:id', @contact.code) xml.tag!('contact:roid', @contact.roid) @@ -17,22 +17,30 @@ xml.epp_head do xml.tag!('contact:name', @contact.name) if can? :view_full_info, @contact, @password xml.tag!('contact:org', @contact.org_name) if @contact.org_name.present? - xml.tag!('contact:addr') do - xml.tag!('contact:street', @contact.street) - xml.tag!('contact:city', @contact.city) - xml.tag!('contact:sp', @contact.state) - xml.tag!('contact:pc', @contact.zip) - xml.tag!('contact:cc', @contact.country_code) + + if address_processing? + xml.tag!('contact:addr') do + xml.tag!('contact:street', @contact.street) + xml.tag!('contact:city', @contact.city) + xml.tag!('contact:sp', @contact.state) + xml.tag!('contact:pc', @contact.zip) + xml.tag!('contact:cc', @contact.country_code) + end end + else xml.tag!('contact:org', 'No access') - xml.tag!('contact:addr') do - xml.tag!('contact:street', 'No access') - xml.tag!('contact:city', 'No access') - xml.tag!('contact:sp', 'No access') - xml.tag!('contact:pc', 'No access') - xml.tag!('contact:cc', 'No access') + + if address_processing? + xml.tag!('contact:addr') do + xml.tag!('contact:street', 'No access') + xml.tag!('contact:city', 'No access') + xml.tag!('contact:sp', 'No access') + xml.tag!('contact:pc', 'No access') + xml.tag!('contact:cc', 'No access') + end end + end end diff --git a/app/views/epp/contacts/create.xml.builder b/app/views/epp/contacts/save.xml.builder similarity index 71% rename from app/views/epp/contacts/create.xml.builder rename to app/views/epp/contacts/save.xml.builder index 2d2c40097..5e8a6cd37 100644 --- a/app/views/epp/contacts/create.xml.builder +++ b/app/views/epp/contacts/save.xml.builder @@ -1,11 +1,11 @@ xml.epp_head do xml.response do - xml.result('code' => '1000') do - xml.msg 'Command completed successfully' + xml.result('code' => @response_code) do + xml.msg @response_description end xml.resData do - xml.tag!('contact:creData', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-eis-1.0.xsd') do + xml.tag!('contact:creData', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-ee-1.1.xsd') do xml.tag!('contact:id', @contact.code) xml.tag!('contact:crDate', @contact.created_at.try(:iso8601)) end diff --git a/app/views/epp/contacts/update.xml.builder b/app/views/epp/contacts/update.xml.builder deleted file mode 100644 index 2d2c40097..000000000 --- a/app/views/epp/contacts/update.xml.builder +++ /dev/null @@ -1,16 +0,0 @@ -xml.epp_head do - xml.response do - xml.result('code' => '1000') do - xml.msg 'Command completed successfully' - end - - xml.resData do - xml.tag!('contact:creData', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-eis-1.0.xsd') do - xml.tag!('contact:id', @contact.code) - xml.tag!('contact:crDate', @contact.created_at.try(:iso8601)) - end - end - - 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 a2fed7915..7c2ca6c5a 100644 --- a/app/views/epp/poll/poll_keyrelay.xml.builder +++ b/app/views/epp/poll/poll_keyrelay.xml.builder @@ -1,6 +1,6 @@ xml.instruct!(:xml, standalone: 'no') xml.epp( - 'xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', + 'xmlns' => 'https://epp.tld.ee/schema/epp-ee-1.0.xsd', 'xmlns:secDNS' => 'urn:ietf:params:xml:ns:secDNS-1.1', 'xmlns:domain' => 'https://epp.tld.ee/schema/domain-eis-1.0.xsd', 'xmlns:keyrelay' => 'urn:ietf:params:xml:ns:keyrelay-1.0' diff --git a/app/views/epp/sessions/greeting.xml.builder b/app/views/epp/sessions/greeting.xml.builder index 308de3c59..040ce7196 100644 --- a/app/views/epp/sessions/greeting.xml.builder +++ b/app/views/epp/sessions/greeting.xml.builder @@ -6,7 +6,7 @@ xml.epp_head do xml.version '1.0' xml.lang 'en' xml.objURI 'https://epp.tld.ee/schema/domain-eis-1.0.xsd' - xml.objURI 'https://epp.tld.ee/schema/contact-eis-1.0.xsd' + xml.objURI 'https://epp.tld.ee/schema/contact-ee-1.1.xsd' xml.objURI 'urn:ietf:params:xml:ns:host-1.0' xml.objURI 'urn:ietf:params:xml:ns:keyrelay-1.0' xml.svcExtension do diff --git a/app/views/registrar/xml_consoles/epp_requests/contact/check.xml b/app/views/registrar/xml_consoles/epp_requests/contact/check.xml index a0e02a3dc..97e049e0b 100644 --- a/app/views/registrar/xml_consoles/epp_requests/contact/check.xml +++ b/app/views/registrar/xml_consoles/epp_requests/contact/check.xml @@ -1,9 +1,9 @@ - + + xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"> sh8013 diff --git a/app/views/registrar/xml_consoles/epp_requests/contact/check_multiple.xml b/app/views/registrar/xml_consoles/epp_requests/contact/check_multiple.xml index 57f0ad279..ffc3e06a1 100644 --- a/app/views/registrar/xml_consoles/epp_requests/contact/check_multiple.xml +++ b/app/views/registrar/xml_consoles/epp_requests/contact/check_multiple.xml @@ -1,9 +1,9 @@ - + + xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"> sh8013 sh13 vsdfvq diff --git a/app/views/registrar/xml_consoles/epp_requests/contact/create.xml b/app/views/registrar/xml_consoles/epp_requests/contact/create.xml index 117ba3222..ff10b8370 100644 --- a/app/views/registrar/xml_consoles/epp_requests/contact/create.xml +++ b/app/views/registrar/xml_consoles/epp_requests/contact/create.xml @@ -1,8 +1,8 @@ - + - + Sillius Soddus diff --git a/app/views/registrar/xml_consoles/epp_requests/contact/delete.xml b/app/views/registrar/xml_consoles/epp_requests/contact/delete.xml index c7ff5d809..a86c4ac0c 100644 --- a/app/views/registrar/xml_consoles/epp_requests/contact/delete.xml +++ b/app/views/registrar/xml_consoles/epp_requests/contact/delete.xml @@ -1,9 +1,9 @@ - + + xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd"> sh8013 wrong-one diff --git a/app/views/registrar/xml_consoles/epp_requests/contact/info.xml b/app/views/registrar/xml_consoles/epp_requests/contact/info.xml index 3a2f195a6..4ff7bc08c 100644 --- a/app/views/registrar/xml_consoles/epp_requests/contact/info.xml +++ b/app/views/registrar/xml_consoles/epp_requests/contact/info.xml @@ -1,8 +1,8 @@ - + - + sh8013 Aas34fq diff --git a/app/views/registrar/xml_consoles/epp_requests/contact/update_chg.xml b/app/views/registrar/xml_consoles/epp_requests/contact/update_chg.xml index 7ad2de978..62cc103db 100644 --- a/app/views/registrar/xml_consoles/epp_requests/contact/update_chg.xml +++ b/app/views/registrar/xml_consoles/epp_requests/contact/update_chg.xml @@ -1,8 +1,8 @@ - + - + sh8013 diff --git a/app/views/registrar/xml_consoles/epp_requests/domain/check.xml b/app/views/registrar/xml_consoles/epp_requests/domain/check.xml index 88dd550b6..73304adb0 100644 --- a/app/views/registrar/xml_consoles/epp_requests/domain/check.xml +++ b/app/views/registrar/xml_consoles/epp_requests/domain/check.xml @@ -1,5 +1,5 @@ - + - + - + - + - + - + - + - + example6.ee diff --git a/app/views/registrar/xml_consoles/epp_requests/poll/poll.xml b/app/views/registrar/xml_consoles/epp_requests/poll/poll.xml index 08c097196..5ffed010e 100644 --- a/app/views/registrar/xml_consoles/epp_requests/poll/poll.xml +++ b/app/views/registrar/xml_consoles/epp_requests/poll/poll.xml @@ -1,5 +1,5 @@ - + ABC-12345 diff --git a/config/initializers/initial_settings.rb b/config/initializers/initial_settings.rb index 62037fafb..bdf25e088 100644 --- a/config/initializers/initial_settings.rb +++ b/config/initializers/initial_settings.rb @@ -26,6 +26,7 @@ if con.present? && con.table_exists?('settings') Setting.transfer_wait_time = 0 Setting.save_default(:request_confrimation_on_registrant_change_enabled, true) Setting.save_default(:request_confirmation_on_domain_deletion_enabled, true) + Setting.save_default(:address_processing, true) Setting.save_default(:client_side_status_editing_enabled, false) diff --git a/config/initializers/load_schemas.rb b/config/initializers/load_schemas.rb index 91ca113cc..fa0150896 100644 --- a/config/initializers/load_schemas.rb +++ b/config/initializers/load_schemas.rb @@ -1 +1 @@ -EPP_ALL_SCHEMA = Nokogiri::XML::Schema(File.read("lib/schemas/all-ee-1.0.xsd")) +EPP_ALL_SCHEMA = Nokogiri::XML::Schema(File.read('lib/schemas/all-ee-1.1.xsd')) diff --git a/config/locales/contacts.en.yml b/config/locales/contacts.en.yml new file mode 100644 index 000000000..7936bd4b6 --- /dev/null +++ b/config/locales/contacts.en.yml @@ -0,0 +1,8 @@ +en: + activerecord: + errors: + models: + contact: + attributes: + country_code: + invalid: Country code is not valid, should be in ISO_3166-1 alpha 2 format diff --git a/config/locales/epp/contacts.en.yml b/config/locales/epp/contacts.en.yml new file mode 100644 index 000000000..a669310ab --- /dev/null +++ b/config/locales/epp/contacts.en.yml @@ -0,0 +1,5 @@ +en: + epp: + contacts: + completed: Command completed successfully + completed_without_address: Command completed successfully; Postal address data discarded diff --git a/doc/epp-examples.md b/doc/epp-examples.md index d680a6e7b..12b2fdfdb 100644 --- a/doc/epp-examples.md +++ b/doc/epp-examples.md @@ -9,7 +9,7 @@ REQUEST: ```xml - + registrar1 @@ -20,7 +20,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -38,7 +38,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -57,10 +57,10 @@ REQUEST: ```xml - + - + ABC-12345 @@ -71,10 +71,10 @@ RESPONSE: ```xml - + - Element '{https://epp.tld.ee/schema/contact-eis-1.0.xsd}create': Missing child element(s). Expected is one of ( {https://epp.tld.ee/schema/contact-eis-1.0.xsd}id, {https://epp.tld.ee/schema/contact-eis-1.0.xsd}postalInfo ). + Element '{https://epp.tld.ee/schema/contact-ee-1.1.xsd}create': Missing child element(s). Expected is one of ( {https://epp.tld.ee/schema/contact-ee-1.1.xsd}id, {https://epp.tld.ee/schema/contact-ee-1.1.xsd}postalInfo ). ABC-12345 @@ -90,10 +90,10 @@ REQUEST: ```xml - + - + John Doe @@ -122,13 +122,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:84FC4612 2015-09-09T09:40:29Z @@ -147,10 +147,10 @@ REQUEST: ```xml - + - + John Doe @@ -182,13 +182,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:467382DF 2015-09-09T09:40:29Z @@ -207,10 +207,10 @@ REQUEST: ```xml - + - + John Doe @@ -239,13 +239,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:ECE6546C 2015-09-09T09:40:29Z @@ -264,10 +264,10 @@ REQUEST: ```xml - + - + John Doe @@ -296,13 +296,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:E5EB4D84 2015-09-09T09:40:29Z @@ -321,10 +321,10 @@ REQUEST: ```xml - + - + John Doe @@ -353,13 +353,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:EAB46720 2015-09-09T09:40:29Z @@ -378,10 +378,10 @@ REQUEST: ```xml - + - + John Doe @@ -410,7 +410,7 @@ RESPONSE: ```xml - + Email is invalid [email] @@ -429,10 +429,10 @@ REQUEST: ```xml - + - + abc12345 John Doe @@ -462,13 +462,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:ABC12345 2015-09-09T09:40:30Z @@ -487,10 +487,10 @@ REQUEST: ```xml - + - + abc:ABC:12345 John Doe @@ -520,13 +520,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:ABC:ABC:12345 2015-09-09T09:40:30Z @@ -545,10 +545,10 @@ REQUEST: ```xml - + - + abc 123 John Doe @@ -578,7 +578,7 @@ RESPONSE: ```xml - + is invalid [code] @@ -597,10 +597,10 @@ REQUEST: ```xml - + - + 33&$@@ John Doe @@ -630,7 +630,7 @@ RESPONSE: ```xml - + is invalid [code] @@ -649,10 +649,10 @@ REQUEST: ```xml - + - + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa John Doe @@ -682,7 +682,7 @@ RESPONSE: ```xml - + Contact code is too long, max 100 characters [code] @@ -701,10 +701,10 @@ REQUEST: ```xml - + - + John Doe @@ -732,7 +732,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/eis-1.0.xsd}ident', attribute 'cc': [facet 'maxLength'] The value 'WRONG' has a length of '5'; this exceeds the allowed maximum length of '2'. @@ -754,10 +754,10 @@ REQUEST: ```xml - + - + John Doe @@ -785,7 +785,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/eis-1.0.xsd}ident': The attribute 'cc' is required but missing. @@ -804,10 +804,10 @@ REQUEST: ```xml - + - + John Doe @@ -835,7 +835,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/eis-1.0.xsd}ident': The attribute 'type' is required but missing. @@ -857,10 +857,10 @@ REQUEST: ```xml - + - + CID:FIRST0:abc:ABC:NEW:12345 John Doe @@ -890,13 +890,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:CID:FIRST0:ABC:ABC:NEW:12345 2015-09-09T09:40:36Z @@ -915,10 +915,10 @@ REQUEST: ```xml - + - + CID:FIRST0:abc:CID:ABC:NEW:12345 John Doe @@ -948,13 +948,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:CID:FIRST0:ABC:CID:ABC:NEW:12345 2015-09-09T09:40:36Z @@ -973,10 +973,10 @@ REQUEST: ```xml - + - + FIRST0:abc22 John Doe @@ -1006,13 +1006,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:ABC22 2015-09-09T09:40:36Z @@ -1031,10 +1031,10 @@ REQUEST: ```xml - + - + cid2:first0:abc:ABC:11111 John Doe @@ -1064,13 +1064,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:CID2:FIRST0:ABC:ABC:11111 2015-09-09T09:40:36Z @@ -1089,10 +1089,10 @@ REQUEST: ```xml - + - + CID:FIRST0 John Doe @@ -1122,13 +1122,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:CID:FIRST0 2015-09-09T09:40:37Z @@ -1147,10 +1147,10 @@ REQUEST: ```xml - + - + John Doe @@ -1179,13 +1179,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:0D91E51A 2015-09-09T09:40:37Z @@ -1204,10 +1204,10 @@ REQUEST: ```xml - + - + John Doe @@ -1236,13 +1236,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:4F138386 2015-09-09T09:40:37Z @@ -1261,10 +1261,10 @@ REQUEST: ```xml - + - + John Doe should not save @@ -1294,7 +1294,7 @@ RESPONSE: ```xml - + Parameter value policy error. Org must be blank: postalInfo > org [org] @@ -1313,10 +1313,10 @@ REQUEST: ```xml - + - + John Doe @@ -1346,7 +1346,7 @@ RESPONSE: ```xml - + Parameter value policy error. Fax must be blank: fax [fax] @@ -1365,10 +1365,10 @@ REQUEST: ```xml - + - + ABC-12345 @@ -1379,10 +1379,10 @@ RESPONSE: ```xml - + - Element '{https://epp.tld.ee/schema/contact-eis-1.0.xsd}update': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-eis-1.0.xsd}id ). + Element '{https://epp.tld.ee/schema/contact-ee-1.1.xsd}update': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-ee-1.1.xsd}id ). ABC-12345 @@ -1398,10 +1398,10 @@ REQUEST: ```xml - + - + not-exists @@ -1429,7 +1429,7 @@ RESPONSE: ```xml - + Object does not exist @@ -1451,10 +1451,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -1482,13 +1482,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH8013 2015-09-09T09:40:39Z @@ -1507,10 +1507,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -1528,13 +1528,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH8013 2015-09-09T09:40:39Z @@ -1553,7 +1553,7 @@ REQUEST: ```xml - + registrar2 @@ -1564,7 +1564,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -1582,7 +1582,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -1599,10 +1599,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -1630,13 +1630,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH8013 2015-09-09T09:40:39Z @@ -1653,7 +1653,7 @@ REQUEST: ```xml - + registrar1 @@ -1664,7 +1664,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -1682,7 +1682,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -1701,7 +1701,7 @@ REQUEST: ```xml - + registrar2 @@ -1712,7 +1712,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -1730,7 +1730,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -1747,10 +1747,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -1768,7 +1768,7 @@ RESPONSE: ```xml - + Authorization error @@ -1785,7 +1785,7 @@ REQUEST: ```xml - + registrar1 @@ -1796,7 +1796,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -1814,7 +1814,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -1833,10 +1833,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -1864,7 +1864,7 @@ RESPONSE: ```xml - + Phone nr is invalid [phone] @@ -1886,10 +1886,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -1917,7 +1917,7 @@ RESPONSE: ```xml - + Email is invalid [email] @@ -1936,10 +1936,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -1968,10 +1968,10 @@ RESPONSE: ```xml - + - Element '{https://epp.tld.ee/schema/contact-eis-1.0.xsd}id': This element is not expected. + Element '{https://epp.tld.ee/schema/contact-ee-1.1.xsd}id': This element is not expected. ABC-12345 @@ -1987,10 +1987,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2019,7 +2019,7 @@ RESPONSE: ```xml - + Parameter value policy error. Update of ident data not allowed [ident] @@ -2038,10 +2038,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2070,7 +2070,7 @@ RESPONSE: ```xml - + Parameter value policy error. Org must be blank: postalInfo > org [org] @@ -2089,10 +2089,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2121,7 +2121,7 @@ RESPONSE: ```xml - + Parameter value policy error. Fax must be blank: fax [fax] @@ -2140,10 +2140,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 Payment overdue. @@ -2160,7 +2160,7 @@ RESPONSE: ```xml - + Parameter value policy error. Client-side object status management not supported: status [status] @@ -2179,10 +2179,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2200,13 +2200,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH8013 2015-09-09T09:40:39Z @@ -2225,10 +2225,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 +372.11111111 @@ -2247,13 +2247,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH8013 2015-09-09T09:40:39Z @@ -2272,10 +2272,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2295,7 +2295,7 @@ RESPONSE: ```xml - + Required parameter missing - phone [phone] @@ -2317,10 +2317,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2339,7 +2339,7 @@ RESPONSE: ```xml - + Required parameter missing - phone [phone] @@ -2361,10 +2361,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2385,7 +2385,7 @@ RESPONSE: ```xml - + Parameter value policy error. Org must be blank: postalInfo > org [org] @@ -2404,10 +2404,10 @@ REQUEST: ```xml - + - + FIRST0:SH8013 @@ -2423,7 +2423,7 @@ RESPONSE: ```xml - + Parameter value policy error. Client-side object status management not supported: status [status] @@ -2442,10 +2442,10 @@ REQUEST: ```xml - + - + ABC-12345 @@ -2456,10 +2456,10 @@ RESPONSE: ```xml - + - Element '{https://epp.tld.ee/schema/contact-eis-1.0.xsd}delete': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-eis-1.0.xsd}id ). + Element '{https://epp.tld.ee/schema/contact-ee-1.1.xsd}delete': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-ee-1.1.xsd}id ). ABC-12345 @@ -2475,10 +2475,10 @@ REQUEST: ```xml - + - + not-exists password @@ -2500,7 +2500,7 @@ RESPONSE: ```xml - + Object does not exist @@ -2522,10 +2522,10 @@ REQUEST: ```xml - + - + FIRST0:SH159792243 password @@ -2547,7 +2547,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2566,10 +2566,10 @@ REQUEST: ```xml - + - + FIRST0:SH281327764 wrong password @@ -2591,7 +2591,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2610,10 +2610,10 @@ REQUEST: ```xml - + - + FIRST0:SH671824275 @@ -2626,7 +2626,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2645,10 +2645,10 @@ REQUEST: ```xml - + - + FIRST0:SH584167436 password @@ -2670,7 +2670,7 @@ RESPONSE: ```xml - + Object association prohibits operation [domains] @@ -2689,7 +2689,7 @@ REQUEST: ```xml - + registrar2 @@ -2700,7 +2700,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -2718,7 +2718,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2735,10 +2735,10 @@ REQUEST: ```xml - + - + FIRST0:SH184575429 password @@ -2760,7 +2760,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2777,7 +2777,7 @@ REQUEST: ```xml - + registrar1 @@ -2788,7 +2788,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -2806,7 +2806,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2825,7 +2825,7 @@ REQUEST: ```xml - + registrar2 @@ -2836,7 +2836,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -2854,7 +2854,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2871,10 +2871,10 @@ REQUEST: ```xml - + - + FIRST0:SH5548884710 @@ -2887,7 +2887,7 @@ RESPONSE: ```xml - + Authorization error @@ -2904,7 +2904,7 @@ REQUEST: ```xml - + registrar1 @@ -2915,7 +2915,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -2933,7 +2933,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2952,7 +2952,7 @@ REQUEST: ```xml - + registrar2 @@ -2963,7 +2963,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -2981,7 +2981,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -2998,10 +2998,10 @@ REQUEST: ```xml - + - + FIRST0:SH2027223711 wrong password @@ -3023,7 +3023,7 @@ RESPONSE: ```xml - + Authorization error @@ -3040,7 +3040,7 @@ REQUEST: ```xml - + registrar1 @@ -3051,7 +3051,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -3069,7 +3069,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -3088,10 +3088,10 @@ REQUEST: ```xml - + - + ABC-12345 @@ -3102,10 +3102,10 @@ RESPONSE: ```xml - + - Element '{https://epp.tld.ee/schema/contact-eis-1.0.xsd}check': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-eis-1.0.xsd}id ). + Element '{https://epp.tld.ee/schema/contact-ee-1.1.xsd}check': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-ee-1.1.xsd}id ). ABC-12345 @@ -3121,10 +3121,10 @@ REQUEST: ```xml - + - + FIXED:CHECK-1234 check-4321 @@ -3138,13 +3138,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIXED:CHECK-1234 in use @@ -3168,10 +3168,10 @@ REQUEST: ```xml - + - + FIXED:CHECK-LEGACY CID:FIXED:CHECK-LEGACY @@ -3185,13 +3185,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIXED:CHECK-LEGACY in use @@ -3215,10 +3215,10 @@ REQUEST: ```xml - + - + ABC-12345 @@ -3229,10 +3229,10 @@ RESPONSE: ```xml - + - Element '{https://epp.tld.ee/schema/contact-eis-1.0.xsd}info': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-eis-1.0.xsd}id ). + Element '{https://epp.tld.ee/schema/contact-ee-1.1.xsd}info': Missing child element(s). Expected is ( {https://epp.tld.ee/schema/contact-ee-1.1.xsd}id ). ABC-12345 @@ -3248,10 +3248,10 @@ REQUEST: ```xml - + - + no-contact password @@ -3267,7 +3267,7 @@ RESPONSE: ```xml - + Object does not exist @@ -3289,10 +3289,10 @@ REQUEST: ```xml - + - + FIXED:INFO-4444 password @@ -3308,13 +3308,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIXED:INFO-4444 EIS-30 @@ -3357,10 +3357,10 @@ REQUEST: ```xml - + - + FIXED:CID:FIXED:INFO-5555 password @@ -3376,13 +3376,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIXED:CID:FIXED:INFO-5555 EIS-31 @@ -3425,10 +3425,10 @@ REQUEST: ```xml - + - + FIRST0:INFO-IDENT password @@ -3444,13 +3444,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:INFO-IDENT EIS-32 @@ -3493,10 +3493,10 @@ REQUEST: ```xml - + - + FIRST0:SH146764510 wrong-pw @@ -3512,13 +3512,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH146764510 EIS-1 @@ -3561,10 +3561,10 @@ REQUEST: ```xml - + - + FIXED:TEST:CUSTOM:CODE password @@ -3580,13 +3580,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIXED:TEST:CUSTOM:CODE EIS-33 @@ -3629,7 +3629,7 @@ REQUEST: ```xml - + registrar2 @@ -3640,7 +3640,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -3658,7 +3658,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -3675,10 +3675,10 @@ REQUEST: ```xml - + - + FIRST0:SH146764510 password @@ -3694,13 +3694,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH146764510 EIS-1 @@ -3741,7 +3741,7 @@ REQUEST: ```xml - + registrar1 @@ -3752,7 +3752,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -3770,7 +3770,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -3789,7 +3789,7 @@ REQUEST: ```xml - + registrar2 @@ -3800,7 +3800,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -3818,7 +3818,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -3835,10 +3835,10 @@ REQUEST: ```xml - + - + FIRST0:SH146764510 wrong-pw @@ -3854,7 +3854,7 @@ RESPONSE: ```xml - + Authorization error @@ -3871,7 +3871,7 @@ REQUEST: ```xml - + registrar1 @@ -3882,7 +3882,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -3900,7 +3900,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -3919,7 +3919,7 @@ REQUEST: ```xml - + registrar2 @@ -3930,7 +3930,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -3948,7 +3948,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -3965,10 +3965,10 @@ REQUEST: ```xml - + - + FIRST0:SH146764510 @@ -3984,13 +3984,13 @@ RESPONSE: ```xml - + Command completed successfully - + FIRST0:SH146764510 EIS-1 @@ -4014,7 +4014,7 @@ REQUEST: ```xml - + registrar1 @@ -4025,7 +4025,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -4043,7 +4043,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -4060,7 +4060,7 @@ REQUEST: ```xml - + registrar1 @@ -4071,7 +4071,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -4089,7 +4089,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -4108,7 +4108,7 @@ REQUEST: ```xml - + @@ -4152,7 +4152,7 @@ RESPONSE: ```xml - + Billing failure - credit balance low @@ -4171,7 +4171,7 @@ REQUEST: ```xml - + @@ -4215,7 +4215,7 @@ RESPONSE: ```xml - + Contact was not found @@ -4243,7 +4243,7 @@ REQUEST: ```xml - + @@ -4259,7 +4259,7 @@ RESPONSE: ```xml - + Required parameter missing: create > create > ns [ns] @@ -4287,7 +4287,7 @@ REQUEST: ```xml - + @@ -4331,7 +4331,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -4357,7 +4357,7 @@ REQUEST: ```xml - + @@ -4393,7 +4393,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -4419,7 +4419,7 @@ REQUEST: ```xml - + @@ -4466,7 +4466,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -4492,7 +4492,7 @@ REQUEST: ```xml - + @@ -4534,7 +4534,7 @@ RESPONSE: ```xml - + IPv4 is missing [ipv4] @@ -4553,7 +4553,7 @@ REQUEST: ```xml - + @@ -4597,7 +4597,7 @@ RESPONSE: ```xml - + Domain name is too long (maximum is 63 characters) [puny_label] @@ -4616,7 +4616,7 @@ REQUEST: ```xml - + @@ -4660,7 +4660,7 @@ RESPONSE: ```xml - + Required parameter missing; reserved>pw element required for reserved domains @@ -4677,7 +4677,7 @@ REQUEST: ```xml - + @@ -4724,7 +4724,7 @@ RESPONSE: ```xml - + Invalid authorization information; invalid reserved>pw value @@ -4743,7 +4743,7 @@ REQUEST: ```xml - + @@ -4790,7 +4790,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -4816,7 +4816,7 @@ REQUEST: ```xml - + @@ -4860,7 +4860,7 @@ RESPONSE: ```xml - + Data management policy violation: Domain name is blocked [name] @@ -4882,7 +4882,7 @@ REQUEST: ```xml - + @@ -4922,7 +4922,7 @@ RESPONSE: ```xml - + Required parameter missing: create > create > registrant [registrant] @@ -4941,7 +4941,7 @@ REQUEST: ```xml - + @@ -4975,7 +4975,7 @@ RESPONSE: ```xml - + Required parameter missing: create > create > ns [ns] @@ -4997,7 +4997,7 @@ REQUEST: ```xml - + @@ -5075,7 +5075,7 @@ RESPONSE: ```xml - + Nameservers count must be between 2-11 [nameservers] @@ -5094,7 +5094,7 @@ REQUEST: ```xml - + @@ -5136,7 +5136,7 @@ RESPONSE: ```xml - + Hostname is invalid [hostname] @@ -5164,7 +5164,7 @@ REQUEST: ```xml - + @@ -5202,7 +5202,7 @@ RESPONSE: ```xml - + Required parameter missing: create > create > ns > hostAttr [host_attr] @@ -5221,7 +5221,7 @@ REQUEST: ```xml - + @@ -5260,7 +5260,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -5286,7 +5286,7 @@ REQUEST: ```xml - + @@ -5325,7 +5325,7 @@ RESPONSE: ```xml - + IPv4 is invalid [ipv4] @@ -5353,7 +5353,7 @@ REQUEST: ```xml - + @@ -5397,7 +5397,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -5423,7 +5423,7 @@ REQUEST: ```xml - + @@ -5467,7 +5467,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -5493,7 +5493,7 @@ REQUEST: ```xml - + @@ -5537,7 +5537,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -5563,7 +5563,7 @@ REQUEST: ```xml - + @@ -5606,7 +5606,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -5632,7 +5632,7 @@ REQUEST: ```xml - + @@ -5676,7 +5676,7 @@ RESPONSE: ```xml - + Period must add up to 1, 2 or 3 years [period] @@ -5698,7 +5698,7 @@ REQUEST: ```xml - + @@ -5742,7 +5742,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/domain-eis-1.0.xsd}period', attribute 'unit': [facet 'enumeration'] The value '' is not an element of the set {'y', 'm', 'd'}. @@ -5762,7 +5762,7 @@ REQUEST: ```xml - + @@ -5806,7 +5806,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/domain-eis-1.0.xsd}period', attribute 'unit': [facet 'enumeration'] The value 'bla' is not an element of the set {'y', 'm', 'd'}. @@ -5828,7 +5828,7 @@ REQUEST: ```xml - + @@ -5884,7 +5884,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -5910,7 +5910,7 @@ REQUEST: ```xml - + @@ -5966,7 +5966,7 @@ RESPONSE: ```xml - + Element '{urn:ietf:params:xml:ns:secDNS-1.1}pubKey': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '1'. @@ -5986,7 +5986,7 @@ REQUEST: ```xml - + @@ -6042,7 +6042,7 @@ RESPONSE: ```xml - + Valid algorithms are: 3, 5, 6, 7, 8, 252, 253, 254, 255 [alg] @@ -6094,7 +6094,7 @@ REQUEST: ```xml - + @@ -6144,7 +6144,7 @@ RESPONSE: ```xml - + Public key already exists [public_key] @@ -6166,7 +6166,7 @@ REQUEST: ```xml - + @@ -6216,7 +6216,7 @@ RESPONSE: ```xml - + DNS keys count must be between 0-1 [dnskeys] @@ -6235,7 +6235,7 @@ REQUEST: ```xml - + @@ -6279,7 +6279,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -6305,7 +6305,7 @@ REQUEST: ```xml - + @@ -6355,7 +6355,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -6381,7 +6381,7 @@ REQUEST: ```xml - + @@ -6431,7 +6431,7 @@ RESPONSE: ```xml - + dsData object is not allowed @@ -6450,7 +6450,7 @@ REQUEST: ```xml - + @@ -6494,7 +6494,7 @@ RESPONSE: ```xml - + keyData object is not allowed @@ -6513,7 +6513,7 @@ REQUEST: ```xml - + @@ -6563,7 +6563,7 @@ RESPONSE: ```xml - + Element '{urn:ietf:params:xml:ns:secDNS-1.1}keyData': This element is not expected. Expected is ( {urn:ietf:params:xml:ns:secDNS-1.1}dsData ). @@ -6582,7 +6582,7 @@ REQUEST: ```xml - + @@ -6624,7 +6624,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -6650,7 +6650,7 @@ REQUEST: ```xml - + @@ -6692,7 +6692,7 @@ RESPONSE: ```xml - + Admin contacts count must be between 1-10 [admin_domain_contacts] @@ -6711,7 +6711,7 @@ REQUEST: ```xml - + @@ -6753,7 +6753,7 @@ RESPONSE: ```xml - + Admin contact can be private person only @@ -6775,7 +6775,7 @@ REQUEST: ```xml - + registrar2 @@ -6786,7 +6786,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -6804,7 +6804,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -6821,7 +6821,7 @@ REQUEST: ```xml - + @@ -6845,7 +6845,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -6873,7 +6873,7 @@ REQUEST: ```xml - + registrar1 @@ -6884,7 +6884,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -6902,7 +6902,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -6919,7 +6919,7 @@ REQUEST: ```xml - + ABC-12345 @@ -6931,7 +6931,7 @@ RESPONSE: ```xml - + Command completed successfully; ack to dequeue @@ -6963,7 +6963,7 @@ REQUEST: ```xml - + ABC-12345 @@ -6975,7 +6975,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -6995,7 +6995,7 @@ REQUEST: ```xml - + registrar2 @@ -7006,7 +7006,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7024,7 +7024,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7041,7 +7041,7 @@ REQUEST: ```xml - + @@ -7065,7 +7065,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7093,7 +7093,7 @@ REQUEST: ```xml - + registrar1 @@ -7104,7 +7104,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7122,7 +7122,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7139,7 +7139,7 @@ REQUEST: ```xml - + registrar2 @@ -7150,7 +7150,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7168,7 +7168,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7185,7 +7185,7 @@ REQUEST: ```xml - + @@ -7209,7 +7209,7 @@ RESPONSE: ```xml - + Authorization error @@ -7226,7 +7226,7 @@ REQUEST: ```xml - + registrar1 @@ -7237,7 +7237,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7255,7 +7255,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7274,7 +7274,7 @@ REQUEST: ```xml - + registrar2 @@ -7285,7 +7285,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7303,7 +7303,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7320,7 +7320,7 @@ REQUEST: ```xml - + @@ -7339,7 +7339,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7367,7 +7367,7 @@ REQUEST: ```xml - + registrar1 @@ -7378,7 +7378,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7396,7 +7396,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7415,7 +7415,7 @@ REQUEST: ```xml - + registrar2 @@ -7426,7 +7426,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7444,7 +7444,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7461,7 +7461,7 @@ REQUEST: ```xml - + @@ -7480,7 +7480,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7508,7 +7508,7 @@ REQUEST: ```xml - + registrar1 @@ -7519,7 +7519,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7537,7 +7537,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7556,7 +7556,7 @@ REQUEST: ```xml - + registrar2 @@ -7567,7 +7567,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7585,7 +7585,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7602,7 +7602,7 @@ REQUEST: ```xml - + @@ -7621,7 +7621,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7649,7 +7649,7 @@ REQUEST: ```xml - + registrar1 @@ -7660,7 +7660,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7678,7 +7678,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7697,7 +7697,7 @@ REQUEST: ```xml - + registrar2 @@ -7708,7 +7708,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7726,7 +7726,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7743,7 +7743,7 @@ REQUEST: ```xml - + @@ -7762,7 +7762,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7790,7 +7790,7 @@ REQUEST: ```xml - + registrar1 @@ -7801,7 +7801,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7819,7 +7819,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7838,7 +7838,7 @@ REQUEST: ```xml - + registrar2 @@ -7849,7 +7849,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7867,7 +7867,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7884,7 +7884,7 @@ REQUEST: ```xml - + @@ -7903,7 +7903,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7931,7 +7931,7 @@ REQUEST: ```xml - + registrar1 @@ -7942,7 +7942,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -7960,7 +7960,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -7979,7 +7979,7 @@ REQUEST: ```xml - + registrar2 @@ -7990,7 +7990,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8008,7 +8008,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8025,7 +8025,7 @@ REQUEST: ```xml - + @@ -8044,7 +8044,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8072,7 +8072,7 @@ REQUEST: ```xml - + registrar1 @@ -8083,7 +8083,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8101,7 +8101,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8120,7 +8120,7 @@ REQUEST: ```xml - + registrar2 @@ -8131,7 +8131,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8149,7 +8149,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8166,7 +8166,7 @@ REQUEST: ```xml - + @@ -8185,7 +8185,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8213,7 +8213,7 @@ REQUEST: ```xml - + registrar1 @@ -8224,7 +8224,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8242,7 +8242,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8261,7 +8261,7 @@ REQUEST: ```xml - + registrar2 @@ -8272,7 +8272,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8290,7 +8290,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8307,7 +8307,7 @@ REQUEST: ```xml - + @@ -8326,7 +8326,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8354,7 +8354,7 @@ REQUEST: ```xml - + registrar1 @@ -8365,7 +8365,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8383,7 +8383,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8402,7 +8402,7 @@ REQUEST: ```xml - + registrar2 @@ -8413,7 +8413,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8431,7 +8431,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8448,7 +8448,7 @@ REQUEST: ```xml - + @@ -8464,7 +8464,7 @@ RESPONSE: ```xml - + Authorization error @@ -8481,7 +8481,7 @@ REQUEST: ```xml - + registrar1 @@ -8492,7 +8492,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8510,7 +8510,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8529,7 +8529,7 @@ REQUEST: ```xml - + @@ -8553,7 +8553,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8583,7 +8583,7 @@ REQUEST: ```xml - + registrar2 @@ -8594,7 +8594,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8612,7 +8612,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8629,7 +8629,7 @@ REQUEST: ```xml - + @@ -8653,7 +8653,7 @@ RESPONSE: ```xml - + Transfer can be rejected only by current registrar @@ -8670,7 +8670,7 @@ REQUEST: ```xml - + registrar1 @@ -8681,7 +8681,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8699,7 +8699,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8716,7 +8716,7 @@ REQUEST: ```xml - + @@ -8740,7 +8740,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8770,7 +8770,7 @@ REQUEST: ```xml - + registrar2 @@ -8781,7 +8781,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8799,7 +8799,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8816,7 +8816,7 @@ REQUEST: ```xml - + @@ -8840,7 +8840,7 @@ RESPONSE: ```xml - + Transfer can be approved only by current domain registrar @@ -8857,7 +8857,7 @@ REQUEST: ```xml - + registrar1 @@ -8868,7 +8868,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -8886,7 +8886,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -8905,7 +8905,7 @@ REQUEST: ```xml - + @@ -8929,7 +8929,7 @@ RESPONSE: ```xml - + Authorization error @@ -8948,7 +8948,7 @@ REQUEST: ```xml - + @@ -8972,7 +8972,7 @@ RESPONSE: ```xml - + Domain already belongs to the querying registrar @@ -8991,7 +8991,7 @@ REQUEST: ```xml - + @@ -9007,13 +9007,13 @@ RESPONSE: ```xml - + - Element '{urn:ietf:params:xml:ns:epp-1.0}transfer', attribute 'op': [facet 'enumeration'] The value 'bla' is not an element of the set {'approve', 'cancel', 'query', 'reject', 'request'}. + Element '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}transfer', attribute 'op': [facet 'enumeration'] The value 'bla' is not an element of the set {'approve', 'cancel', 'query', 'reject', 'request'}. - Element '{urn:ietf:params:xml:ns:epp-1.0}transfer', attribute 'op': 'bla' is not a valid value of the atomic type '{urn:ietf:params:xml:ns:epp-1.0}transferOpType'. + Element '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}transfer', attribute 'op': 'bla' is not a valid value of the atomic type '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}transferOpType'. ABC-12345 @@ -9029,7 +9029,7 @@ REQUEST: ```xml - + registrar2 @@ -9040,7 +9040,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -9058,7 +9058,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9075,7 +9075,7 @@ REQUEST: ```xml - + @@ -9099,7 +9099,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9127,7 +9127,7 @@ REQUEST: ```xml - + @@ -9151,7 +9151,7 @@ RESPONSE: ```xml - + Authorization error @@ -9168,7 +9168,7 @@ REQUEST: ```xml - + registrar1 @@ -9179,7 +9179,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -9197,7 +9197,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9216,7 +9216,7 @@ REQUEST: ```xml - + @@ -9240,7 +9240,7 @@ RESPONSE: ```xml - + No transfers found @@ -9259,7 +9259,7 @@ REQUEST: ```xml - + @@ -9278,7 +9278,7 @@ RESPONSE: ```xml - + No transfers found @@ -9297,7 +9297,7 @@ REQUEST: ```xml - + @@ -9316,7 +9316,7 @@ RESPONSE: ```xml - + No transfers found @@ -9335,7 +9335,7 @@ REQUEST: ```xml - + registrar2 @@ -9346,7 +9346,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -9364,7 +9364,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9381,7 +9381,7 @@ REQUEST: ```xml - + @@ -9401,7 +9401,7 @@ RESPONSE: ```xml - + Unimplemented object service @@ -9421,7 +9421,7 @@ REQUEST: ```xml - + registrar1 @@ -9432,7 +9432,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -9450,7 +9450,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9469,7 +9469,7 @@ REQUEST: ```xml - + @@ -9494,7 +9494,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9513,7 +9513,7 @@ REQUEST: ```xml - + @@ -9538,7 +9538,7 @@ RESPONSE: ```xml - + Command completed successfully; action pending @@ -9557,7 +9557,7 @@ REQUEST: ```xml - + @@ -9578,7 +9578,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9597,7 +9597,7 @@ REQUEST: ```xml - + @@ -9635,7 +9635,7 @@ RESPONSE: ```xml - + Nameservers count must be between 2-11 [nameservers] @@ -9654,7 +9654,7 @@ REQUEST: ```xml - + @@ -9679,7 +9679,7 @@ RESPONSE: ```xml - + Nameservers count must be between 2-11 [nameservers] @@ -9698,7 +9698,7 @@ REQUEST: ```xml - + @@ -9723,7 +9723,7 @@ RESPONSE: ```xml - + Object status prohibits operation @@ -9742,7 +9742,7 @@ REQUEST: ```xml - + @@ -9767,7 +9767,7 @@ RESPONSE: ```xml - + Object status prohibits operation @@ -9786,7 +9786,7 @@ REQUEST: ```xml - + @@ -9833,7 +9833,7 @@ RESPONSE: ```xml - + Contact was not found @@ -9853,7 +9853,7 @@ REQUEST: ```xml - + @@ -9900,7 +9900,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -9917,7 +9917,7 @@ REQUEST: ```xml - + @@ -9964,7 +9964,7 @@ RESPONSE: ```xml - + Nameserver already exists on this domain [hostname] @@ -10010,7 +10010,7 @@ REQUEST: ```xml - + @@ -10063,7 +10063,7 @@ RESPONSE: ```xml - + Contact was not found @@ -10083,7 +10083,7 @@ REQUEST: ```xml - + @@ -10136,7 +10136,7 @@ RESPONSE: ```xml - + Command completed successfully; action pending @@ -10155,7 +10155,7 @@ REQUEST: ```xml - + @@ -10175,7 +10175,7 @@ RESPONSE: ```xml - + Parameter value policy error. Client-side object status management not supported: status [status] @@ -10194,7 +10194,7 @@ REQUEST: ```xml - + @@ -10241,7 +10241,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10258,7 +10258,7 @@ REQUEST: ```xml - + @@ -10295,7 +10295,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10312,7 +10312,7 @@ REQUEST: ```xml - + @@ -10349,7 +10349,7 @@ RESPONSE: ```xml - + Nameserver was not found @@ -10389,7 +10389,7 @@ REQUEST: ```xml - + @@ -10408,7 +10408,7 @@ RESPONSE: ```xml - + Status was not found @@ -10430,7 +10430,7 @@ REQUEST: ```xml - + @@ -10454,7 +10454,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10471,7 +10471,7 @@ REQUEST: ```xml - + @@ -10495,7 +10495,7 @@ RESPONSE: ```xml - + Nameserver already exists on this domain [hostname] @@ -10523,7 +10523,7 @@ REQUEST: ```xml - + @@ -10542,7 +10542,7 @@ RESPONSE: ```xml - + Required parameter missing: extension > extdata > legalDocument [legal_document] @@ -10561,7 +10561,7 @@ REQUEST: ```xml - + @@ -10580,7 +10580,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/domain-eis-1.0.xsd}status', attribute 's': [facet 'enumeration'] The value 'invalidStatus' is not an element of the set {'clientDeleteProhibited', 'clientHold', 'clientRenewProhibited', 'clientTransferProhibited', 'clientUpdateProhibited', 'inactive', 'ok', 'pendingCreate', 'pendingDelete', 'pendingRenew', 'pendingTransfer', 'pendingUpdate', 'serverDeleteProhibited', 'serverHold', 'serverRenewProhibited', 'serverTransferProhibited', 'serverUpdateProhibited'}. @@ -10602,7 +10602,7 @@ REQUEST: ```xml - + @@ -10620,7 +10620,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10645,7 +10645,7 @@ REQUEST: ```xml - + @@ -10663,7 +10663,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10688,7 +10688,7 @@ REQUEST: ```xml - + @@ -10705,7 +10705,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10730,7 +10730,7 @@ REQUEST: ```xml - + @@ -10748,7 +10748,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/domain-eis-1.0.xsd}period', attribute 'unit': [facet 'enumeration'] The value '' is not an element of the set {'y', 'm', 'd'}. @@ -10768,7 +10768,7 @@ REQUEST: ```xml - + @@ -10786,7 +10786,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/domain-eis-1.0.xsd}period', attribute 'unit': [facet 'enumeration'] The value 'bla' is not an element of the set {'y', 'm', 'd'}. @@ -10808,7 +10808,7 @@ REQUEST: ```xml - + @@ -10826,7 +10826,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10851,7 +10851,7 @@ REQUEST: ```xml - + @@ -10869,7 +10869,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -10894,7 +10894,7 @@ REQUEST: ```xml - + @@ -10912,7 +10912,7 @@ RESPONSE: ```xml - + Billing failure - credit balance low @@ -10931,7 +10931,7 @@ REQUEST: ```xml - + @@ -10949,7 +10949,7 @@ RESPONSE: ```xml - + Given and current expire dates do not match @@ -10974,7 +10974,7 @@ REQUEST: ```xml - + @@ -10992,7 +10992,7 @@ RESPONSE: ```xml - + Period must add up to 1, 2 or 3 years [period] @@ -11014,7 +11014,7 @@ REQUEST: ```xml - + @@ -11032,7 +11032,7 @@ RESPONSE: ```xml - + Object is not eligible for renewal @@ -11049,7 +11049,7 @@ REQUEST: ```xml - + @@ -11067,7 +11067,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11092,7 +11092,7 @@ REQUEST: ```xml - + @@ -11110,7 +11110,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11135,7 +11135,7 @@ REQUEST: ```xml - + @@ -11153,7 +11153,7 @@ RESPONSE: ```xml - + Object is not eligible for renewal @@ -11172,7 +11172,7 @@ REQUEST: ```xml - + @@ -11190,7 +11190,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11215,7 +11215,7 @@ REQUEST: ```xml - + registrar2 @@ -11226,7 +11226,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -11244,7 +11244,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11261,7 +11261,7 @@ REQUEST: ```xml - + @@ -11279,7 +11279,7 @@ RESPONSE: ```xml - + Authorization error @@ -11296,7 +11296,7 @@ REQUEST: ```xml - + registrar1 @@ -11307,7 +11307,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -11325,7 +11325,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11344,7 +11344,7 @@ REQUEST: ```xml - + @@ -11362,7 +11362,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11442,7 +11442,7 @@ REQUEST: ```xml - + @@ -11460,7 +11460,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11542,7 +11542,7 @@ REQUEST: ```xml - + @@ -11560,7 +11560,7 @@ RESPONSE: ```xml - + Element '{https://epp.tld.ee/schema/domain-eis-1.0.xsd}name', attribute 'hosts': [facet 'enumeration'] The value 'invalid' is not an element of the set {'all', 'del', 'none', 'sub'}. @@ -11579,7 +11579,7 @@ REQUEST: ```xml - + @@ -11597,7 +11597,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11642,7 +11642,7 @@ REQUEST: ```xml - + @@ -11660,7 +11660,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11700,7 +11700,7 @@ REQUEST: ```xml - + @@ -11718,7 +11718,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11751,7 +11751,7 @@ REQUEST: ```xml - + @@ -11769,7 +11769,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11821,7 +11821,7 @@ REQUEST: ```xml - + @@ -11839,7 +11839,7 @@ RESPONSE: ```xml - + Domain not found @@ -11860,7 +11860,7 @@ REQUEST: ```xml - + @@ -11878,7 +11878,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11927,7 +11927,7 @@ REQUEST: ```xml - + registrar2 @@ -11938,7 +11938,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -11956,7 +11956,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -11973,7 +11973,7 @@ REQUEST: ```xml - + @@ -11991,7 +11991,7 @@ RESPONSE: ```xml - + Authorization error @@ -12007,7 +12007,7 @@ REQUEST: ```xml - + registrar1 @@ -12018,7 +12018,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -12036,7 +12036,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12055,7 +12055,7 @@ REQUEST: ```xml - + registrar2 @@ -12066,7 +12066,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -12084,7 +12084,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12101,7 +12101,7 @@ REQUEST: ```xml - + @@ -12116,7 +12116,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12160,7 +12160,7 @@ REQUEST: ```xml - + registrar1 @@ -12171,7 +12171,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -12189,7 +12189,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12208,7 +12208,7 @@ REQUEST: ```xml - + registrar2 @@ -12219,7 +12219,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -12237,7 +12237,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12254,7 +12254,7 @@ REQUEST: ```xml - + @@ -12272,7 +12272,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12319,7 +12319,7 @@ REQUEST: ```xml - + registrar1 @@ -12330,7 +12330,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -12348,7 +12348,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12367,7 +12367,7 @@ REQUEST: ```xml - + @@ -12388,7 +12388,7 @@ RESPONSE: ```xml - + Command completed successfully; action pending @@ -12407,7 +12407,7 @@ REQUEST: ```xml - + @@ -12428,7 +12428,7 @@ RESPONSE: ```xml - + Domain status prohibits operation @@ -12447,7 +12447,7 @@ REQUEST: ```xml - + @@ -12468,7 +12468,7 @@ RESPONSE: ```xml - + Object status prohibits operation @@ -12487,7 +12487,7 @@ REQUEST: ```xml - + @@ -12503,7 +12503,7 @@ RESPONSE: ```xml - + Required parameter missing: extension > extdata > legalDocument [legal_document] @@ -12522,7 +12522,7 @@ REQUEST: ```xml - + @@ -12538,7 +12538,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12562,7 +12562,7 @@ REQUEST: ```xml - + @@ -12578,7 +12578,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12605,7 +12605,7 @@ REQUEST: ```xml - + @@ -12623,7 +12623,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12655,7 +12655,7 @@ REQUEST: ```xml - + @@ -12672,7 +12672,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12702,7 +12702,7 @@ REQUEST: ```xml - + ABC-12345 @@ -12714,7 +12714,7 @@ RESPONSE: ```xml - + Command completed successfully; ack to dequeue @@ -12737,7 +12737,7 @@ REQUEST: ```xml - + registrar1 @@ -12748,7 +12748,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -12766,7 +12766,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -12785,7 +12785,7 @@ REQUEST: ```xml - + domain67.ee @@ -12811,7 +12811,7 @@ RESPONSE: ```xml - + Unimplemented object service @@ -12833,7 +12833,7 @@ REQUEST: ```xml - + domain67.ee @@ -12858,7 +12858,7 @@ RESPONSE: ```xml - + Required parameter missing: keyrelay > keyData > flags [flags] @@ -12883,7 +12883,7 @@ REQUEST: ```xml - + domain67.ee @@ -12909,7 +12909,7 @@ RESPONSE: ```xml - + Expiry relative must be compatible to ISO 8601 @@ -12931,7 +12931,7 @@ REQUEST: ```xml - + domain67.ee @@ -12957,7 +12957,7 @@ RESPONSE: ```xml - + Expiry absolute must be compatible to ISO 8601 @@ -12979,7 +12979,7 @@ REQUEST: ```xml - + domain67.ee @@ -13008,7 +13008,7 @@ RESPONSE: ```xml - + Unimplemented object service @@ -13030,7 +13030,7 @@ REQUEST: ```xml - + domain67.ee @@ -13059,7 +13059,7 @@ RESPONSE: ```xml - + Attribute is invalid: type @@ -13076,7 +13076,7 @@ REQUEST: ```xml - + registrar1 @@ -13087,7 +13087,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13105,7 +13105,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13124,7 +13124,7 @@ REQUEST: ```xml - + 1441791745 @@ -13136,7 +13136,7 @@ RESPONSE: ```xml - + Command completed successfully; no messages @@ -13155,7 +13155,7 @@ REQUEST: ```xml - + registrar2 @@ -13166,7 +13166,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13184,7 +13184,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13201,7 +13201,7 @@ REQUEST: ```xml - + 1441791746 @@ -13213,7 +13213,7 @@ RESPONSE: ```xml - + Command completed successfully; no messages @@ -13230,7 +13230,7 @@ REQUEST: ```xml - + registrar1 @@ -13241,7 +13241,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13259,7 +13259,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13276,7 +13276,7 @@ REQUEST: ```xml - + 1441791746 @@ -13288,7 +13288,7 @@ RESPONSE: ```xml - + Command completed successfully; ack to dequeue @@ -13309,7 +13309,7 @@ REQUEST: ```xml - + registrar2 @@ -13320,7 +13320,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13338,7 +13338,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13355,7 +13355,7 @@ REQUEST: ```xml - + 1441791746 @@ -13367,7 +13367,7 @@ RESPONSE: ```xml - + Message was not found @@ -13387,7 +13387,7 @@ REQUEST: ```xml - + registrar1 @@ -13398,7 +13398,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13416,7 +13416,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13433,7 +13433,7 @@ REQUEST: ```xml - + 1441791746 @@ -13445,7 +13445,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13463,7 +13463,7 @@ REQUEST: ```xml - + 1441791746 @@ -13475,7 +13475,7 @@ RESPONSE: ```xml - + Message was not found @@ -13497,7 +13497,7 @@ REQUEST: ```xml - + 1441791748 @@ -13509,13 +13509,13 @@ RESPONSE: ```xml - + - Element '{urn:ietf:params:xml:ns:epp-1.0}poll', attribute 'op': [facet 'enumeration'] The value 'bla' is not an element of the set {'ack', 'req'}. + Element '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}poll', attribute 'op': [facet 'enumeration'] The value 'bla' is not an element of the set {'ack', 'req'}. - Element '{urn:ietf:params:xml:ns:epp-1.0}poll', attribute 'op': 'bla' is not a valid value of the atomic type '{urn:ietf:params:xml:ns:epp-1.0}pollOpType'. + Element '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}poll', attribute 'op': 'bla' is not a valid value of the atomic type '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}pollOpType'. 1441791748 @@ -13531,7 +13531,7 @@ REQUEST: ```xml - + 1441791749 @@ -13543,7 +13543,7 @@ RESPONSE: ```xml - + Command completed successfully; ack to dequeue @@ -13564,7 +13564,7 @@ REQUEST: ```xml - + 1441791749 @@ -13576,7 +13576,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13594,7 +13594,7 @@ REQUEST: ```xml - + 1441791749 @@ -13606,7 +13606,7 @@ RESPONSE: ```xml - + Command completed successfully; ack to dequeue @@ -13627,7 +13627,7 @@ REQUEST: ```xml - + 1441791749 @@ -13639,7 +13639,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13657,7 +13657,7 @@ REQUEST: ```xml - + 1441791749 @@ -13669,7 +13669,7 @@ RESPONSE: ```xml - + Command completed successfully; ack to dequeue @@ -13690,7 +13690,7 @@ REQUEST: ```xml - + 1441791749 @@ -13702,7 +13702,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -13720,7 +13720,7 @@ REQUEST: ```xml - + 1441791749 @@ -13732,7 +13732,7 @@ RESPONSE: ```xml - + Command completed successfully; no messages @@ -13751,7 +13751,7 @@ RESPONSE: ```xml - + EPP server (EIS) 2015-09-09T09:42:29Z @@ -13759,7 +13759,7 @@ RESPONSE: 1.0 en https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13794,7 +13794,7 @@ REQUEST: ```xml - + wrong-user @@ -13805,7 +13805,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13823,7 +13823,7 @@ RESPONSE: ```xml - + Authentication error; server closing connection (API user not found) @@ -13842,7 +13842,7 @@ REQUEST: ```xml - + inactive-user @@ -13853,7 +13853,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13871,7 +13871,7 @@ RESPONSE: ```xml - + Authentication error; server closing connection (API user is not active) @@ -13890,7 +13890,7 @@ REQUEST: ```xml - + @@ -13906,7 +13906,7 @@ RESPONSE: ```xml - + You need to login first. @@ -13925,7 +13925,7 @@ REQUEST: ```xml - + wrong-user @@ -13936,7 +13936,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -13953,7 +13953,7 @@ RESPONSE: ```xml - + Authentication error; server closing connection (API user not found) @@ -13971,7 +13971,7 @@ REQUEST: ```xml - + 你好你好 @@ -13982,7 +13982,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -14000,7 +14000,7 @@ RESPONSE: ```xml - + Parameter value policy error. Allowed only Latin characters. @@ -14019,7 +14019,7 @@ REQUEST: ```xml - + gitlab @@ -14030,7 +14030,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -14048,7 +14048,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -14067,7 +14067,7 @@ REQUEST: ```xml - + gitlab @@ -14078,7 +14078,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -14096,7 +14096,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -14113,7 +14113,7 @@ REQUEST: ```xml - + gitlab @@ -14124,7 +14124,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -14142,7 +14142,7 @@ RESPONSE: ```xml - + Already logged in. Use <logout> first. @@ -14161,7 +14161,7 @@ REQUEST: ```xml - + gitlab @@ -14172,7 +14172,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -14190,7 +14190,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -14207,7 +14207,7 @@ REQUEST: ```xml - + ABC-12345 @@ -14219,7 +14219,7 @@ RESPONSE: ```xml - + Command completed successfully; ending session @@ -14238,7 +14238,7 @@ REQUEST: ```xml - + gitlab @@ -14250,7 +14250,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -14268,7 +14268,7 @@ RESPONSE: ```xml - + Command completed successfully @@ -14287,7 +14287,7 @@ REQUEST: ```xml - + gitlab @@ -14299,7 +14299,7 @@ REQUEST: https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0 @@ -14317,13 +14317,13 @@ RESPONSE: ```xml - + - Element '{urn:ietf:params:xml:ns:epp-1.0}newPW': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '6'. + Element '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}newPW': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '6'. - Element '{urn:ietf:params:xml:ns:epp-1.0}newPW': '' is not a valid value of the atomic type '{urn:ietf:params:xml:ns:epp-1.0}pwType'. + Element '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}newPW': '' is not a valid value of the atomic type '{https://epp.tld.ee/schema/epp-ee-1.0.xsd}pwType'. ABC-12345 diff --git a/doc/epp/README.md b/doc/epp/README.md index 21d1b9708..99ffd07df 100644 --- a/doc/epp/README.md +++ b/doc/epp/README.md @@ -29,9 +29,12 @@ ### .ee-specific * [all-ee-1.0.xsd](/lib/schemas/all-ee-1.0.xsd) +* [all-ee-1.1.xsd](/lib/schemas/all-ee-1.1.xsd) +* [eis-1.0.xsd](/lib/schemas/eis-1.0.xsd) +* [epp-ee-1.0.xsd](/lib/schemas/epp-ee-1.0.xsd) * [domain-eis-1.0.xsd](/lib/schemas/domain-eis-1.0.xsd) * [contact-eis-1.0.xsd](/lib/schemas/contact-eis-1.0.xsd) -* [eis-1.0.xsd](/lib/schemas/eis-1.0.xsd) +* [contact-ee-1.1.xsd](/lib/schemas/contact-ee-1.1.xsd) More info about The Extensible Provisioning Protocol (EPP): http://en.wikipedia.org/wiki/Extensible_Provisioning_Protocol diff --git a/doc/epp/contact.md b/doc/epp/contact.md index 684e43185..9721f876f 100644 --- a/doc/epp/contact.md +++ b/doc/epp/contact.md @@ -17,7 +17,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode Field name Min-max Field description ----------------------- ------- ----------------- 1 - 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-eis-1.0.xsd" + 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd" 0-1 Contact id, optional, string: ASCII letters, numbers, ':', '-' characters, no spaces, max 100 characters, @@ -53,7 +53,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode Field name Min-max Field description ----------------------- ------- ----------------- 1 - 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-eis-1.0.xsd" + 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd" 1 Contact id, required 1 Change container 1 Postal information container @@ -90,7 +90,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode Field name Min-max Field description ----------------------- ------- ----------------- 1 - 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-eis-1.0.xsd" + 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd" 1 Contact id 0-1 Required if registrar is not the owner of the contact. 1 Contact password. Attribute: roid="String" @@ -108,7 +108,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode Field name Min-max Field description ----------------------- ------- ----------------- 1 - 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-eis-1.0.xsd" + 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd" 1-n Contact id 0-1 Client transaction id @@ -120,7 +120,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode Field name Min-max Field description ----------------------- ------- ----------------- 1 - 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-eis-1.0.xsd" + 1 Attribute: xmlns:contact="https://epp.tld.ee/schema/contact-ee-1.1.xsd" 1-n Contact id 0-1 Required if registrar is not the owner of the contact. 1 Contact password. Attribute: roid="String" diff --git a/doc/epp/session.md b/doc/epp/session.md index a496e9ce0..1e10dce2b 100644 --- a/doc/epp/session.md +++ b/doc/epp/session.md @@ -4,7 +4,7 @@ Here are functions like login, logout, hello, poll ### Hello request - + diff --git a/lib/epp_constraint.rb b/lib/epp_constraint.rb index 4463a7a04..c490254ed 100644 --- a/lib/epp_constraint.rb +++ b/lib/epp_constraint.rb @@ -1,7 +1,7 @@ class EppConstraint OBJECT_TYPES = { domain: { domain: 'https://epp.tld.ee/schema/domain-eis-1.0.xsd' }, - contact: { contact: 'https://epp.tld.ee/schema/contact-eis-1.0.xsd' } + contact: { contact: 'https://epp.tld.ee/schema/contact-ee-1.1.xsd' } } def initialize(type) diff --git a/lib/ext/xml_builder.rb b/lib/ext/xml_builder.rb index e00a471af..2c933c480 100644 --- a/lib/ext/xml_builder.rb +++ b/lib/ext/xml_builder.rb @@ -4,9 +4,9 @@ class Builder::XmlMarkup def epp_head self.instruct! epp( - 'xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', + 'xmlns' => 'https://epp.tld.ee/schema/epp-ee-1.0.xsd', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', - 'xsi:schemaLocation' => 'urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd' + 'xsi:schemaLocation' => 'lib/schemas/epp-ee-1.0.xsd' ) do yield end diff --git a/lib/schemas/all-ee-1.0.xsd b/lib/schemas/all-ee-1.0.xsd index 3013daf48..5cba9d965 100644 --- a/lib/schemas/all-ee-1.0.xsd +++ b/lib/schemas/all-ee-1.0.xsd @@ -18,7 +18,7 @@ --> - + + + + + + + + + + + + + + + + + + + + Extensible Provisioning Protocol v1.0 + all schema's grouped together + + + + diff --git a/lib/schemas/contact-1.0.xsd b/lib/schemas/contact-1.0.xsd index 9b4c244cd..d61d19cd1 100644 --- a/lib/schemas/contact-1.0.xsd +++ b/lib/schemas/contact-1.0.xsd @@ -2,7 +2,7 @@ @@ -11,7 +11,7 @@ Import common element types. --> - + @@ -385,4 +385,4 @@ Pending action notification response elements. - \ No newline at end of file + diff --git a/lib/schemas/contact-ee-1.1.xsd b/lib/schemas/contact-ee-1.1.xsd new file mode 100644 index 000000000..6a115bfab --- /dev/null +++ b/lib/schemas/contact-ee-1.1.xsd @@ -0,0 +1,366 @@ + + + + + + + + + + + + Extensible Provisioning Protocol v1.1 + contact provisioning schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/schemas/contact-eis-1.0.xsd b/lib/schemas/contact-eis-1.0.xsd index cec571cec..6943c5abd 100644 --- a/lib/schemas/contact-eis-1.0.xsd +++ b/lib/schemas/contact-eis-1.0.xsd @@ -2,7 +2,7 @@ @@ -11,7 +11,7 @@ Import common element types. --> - + diff --git a/lib/schemas/domain-1.0.xsd b/lib/schemas/domain-1.0.xsd index 46859859e..329aef749 100644 --- a/lib/schemas/domain-1.0.xsd +++ b/lib/schemas/domain-1.0.xsd @@ -3,7 +3,7 @@ @@ -12,7 +12,7 @@ Import common element types. --> - + @@ -429,4 +429,4 @@ Pending action notification response elements. - \ No newline at end of file + diff --git a/lib/schemas/domain-eis-1.0.xsd b/lib/schemas/domain-eis-1.0.xsd index b38abf9d4..edf8676af 100644 --- a/lib/schemas/domain-eis-1.0.xsd +++ b/lib/schemas/domain-eis-1.0.xsd @@ -3,7 +3,7 @@ @@ -12,7 +12,7 @@ Import common element types. --> - + diff --git a/lib/schemas/epp-ee-1.0.xsd b/lib/schemas/epp-ee-1.0.xsd new file mode 100644 index 000000000..40388725c --- /dev/null +++ b/lib/schemas/epp-ee-1.0.xsd @@ -0,0 +1,447 @@ + + + + + + + + + + + Extensible Provisioning Protocol v1.0 schema. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/schemas/host-1.0.xsd b/lib/schemas/host-1.0.xsd index d4bbc043e..07202779b 100644 --- a/lib/schemas/host-1.0.xsd +++ b/lib/schemas/host-1.0.xsd @@ -2,7 +2,7 @@ @@ -10,7 +10,7 @@ Import common element types. --> - + @@ -235,4 +235,4 @@ Pending action notification response elements. - \ No newline at end of file + diff --git a/lib/schemas/keyrelay-1.0.xsd b/lib/schemas/keyrelay-1.0.xsd index 2239754e7..d5a8335fd 100644 --- a/lib/schemas/keyrelay-1.0.xsd +++ b/lib/schemas/keyrelay-1.0.xsd @@ -2,7 +2,7 @@ - + diff --git a/spec/api/repp/contact_v1_spec.rb b/spec/api/repp/contact_v1_spec.rb new file mode 100644 index 000000000..455b7bd91 --- /dev/null +++ b/spec/api/repp/contact_v1_spec.rb @@ -0,0 +1,50 @@ +require 'rails_helper' + +RSpec.describe Repp::ContactV1, db: true do + let(:user) { FactoryGirl.create(:api_user, registrar: registrar) } + let(:registrar) { FactoryGirl.create(:registrar) } + + describe '/contacts' do + let(:returned_attributes) { HashWithIndifferentAccess.new(JSON.parse(response.body)['contacts'].first).keys } + subject(:address_included) { Contact.address_attribute_names.any? { |attr| returned_attributes.include?(attr.to_s) } } + + before do + Grape::Endpoint.before_each do |endpoint| + allow(endpoint).to receive(:current_user).and_return(user) + end + + registrar.contacts << FactoryGirl.create(:contact) + end + + it 'responds with success' do + get '/repp/v1/contacts', { limit: 1, details: true }, { 'HTTP_AUTHORIZATION' => http_auth_key } + expect(response).to have_http_status(:success) + end + + context 'when address processing is enabled' do + before do + expect(Contact).to receive(:address_processing?).and_return(true) + get '/repp/v1/contacts', { limit: 1, details: true }, { 'HTTP_AUTHORIZATION' => http_auth_key } + end + + it 'returns contact address' do + expect(address_included).to be_truthy + end + end + + context 'when address processing is disabled' do + before do + expect(Contact).to receive(:address_processing?).and_return(false) + get '/repp/v1/contacts', { limit: 1, details: true }, { 'HTTP_AUTHORIZATION' => http_auth_key } + end + + it 'does not return contact address' do + expect(address_included).to be_falsy + end + end + end + + def http_auth_key + ActionController::HttpAuthentication::Basic.encode_credentials(user.username, user.password) + end +end diff --git a/spec/factories/api_user.rb b/spec/factories/api_user.rb index d5a3c777d..723a966a5 100644 --- a/spec/factories/api_user.rb +++ b/spec/factories/api_user.rb @@ -4,5 +4,9 @@ FactoryGirl.define do password 'a' * 6 roles ['super'] registrar + + factory :api_user_epp do + roles %w(epp static_registrant) + end end end diff --git a/spec/models/admin_user_spec.rb b/spec/models/admin_user_spec.rb index eeb47107b..0d3c7e083 100644 --- a/spec/models/admin_user_spec.rb +++ b/spec/models/admin_user_spec.rb @@ -39,4 +39,10 @@ RSpec.describe AdminUser do expect(described_class.min_password_length).to eq(8) end end + + describe '#min_password_length' do + it 'returns minimum password length' do + expect(described_class.min_password_length).to eq(8) + end + end end diff --git a/spec/models/contact_spec.rb b/spec/models/contact_spec.rb index b20f4bf60..3952a1d0e 100644 --- a/spec/models/contact_spec.rb +++ b/spec/models/contact_spec.rb @@ -164,7 +164,10 @@ RSpec.describe Contact do it 'should have code' do registrar = Fabricate.create(:registrar, code: 'registrarcode') - contact = Fabricate.create(:contact, registrar: registrar, code: 'contactcode') + + contact = Fabricate.build(:contact, registrar: registrar, code: 'contactcode') + contact.generate_code + contact.save! expect(contact.code).to eq('REGISTRARCODE:CONTACTCODE') end @@ -252,16 +255,6 @@ RSpec.describe Contact do end context 'after create' do - it 'should not generate a new code when code is present' do - @contact = Fabricate.build(:contact, - registrar: Fabricate(:registrar, code: 'FIXED'), - code: 'FIXED:new-code', - auth_info: 'qwe321') - @contact.code.should == 'FIXED:new-code' # still new record - @contact.save.should == true - @contact.code.should == 'FIXED:NEW-CODE' - end - it 'should not allow to use same code' do registrar = Fabricate.create(:registrar, code: 'FIXED') @@ -299,12 +292,15 @@ RSpec.describe Contact do end it 'should generate code if empty code is given' do - @contact = Fabricate(:contact, code: '') + @contact = Fabricate.build(:contact, code: '') + @contact.generate_code + @contact.save! @contact.code.should_not == '' end it 'should not ignore empty spaces as code and generate new one' do @contact = Fabricate.build(:contact, code: ' ', registrar: Fabricate(:registrar, code: 'FIXED')) + @contact.generate_code @contact.valid?.should == true @contact.code.should =~ /FIXED:..../ end @@ -316,6 +312,7 @@ RSpec.describe Contact do registrar: Fabricate(:registrar, code: 'FIXED'), code: '123asd', auth_info: 'qwe321') + @contact.generate_code @contact.save @contact.code.should == 'FIXED:123ASD' @auth_info = @contact.auth_info @@ -383,4 +380,87 @@ RSpec.describe Contact, db: false do expect(described_class.emails).to eq('emails') end end + + describe '::address_processing?' do + before do + Setting.address_processing = 'test' + end + + it 'returns setting value' do + expect(described_class.address_processing?).to eq('test') + end + end + + describe '::address_attribute_names', db: false do + it 'returns address attributes' do + attributes = %w( + city + street + zip + country_code + state + ) + expect(described_class.address_attribute_names).to eq(attributes) + end + end + + describe 'address validation', db: false do + let(:contact) { described_class.new } + subject(:errors) { contact.errors } + + required_attributes = %i(street city zip country_code) + + context 'when address processing is enabled' do + before do + allow(described_class).to receive(:address_processing?).and_return(true) + end + + required_attributes.each do |attr_name| + it "rejects absent #{attr_name}" do + contact.send("#{attr_name}=", nil) + contact.validate + expect(errors).to have_key(attr_name) + end + end + end + + context 'when address processing is disabled' do + before do + allow(described_class).to receive(:address_processing?).and_return(false) + end + + required_attributes.each do |attr_name| + it "accepts absent #{attr_name}" do + contact.send("#{attr_name}=", nil) + contact.validate + expect(errors).to_not have_key(attr_name) + end + end + end + end + + describe 'country code validation' do + let(:contact) { described_class.new(country_code: 'test') } + + it 'rejects invalid' do + contact.country_code = 'invalid' + contact.validate + expect(contact.errors).to have_key(:country_code) + end + end + + describe '#remove_address' do + let(:contact) { described_class.new(city: 'test', + street: 'test', + zip: 'test', + country_code: 'test', + state: 'test') + } + subject(:address_removed) { contact.attributes.slice(*described_class.address_attribute_names).compact.empty? } + + it 'removes address attributes' do + contact.remove_address + expect(address_removed).to be_truthy + end + end end diff --git a/spec/requests/epp/contact/create_spec.rb b/spec/requests/epp/contact/create_spec.rb new file mode 100644 index 000000000..0f03fd6ac --- /dev/null +++ b/spec/requests/epp/contact/create_spec.rb @@ -0,0 +1,123 @@ +require 'rails_helper' + +RSpec.describe 'EPP contact:create' do + let(:request_xml_with_address) { ' + + + + + + test name + + test street + test city + 12345 + US + + + +372.1234567 + test@example.com + + + + + 1234567 + dGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGV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GVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCg + + + + ABC-12345 + + ' + } + subject(:response_xml) { Nokogiri::XML(response.body) } + subject(:response_code) { response_xml.xpath('//xmlns:result').first['code'] } + subject(:response_description) { response_xml.css('result msg').text } + subject(:address_saved) { Contact.last.attributes.slice(*Contact.address_attribute_names).compact.any? } + + before do + sign_in_to_epp_area + end + + context 'when address processing is enabled' do + before do + allow(Contact).to receive(:address_processing?).and_return(true) + end + + context 'with address' do + it 'returns epp code of 1000' do + post '/epp/command/create', frame: request_xml_with_address + expect(response_code).to eq('1000') + end + + it 'returns epp description' do + post '/epp/command/create', frame: request_xml_with_address + expect(response_description).to eq('Command completed successfully') + end + + it 'saves address' do + post '/epp/command/create', frame: request_xml_with_address + expect(address_saved).to be_truthy + end + end + end + + context 'when address processing is disabled' do + before do + allow(Contact).to receive(:address_processing?).and_return(false) + end + + context 'with address' do + it 'returns epp code of 1100' do + post '/epp/command/create', frame: request_xml_with_address + expect(response_code).to eq('1100') + end + + it 'returns epp description' do + post '/epp/command/create', frame: request_xml_with_address + expect(response_description).to eq('Command completed successfully; Postal address data discarded') + end + + it 'does not save address' do + post '/epp/command/create', frame: request_xml_with_address + expect(address_saved).to be_falsey + end + end + + context 'without address' do + let(:request_xml_without_address) { ' + + + + + + test name + + +372.1234567 + test@test.com + + + + + 123456 + dGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGV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GVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCg + + + + ABC-12345 + + ' + } + + it 'returns epp code of 1000' do + post '/epp/command/create', frame: request_xml_without_address + expect(response_code).to eq('1000') + end + + it 'returns epp description' do + post '/epp/command/create', frame: request_xml_without_address + expect(response_description).to eq('Command completed successfully') + end + end + end +end diff --git a/spec/requests/epp/contact/info_spec.rb b/spec/requests/epp/contact/info_spec.rb new file mode 100644 index 000000000..d37ac8e5f --- /dev/null +++ b/spec/requests/epp/contact/info_spec.rb @@ -0,0 +1,57 @@ +require 'rails_helper' + +RSpec.describe 'EPP contact:update' do + let(:request_xml) { ' + + + + + test + + + + ' + } + subject(:response_xml) { Nokogiri::XML(response.body) } + subject(:response_code) { response_xml.xpath('//xmlns:result').first['code'] } + subject(:address_count) { response_xml + .xpath('//contact:addr', contact: 'https://epp.tld.ee/schema/contact-ee-1.1.xsd') + .count } + + before do + sign_in_to_epp_area + FactoryGirl.create(:contact, code: 'TEST') + end + + context 'when address processing is enabled' do + before do + allow(Contact).to receive(:address_processing?).and_return(true) + end + + it 'returns epp code of 1000' do + post '/epp/command/info', frame: request_xml + expect(response_code).to eq('1000') + end + + it 'returns address' do + post '/epp/command/info', frame: request_xml + expect(address_count).to_not be_zero + end + end + + context 'when address processing is disabled' do + before do + allow(Contact).to receive(:address_processing?).and_return(false) + end + + it 'returns epp code of 1000' do + post '/epp/command/info', frame: request_xml + expect(response_code).to eq('1000') + end + + it 'does not return address' do + post '/epp/command/info', frame: request_xml + expect(address_count).to be_zero + end + end +end diff --git a/spec/requests/epp/contact/update_spec.rb b/spec/requests/epp/contact/update_spec.rb new file mode 100644 index 000000000..cd596dd85 --- /dev/null +++ b/spec/requests/epp/contact/update_spec.rb @@ -0,0 +1,105 @@ +require 'rails_helper' + +RSpec.describe 'EPP contact:update' do + let(:request_xml_with_address) { ' + + + + + test + + + + test street + test city + 12345 + DE + + + + + + + + dGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYW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YWlsCg + + + ABC-12345 + + ' + } + subject(:response_xml) { Nokogiri::XML(response.body) } + subject(:response_code) { response_xml.xpath('//xmlns:result').first['code'] } + subject(:response_description) { response_xml.css('result msg').text } + + before do + sign_in_to_epp_area + FactoryGirl.create(:contact, code: 'TEST') + end + + context 'when address processing is enabled' do + before do + allow(Contact).to receive(:address_processing?).and_return(true) + end + + context 'with address' do + it 'returns epp code of 1000' do + post '/epp/command/update', frame: request_xml_with_address + expect(response_code).to eq('1000') + end + + it 'returns epp description' do + post '/epp/command/update', frame: request_xml_with_address + expect(response_description).to eq('Command completed successfully') + end + end + end + + context 'when address processing is disabled' do + before do + allow(Contact).to receive(:address_processing?).and_return(false) + end + + context 'with address' do + it 'returns epp code of 1100' do + post '/epp/command/update', frame: request_xml_with_address + expect(response_code).to eq('1100') + end + + it 'returns epp description' do + post '/epp/command/update', frame: request_xml_with_address + expect(response_description).to eq('Command completed successfully; Postal address data discarded') + end + end + + context 'without address' do + let(:request_xml_without_address) { ' + + + + + test + + + + + dGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYW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YWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCgdGVzdCBmYWlsCg + + + ABC-12345 + + ' + } + + it 'returns epp code of 1000' do + post '/epp/command/update', frame: request_xml_without_address + expect(response_code).to eq('1000') + end + + it 'returns epp description' do + post '/epp/command/update', frame: request_xml_without_address + expect(response_description).to eq('Command completed successfully') + end + end + end +end diff --git a/spec/support/requests/session_helpers.rb b/spec/support/requests/session_helpers.rb index d4019c5f9..3f75da577 100644 --- a/spec/support/requests/session_helpers.rb +++ b/spec/support/requests/session_helpers.rb @@ -1,8 +1,8 @@ module Requests module SessionHelpers - def sign_in_to_epp_area(user: FactoryGirl.create(:api_user)) + def sign_in_to_epp_area(user: FactoryGirl.create(:api_user_epp)) login_xml = " - + #{user.username} @@ -13,7 +13,7 @@ module Requests https://epp.tld.ee/schema/domain-eis-1.0.xsd - https://epp.tld.ee/schema/contact-eis-1.0.xsd + https://epp.tld.ee/schema/contact-ee-1.1.xsd urn:ietf:params:xml:ns:host-1.0 urn:ietf:params:xml:ns:keyrelay-1.0