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

Two identical legaldocs created with contact_create and domain_create #336

Open
teadur opened this issue Jan 9, 2017 · 2 comments
Open
Assignees
Labels

Comments

@teadur
Copy link
Contributor

teadur commented Jan 9, 2017

If domain/contact is created with legaldoc, two identical legaldocs are created on filesystem:
-rw-r--r-- 1 epp epp 197039 Dec 16 14:57 20161216145744_6278.pdf
-rw-r--r-- 1 epp epp 197039 Dec 16 14:57 20161216145744_9565.pdf

Only one of them is linked in database.

Excepted behviour only one legaldoc should be created on the filesystem.
If the epp request ends in failure, only one doc is written to filesystem, that should be deleted.

@teadur teadur added the bug label Jan 9, 2017
@vohmar
Copy link
Contributor

vohmar commented Jan 9, 2017

we have a temp workaround for this in the form of rake task: legal_doc:remove_duplicates that looks for docs like that and deletes these.

@artur-intech artur-intech self-assigned this Dec 18, 2019
@artur-intech
Copy link
Contributor

legal_doc:remove_duplicates task is run manually on an on-demand basis.

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

No branches or pull requests

3 participants