Skip to content

500 error from Fedora when fetching content with non-URL characters #185

@jcreel

Description

@jcreel

To reproduce, visit Cushing Collections on Pre:
https://library.tamu.edu/cap/rv/Pre-Production?context=bb%2F97%2Ff2%2F3e%2Fbb97f23e-803a-4bd6-8406-06802623554c

CAP will report the 500 error. Fedora reports, e.g., this:

2022-07-13 14:09:29.608 ERROR 1159 --- [io-9000-exec-37] o.s.boot.web.support.ErrorPageFilter : Forwarding to error page from request [/repository-view-context/FEDORA/2] due to exception [Illegal character in path at index 137: https://api-pre.library.tamu.edu/fcrepo
/rest/bb/97/f2/3e/bb97f23e-803a-4bd6-8406-06802623554c/londonmaps_public_domain-2020-04-17_objects[4]/fcr:metadata]

java.net.URISyntaxException: Illegal character in path at index 137: https://api-pre.library.tamu.edu/fcrepo/rest/bb/97/f2/3e/bb97f23e-803a-4bd6-8406-06802623554c/londonmaps_public_domain-2020-04-17_objects[4]/fcr:metadata
at java.net.URI$Parser.fail(URI.java:2848) ~[na:1.8.0_172]
at java.net.URI$Parser.checkChars(URI.java:3021) ~[na:1.8.0_172]
at java.net.URI$Parser.parseHierarchical(URI.java:3105) ~[na:1.8.0_172]
at java.net.URI$Parser.parse(URI.java:3053) ~[na:1.8.0_172]
at java.net.URI.(URI.java:588) ~[na:1.8.0_172]
at edu.tamu.cap.service.repositoryview.FedoraService.getRepositoryViewContext(FedoraService.java:139) ~[classes/:na]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions