pycsw
pycsw copied to clipboard
ogc api records 404 if uuid contains '/' or '%2F'
Description
Some communities tend to place a doi in metadata identifier e.g. 10.5281/zenodo.4088113
If you navigate to this item using /collections/metadata:main/items/10.5281/zenodo.4088113, then a 404 is returned, same error occurs with /collections/metadata:main/items/10.5281%2Fzenodo.4088113 (urlencoded).
I kind of expected option 2 to work fine, in which case we would have to make sure we always encode the '/' to %2F, alternatives could be to prevent '/' in identifiers by substituting to '-' or throw an error on insert.