I have an angularjs template which looks similar to this:
<img ng:src="/resources/{{id}}/thumbnail" />
However this results in an $interpolate:noconcat error. In contrast to that this template:
<img ng:src="{{fullUrl}}" />
or even:
<img ng:src="{{id|createThumbnailURL}}" />
(where createThumbnailURL is a simple filter which does the same concatination as above) work totally fine.
The documentation says:
Concatenating expressions makes it hard to reason about whether some combination of concatenated values are unsafe to use and could easily lead to XSS.
Well yes, a static URL is always easier to assess than a concatenated one, I see the point there. However it does not sound uncommon to me to have REST-APIs that have URLs that can be constructed by simple concatenation and that concatenation has to be done somehwere. I can do it in the controller or even server-side, but how does that improve anything to move the concatenation elsewhere? And what is the recommended way to deal with the problem?
UPDATE
Here is demo for the error: http://cipher-code.de/tmp/angular3/index.xhtml
Maybe it has to do with the page being XML.