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

Admin: domain history search fails for some domainnames #1695

Closed
vohmar opened this issue Sep 30, 2020 · 0 comments · Fixed by #1696
Closed

Admin: domain history search fails for some domainnames #1695

vohmar opened this issue Sep 30, 2020 · 0 comments · Fixed by #1696
Assignees
Labels

Comments

@vohmar
Copy link
Contributor

vohmar commented Sep 30, 2020

/admin/domain_versions

searching for domain history records in domain_versions view ends with internal error, but not with all domainnames

error message:

Sep 30 13:27:46 reg-l-epp ADMIN[26484]: [Hash] [Env_name] [IP_addr] Completed 500 Internal Server Error in 18844ms (ActiveRecord: 18734.8ms | Allocations: 25656)
Sep 30 13:27:46 reg-l-epp ADMIN[26484]: [Hash] [Env_name] [IP_addr]   #012[Hash] [Env_name] [IP_addr] ActionView::Template::Error (undefined method id=' for {}:Hash):#012[Hash] [Env_name] [IP_addr]     67:                   - else#012[Hash] [Env_name] [IP_addr]     68:                     - contact = Contact.all_versions_for([domain.registrant_id], version.created_at).first#012[Hash] [Env_name] [IP_addr]     69:                     - if contact.nil? && ver = ContactVersion.where(item_id: domain.registrant_id).last#012[Hash] [Env_name] [IP_addr]     70:                       - contact = Contact.new(ver.object.to_h.merge(ver.object_changes.to_h.each_with_object({}){|(k,v), o| o.public_send("#{k}=", v.last) } ))#012[Hash] [Env_name] [IP_addr]     71:                     = contact.try(:name)#012[Hash] [Env_name] [IP_addr]     72:                     = " ".html_safe#012[Hash] [Env_name] [IP_addr]     73:                     = "(#{t(:deleted)})"#012[Hash] [Env_name] [IP_addr]   #012[Hash] [Env_name] [IP_addr] app/views/admin/domain_versions/archive.haml:70:inpublic_send'#012[Hash] [Env_name] [IP_addr] app/views/admin/domain_versions/archive.haml:70#012[Hash] [Env_name] [IP_addr] app/views/admin/domain_versions/archive.haml:70:in each'#012[Hash] [Env_name] [IP_addr] app/views/admin/domain_versions/archive.haml:70:ineach_with_object'#012[Hash] [Env_name] [IP_addr] app/views/admin/domain_versions/archive.haml:70#012[Hash] [Env_name] [IP_addr] app/views/admin/domain_versions/archive.haml:56#012[Hash] [Env_name] [IP_addr] app/controllers/admin/domain_versions_controller.rb:47:in `index'

not sure what causes this error - initial thought was in relation to history ie problem is with domains that have been registered before, deleted and registered again, but now we also have an example of domain with long history and no re-registrations but still returns the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants