Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop saving postal addresses (<contact:addr>) #251

Closed
vohmar opened this issue Nov 17, 2016 · 33 comments
Closed

stop saving postal addresses (<contact:addr>) #251

vohmar opened this issue Nov 17, 2016 · 33 comments
Assignees
Projects
Milestone

Comments

@vohmar
Copy link
Contributor

vohmar commented Nov 17, 2016

Starting on 1st of January 2017 EIS will stop collecting postal addresses for contact objects in .ee zone. The postal addr data will not be deleted on 1st of January - the system must igonre the data in the db.

the contact:addr part of epp contact schema postalInfoType for create element will be optional (minOccurs="0"). Create nor Update commands must not fail just because registrar adds postal address info in the epp request

If registrar send a contact create query with postal address data query is accepted and result code 1100 is returned with message "Command completed successfully; Postal address data discarded"

same goes for contact update - if contact:addr exists in contact:chg part of contact update request this data is discarded by the system the rest of the query is validated and result code 1100 is returned in case of no errors

contact info request should not return addr element in postalInfoType regardless if there is data saved in DB or not

in case of contact and domain transfers postal address data must be discarded

postal addr data rows must be removed from WHOIS results. Data must be deleted from whois db (structure will remain the same)

REPP must not return postal address data.

The functionality should be configurable in admin - checkbox for making registry not to save and return postal address data. The default setting is to collect postal address data.

Schemas that need update are (registry/lib/schemas/):

  • contact-eis-1.0.xsd > contact-ee-1.1.xsd (optional contact:addr)
  • epp-1.0.xsd > epp-ee-1.0.xsd (new result code 1100)
  • all-ee.xsd > all-ee-1.1.xsd (references to new versions of contact and epp schemas)

The example requests for contact:create and contact:update in epp-client and xml-console of the portal for registrars must also be updated with the new versions of xml schemas. (The contact:addr element will remain in the examples to support the check box functionality of admin interface - will come back to template switching in the future).

hide address block in contact create and update views of the portal for Registrars
/registrar/contacts/new
/registrar/contacts/CONTACT:ID

@artur-intech
Copy link
Contributor

artur-intech commented Dec 1, 2016

@vohmar Can you confirm that the postal address consists of the following fields?

  • city
  • street
  • zip
  • country_code
  • state

@vohmar
Copy link
Contributor Author

vohmar commented Dec 1, 2016

@artur-beljajev as specified in the issue heading and respecified in the description by postal address I mean contact:addr element the subelement of contact:postalInfo in EPP schema. Please familiraise yourself with the details: https://tools.ietf.org/html/rfc5733.

You can check the subelements of contact:addr element in the rfc or EPP contact schema. These are

  • contact:street
  • contact:city
  • contact:sp
  • contact:pc
  • contact:cc

@artur-intech
Copy link
Contributor

artur-intech commented Dec 1, 2016

I meant DB fields and the question was regarding REPP, which as I see has nothing to do with EPP (correct me if I am wrong).

@vohmar
Copy link
Contributor Author

vohmar commented Dec 1, 2016

yes these are the db fields

@artur-intech
Copy link
Contributor

artur-intech commented Dec 4, 2016

What is meant by "WHOIS results"? http://prntscr.com/dfdhfk I cannot find the address here.

@vohmar
Copy link
Contributor Author

vohmar commented Dec 5, 2016

@artur-beljajev you are correct, we do not publish postal address info of contacts in whois an thus this requirement is invalid. I removed it from the description.

@vohmar
Copy link
Contributor Author

vohmar commented Dec 5, 2016

updated the description of the ticket with a requirement:
"The example requests for contact:create and contact:update in epp-client and xml-console of the portal for registrars must also be updated with the new versions of xml schemas."

@vohmar
Copy link
Contributor Author

vohmar commented Dec 5, 2016

updated the description with references to necessary schema updates:
"Schemas that need update"

@artur-intech
Copy link
Contributor

