gbif / registry

GBIF Registry
Apache License 2.0
35 stars 15 forks source link

Resource registration fails in IPT because of unknown registry error #596

Open mike-podolskiy90 opened 3 months ago

mike-podolskiy90 commented 3 months ago

If publishingOrganizationKey or installationKey is not present in the database, registry fails to process a request. Issues are here:

https://github.com/gbif/registry/blob/dev/registry-ws/src/main/java/org/gbif/registry/ws/util/LegacyResourceUtils.java#L139 https://github.com/gbif/registry/blob/dev/registry-ws/src/main/java/org/gbif/registry/ws/util/LegacyResourceUtils.java#L151

organizationService and installationService throw NotFoundException instead of retruning null

mike-podolskiy90 commented 3 months ago

related IPT issues https://github.com/gbif/ipt/issues/2456 https://github.com/gbif/ipt/issues/2458