buda-base / buda-iiif-presentation

iiif presentation (collections and manifests) generation
Apache License 2.0
0 stars 0 forks source link

handling invalid characters in file names #105

Open eroux opened 3 years ago

eroux commented 3 years ago

https://iiifpres.bdrc.io/vo:bdr:I5913/manifest

fails (500) with the exception:

java.net.URISyntaxException: Illegal character in path at index 52: https://iiifpres.bdrc.io/v:bdr:I5913/canvas/59130580 .tif
    at java.net.URI$Parser.fail(URI.java:2848)
    at java.net.URI$Parser.checkChars(URI.java:3021)
    at java.net.URI$Parser.parseHierarchical(URI.java:3105)
    at java.net.URI$Parser.parse(URI.java:3053)
    at java.net.URI.<init>(URI.java:588)
    at java.net.URI.create(URI.java:850)
    at de.digitalcollections.iiif.model.sharedcanvas.Resource.<init>(Resource.java:100)
    at de.digitalcollections.iiif.model.sharedcanvas.Canvas.<init>(Canvas.java:41)
    at io.bdrc.iiif.presentation.ManifestService.buildCanvas(ManifestService.java:661)