Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348935 - The DefaultServlet doesn't close <A> tags in directory listings
Summary: The DefaultServlet doesn't close <A> tags in directory listings
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.2.x   Edit
Assignee: Greg Wilkins CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 13:42 EDT by aditsu CLA
Modified: 2011-06-22 01:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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