rascal
rascal copied to clipboard
Fixing issue 916 on URI path interpolation
- removes deprecated calls and fixes modules names in tests
- fixes #916
- added tests for #916
This one was open since 2015, but now more and more people get confused by it. It's probably because of the increased usage of clair which has path interpolation in its source code. Seems like a good time as any to fix it. At least we have some tests for it now.
The current solution is broken. Another test for toLocation shows that the current way of interpolating path strings also introduces an extra / even if the interpolation is in the authority part of a URI.
- [ ] Have to figure out a way to see if we are already in the path part somehow during the interpolation process.
- [ ] Have to make sure we encode differently in the authority part then in the path part.