Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Bad gateway if a handle is gone #84

Open
ghost opened this issue Jun 5, 2019 · 6 comments
Open

Bad gateway if a handle is gone #84

ghost opened this issue Jun 5, 2019 · 6 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jun 5, 2019

Requesting for a RIPE handle which is gone from the RIPE database gives a 502 bad gateway
Example: https://cp-aec-stg.cert.at/api/1.0/ripe/settings/5086/ORG-MAA1-RIPE

@ghost ghost assigned MarkHofstetter Jun 5, 2019
@MarkHofstetter
Copy link

#82 is closely related. The problem is that the handle still reverences the organisation. My suggestion would be a script that removes(?) the handles from the fodyorg_x_organization intersection - which always has to be executed after an import.
Should there be a notifcation to the "customer" that the handle is gone etc etc

@MarkHofstetter
Copy link

or just run:
update fodyorg_x_organization set deleted = 1 where ripe_org_hdl not in (select ripe_org_hdl
from fody.organisation_automatic);

after import

@ghost
Copy link
Author

ghost commented Jun 6, 2019

Workaround implemented

@ghost
Copy link
Author

ghost commented Jun 13, 2019

Setting the flag deleted to 1 is not sufficient, deleting works.

@certrik
Copy link

certrik commented Jan 7, 2020

@wagner-certat please comment and close if solved.

@ghost
Copy link
Author

ghost commented Jan 7, 2020

@certrik Only a workaround is available.

@ghost ghost added the bug label Feb 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants