sorry the formatting, I'm struggling sending mails in text/plain atm ;-)
Hi,
I update data via PostSevlet and replace the markup fragment with the
changes.
Therefore I send ':redirect=/content/new.html' with the post.
However, I have content paths with spaces, legacy reasons...
Either I have a ' ' in there -> URISyntaxException: Illegal character
in path at index ...
SlingPostServlet.getRedirectUrl(SlingPostServlet.java:449)
[org.apache.sling.servlets.post:3.0.0]
Or I encode it as %20, but then I'm getting %20 encoded again as %2520
in location header:
curl -i -Ftitle="my redirect" -F:redirect="/content/new/my%20space.json"
http://admin:admin@localhost:8080/new/content/my%20space
<https://deref-gmx.net/mail/client/xw2ssnB_Puc/dereferrer/?redirectUrl=http%3A%2F%2Fadmin%3Aadmin%40localhost%3A8080%2Fnew%2Fcontent%2Fmy%2520space>
Location: http://localhost:8080/new/my%2520space.json
<https://deref-gmx.net/mail/client/eXyUR_vZ1oA/dereferrer/?redirectUrl=http%3A%2F%2Flocalhost%3A8080%2Fnew%2Fmy%252520space.json>
--> "Error 400 Ambiguous URI path encoding"
Am I missing something?
--
Dirk