Expand my Community achievements bar.

org.eclipse.jetty.http.HttpGenerator Ignoring extra content warning

Avatar

Level 4

Hi All,

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

http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-http/8.1.0.v20120127/org/ecl...

Thanks,

Shehjad

3 Replies

Avatar

Level 4

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

Avatar

Level 10

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. 

Avatar

Level 4

Sure Scott, I have opened a day care ticket for this.

Thank you