Affects Version/s: 3.0.0, 3.1.0, 2.5.13
Fix Version/s: None
Component/s: Online Editor & Rich Text field type
1) Render richtext field in pagelayout (for example, in footer).
2) Put embed image in the richtext field.
3) Open valid URL to verify anonymous has access to the image.
3) Open some 404 URL
500 error returned after max nested level reached
404 Page properly displayed
It's because there is no firewall for 404 page, and there is no token in token storage service.
So, it threw "AuthenticationCredentialsNotFoundException".
Subrequest tries to render an error page, which extends pagelayout, which tries to render the same richtext field, and it leads to an infinitive loop.
PR: coming soon