httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
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: bugs@httpd.apache.org
        ReportedBy: eboregelna@gmail.com
    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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message