https://issues.apache.org/bugzilla/show_bug.cgi?id=56405

            Bug ID: 56405
           Summary: Directory listings are broken in 8.0.x
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: knst.koli...@gmail.com

It is issue in the current 8.0.x trunk  apparently introduced by r1582440
I think it does not affect 8.0.5 (r1580930)

Steps to reproduce:
1. Configure DefaultServlet with init-param listings equal to true.
2. Go to a directory in Tomcat.  Expected: listing of a directory, actual:
blank screen (zero-length response).

The following code on lines 919-920:
                    if (resource.isDirectory()) {
                        renderResult = render(getPathPrefix(request),
resource);
                    } else {

The 'renderResult' is an InputStream which have to be copy()'ed to output, but
copying never happens.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to