httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51491] New: mod_dir breaks POSTs to URLs not ending in /
Date Fri, 08 Jul 2011 19:58:35 GMT

             Bug #: 51491
           Summary: mod_dir breaks POSTs to URLs not ending in /
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_dir
    Classification: Unclassified

The HTTP spec *requires* a user agent to use GET or HEAD in a redirected
request if it is not using user interaction to confirm otherwise.

A redirect of a POST not ending in a / is therefore likely to corrupt the
intent of the request, or at the very best result in an ungainly request for
user interaction.

Therefore I believe mod_dir should be configured by default *NOT* to redirect
POST requests.

This is encountered quite often and without reasonable workarounds IMO when
using a framework such as Sling where POST requests to a directory with a
trailing / mean something usefully different from a request without a trailing

Yes it can be made to work by explictly disabling or configuring DirectorySlash
off for the relevant URLs. But other uses of the same URL prefix may benefit
from DirectorySlash. And configuration of Apache shouldn't be needed to avoid a
behavior that is more often than not disruptive.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message