Our Personal Data Server from scratch! tranquil.farm

is_valid_uri does not align with uri string format in atproto #130

Closed jack.is
Closed opened by jack.is

Getting a head start on my migration of teal.fm records from alpha to production, i was unable to migrate them.

Root cause appears to be that tranquil-pds/crates/tranquil-lexicon/src/formats.rs expects the uri string format to be “anything://anything”, but the lexicon allows “anything:anything”, more specifically any URI format as described in RFC-3986.

As part of the migration from fm.teal.alpha.* to fm.teal.*, the old alpha lexicons are no longer being served, so tranquil skips validation and allows any shape of the alpha lexicons to be valid.

Since production is being served however, the mbid:UUID URI is invalid according to tranquil and is rejected.

Sign up or Sign in to add to the discussion.