artur-intech commented Dec 15, 2016

№ 1, № 2, № 3 Fixed by № 5, № 6, № 7
№ 4 Cannot reproduce. Check "address_processing" setting in admin and provide additional info if the issue remains
№ 5, 6, 7 Good catch, fixed. Please review this part thoroughly.

Also note related changes:
internetee/epp#1
https://github.com/internetee/depp/issues/1
internetee/EPP-web-client#10
internetee/epp-xml#3

P.S. GEMFILE dependencies of "registry" and "epp-web-client" projects are currently pointed to master branch of epp and epp-xml, so it will not work unless merged.

@vohmar
Copy link
Contributor Author

vohmar commented Dec 15, 2016

@artur-intech
Copy link
Contributor

artur-intech commented Dec 15, 2016

See my last comment. This is the most probable reason.

artur-intech pushed a commit to internetee/epp-xml that referenced this issue Dec 15, 2016
artur-intech pushed a commit to internetee/epp that referenced this issue Dec 15, 2016
artur-intech pushed a commit to internetee/epp that referenced this issue Dec 15, 2016
artur-intech pushed a commit to internetee/EPP-web-client that referenced this issue Dec 15, 2016
artur-intech pushed a commit that referenced this issue Dec 16, 2016
artur-intech pushed a commit that referenced this issue Dec 16, 2016
artur-intech pushed a commit that referenced this issue Dec 16, 2016
artur-intech pushed a commit that referenced this issue Dec 16, 2016
artur-intech pushed a commit to internetee/EPP-web-client that referenced this issue Dec 16, 2016
@vohmar
Copy link
Contributor Author

vohmar commented Dec 16, 2016

  1. The postal address is still required in the portal for registrars in the contact create and update forms (local validation)
  • /registrar/contacts/new
  • /registrar/contacts/CONTACT:ID/edit
  1. EPP-web-client returns an error if the postal address data is missing from the response
ActionView::Template::Error (uninitialized constant Depp::Contact::Country):
    20:       %dd= @contact.state
    21:
    22:       %dt= t(:country)
    23:       %dd= @contact.country_name
  app/models/depp/contact.rb:272:in `country_name'

@artur-intech
Copy link
Contributor

"local validation" = client-side?

@artur-intech
Copy link
Contributor

artur-intech commented Dec 19, 2016

№1 Is a known issue and you have extracted it to a separate ticket #290.

artur-intech pushed a commit that referenced this issue Dec 19, 2016
@vohmar
Copy link
Contributor Author

vohmar commented Dec 19, 2016

yes, local validation means client side - portal validates form data before sendint it to epp.
#290 is about hiding postal address form fields - this is not critical at the moment. No1 issue here is that in current form the postal address data is mandatory from client side - this is critical to solve and should be done in this ticket before it could be closed. Simple solution is to remove postal address field validations from the portal for registrars and epp web client.

artur-intech pushed a commit that referenced this issue Dec 19, 2016
@artur-intech
Copy link
Contributor

artur-intech commented Dec 19, 2016

Not sure you noticed #251 (comment)

@artur-intech
Copy link
Contributor

№ 1 is fixed.

@vohmar
Copy link
Contributor Author

vohmar commented Dec 19, 2016

the Address Processing chekcbox seems to have lost its function now. After enabling it I was still able to register a contact without postal address data

https://staging-adm.infra.tld.ee:444/admin/epp_logs/41221

it seems it takes some time before the settings take effect. (Cron)

@artur-intech
Copy link
Contributor

What CRON?

@vohmar
Copy link
Contributor Author

vohmar commented Dec 19, 2016

Setting.reload_settings!

@artur-intech
Copy link
Contributor

Oh, good to know that such thing does exist.

@vohmar
Copy link
Contributor Author

vohmar commented Jan 2, 2017

in production, branch deleted, closed

@vohmar vohmar closed this as completed Jan 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Domistry
Production
Development

No branches or pull requests

2 participants