Aaron Coburn reported to me that there is a problem with this regex
In that regular expression, there's a "\w" for matching a hash URI. That regex class is defined to include the following character ranges: A-Z, a-z, 0-9 and the _
As it turns out, though, there are many other legitimate characters that can be part of a hash URI, most notably, the - character, which incidentally is used for any blank-node skolemization.
To reproduce this, just create a resource with this RDF:
Then, try to version that resource. You can't. This will be a pretty significant gotcha for anyone who happens to rely on bnode skolemization in fedora.
Verified, by myself.
HTTP/1.1 201 Created
curl -i -XPOST -ufedoraAdmin:fedoraAdmin http://localhost:8080/fcrepo/rest/test_regex/fcr:versions
HTTP/1.1 400 Bad Request
Set-Cookie: JSESSIONID=CC4DC918CEBCEFD2EA7B4A4A251EEA66; Path=/fcrepo/; HttpOnly
Set-Cookie: rememberMe=deleteMe; Path=/fcrepo; Max-Age=0; Expires=Sun, 16-Dec-2018 15:48:40 GMT
Link: <http://localhost:8080/fcrepo/static/constraints/MalformedRdfException.rdf>; rel="http://www.w3.org/ns/ldp#constrainedBy"
Date: Mon, 17 Dec 2018 15:48:39 GMT
Error converting "fcr:versions" from String to a Name