You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Service URLs with surrounding spaces are stored #356
A service url with leading or trailing spaces passes validation and is stored as written: normalize_url() and check_url_scheme() in cloud_registry/ga4gh/registry/service.py strip spaces only for their checks. Links (documentationUrl, organization.url, contactUrl) with such spaces are rejected.
With FOCA 0.21's response validation, one stored value like this would fail a whole list (GET /services, GET /verifications), not only the entry itself.
Proposed fix
Reject such values with 400 Bad Request, as for links and as the ExternalServiceRegister schema already describes (URLs "without ... whitespace"), and remove the strip branches. The database gets wiped for rc2, so no stored data needs migrating, and this should land before rc2 data accumulates.
Done when
POST and PUT /services and PUT verifications with such a URL return 400
The tolerance is gone from the code and from docs/api.md, and the release notes of rc2 mention the change
Activity