Currently we have some dynamic pages in AEM and content on the page is rendered on the basis last section of url - For example /a/b/id.html so using id in the url we render the whole content of the page.
where a and b in the url would be Seo friendly name of the product. If the seo friendly name are wrong we redirect the user to correct url. When i doing so I am getting warning "org.eclipse.jetty.http.HttpGenerator Ignoring extra content warning" because of this logs are getting filled very fast and is creating lot of problem.
For redirection of page to correct url I am simply doing response.sendRedirect(mappedRedirectPath);
On a high level I can understand why warning is coming may be because it is trying output/flush more content to output stream but I have added this redirection logic on top of <html> tag so no html should be rendering?
Any way to fix this warning?
I have looked in jetty code this warning is coming from line 173, which is inside add content method not sure why it is trying to add more content
Looks like it is product bug able to reproduce this on geometrixx page also.
I just added a redirect property on one the geometrixx page and opened it in preview mode and i can see the warning coming
If you think this is a bug - please open a day care ticket.
This is no community article or any docs we can point you to that will talk about this. Therefore opening a ticket is the best way to proceed.