This happens since jersey upgrade to 1.11
https://github.com/nuxeo/nuxeo/commit/7f92a82ce2e538da692240a9b4f395f63ed968f8#commitcomment-940212
Step to reproduce:
1. create a folder with a name "foo bar"
http://localhost:8080/nuxeo/site/admin/repository/default-domain/workspaces/@views/create
2. create a sub folder
-> you got a 500 page
The path is not properly encoded and raise
ERROR [com.sun.jersey.spi.container.ContainerResponse] Mapped exception to response: 500 (Internal Server Error) org.nuxeo.ecm.webengine.WebException at org.nuxeo.ecm.webengine.WebException.wrap(WebException.java:180) at org.nuxeo.ecm.webengine.WebException.wrap(WebException.java:161) at org.nuxeo.ecm.webengine.model.impl.AbstractResource.redirect(AbstractResource.java:120) at org.nuxeo.ecm.core.rest.DocumentObject.doPost(DocumentObject.java:133) at sun.reflect.GeneratedMethodAccessor1185.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ... Caused by: java.net.URISyntaxException: Illegal character in path at index 84: http://localhost:8080/nuxeo/site/admin/repository/default-domain/workspaces/FLNXTEST Webengine works/zoo at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parseHierarchical(URI.java:3066) at java.net.URI$Parser.parse(URI.java:3014) at java.net.URI.<init>(URI.java:578) at org.nuxeo.ecm.webengine.model.impl.AbstractResource.redirect(AbstractResource.java:118)