I am pulling part images from ImageSvc over the REST API from a custom Javascript page I made. This has worked well but today I noticed that images with the ampersand (&) character in the name do not load. Investigating via the Swagger tools shows that I am getting this error:
A potentially dangerous Request.Path value was detected from the client (&)
I believe I am following correct percent encoding such that image name “ABC&XYZ” looks like “ABC%26XYZ” and the whole url looks like:
I believe this moves the ampersand from the request path to the query string where its subject to different validation. Oddly, this seems the opposite of what is suggested in the article you linked? Edit: I misinterpreted the article
This this should satisfy my requirements! Thanks again!
it’s worth mentioning that simply keeping the values as a part of the Query String (remember WAY back at the beginning of this post?) is easier, cleaner, more flexible, and more secure.