OregonDigital / hyrax-migrator

A Rails engine to facilitate migrating works into a Hyrax based application
MIT License
0 stars 0 forks source link

block uris with non-ascii characters #349

Open lsat12357 opened 2 years ago

lsat12357 commented 2 years ago

Currently, the crosswalk metadata service is allowing uris with non-ascii characters to pass through, and they are persisted in hyrax, only to blow up when the indexer runs. This in turn can cause other assets to blow up as well during nested indexing. Since we are already doing a superficial check for the presence of a uri in any property that should have one, we can also check that the uri is ascii_only? and fail the migration before it tries to persist.

lsat12357 commented 2 years ago

we should also add this check to preflight.