Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348935

Summary: The DefaultServlet doesn't close <A> tags in directory listings
Product: [RT] Jetty Reporter: aditsu <aditsu>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: unspecified   
Target Milestone: 7.2.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description aditsu CLA 2011-06-09 13:42:44 EDT
Build Identifier: 

When listing the contents of a directory, every item is added like this:

<TD><A HREF="foo/bar">bar&nbsp;</TD>

Note the absence of a "</A>".
The code where this is done seems to be Resource.getListHTML. There is only one </A>, for the parent directory.
This problem appears in both jetty 6.1.26 and 7.4.2. The result is that it breaks some programs that parse the directory listing.

Reproducible: Always
Comment 1 Greg Wilkins CLA 2011-06-22 01:52:55 EDT
r3412