we have a problem with some image paths rendered in the markup which points to a specific image rendition, i.e the "jcr:content" node is a part of the path. For some of the image paths, "jcr:content" is not getting replaced by "_jcr_content" causing the dispatcher to reply with 403 responses for theses images since ':' is a reserved character. We also see different behaviour in different environments (test vs prod).
Anybody who has an idea why this happens for some images?
nevermind our question, the reason for the behaviour was occurences of single quotes at attributes in our markup holding JSON strings that broke the markup. And, apparently, also the path rewrite functionality in Sling