Skip to content

Validate resource logo URL is an URL starting with http or https #2584

@mike-podolskiy90

Description

@mike-podolskiy90

Issues were discovered in this IPT https://ipt.jbrj.gov.br/jabot

IPT accepts images to be embed like data:[<mediatype>][;base64],<data> which is not accepted by the registry. Registry expects logos to be proper URLs starting with http or https and it prevents resources from registration.

https://github.com/gbif/gbif-api/blob/dev/src/main/java/org/gbif/api/util/URIValidator.java#L55

So we have to align the IPT with the registry and require the same.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions