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

             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
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    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.
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3)

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to