You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/07/24 21:31:45 UTC
[Bug 55304] New: [PATCH] mod_dav should not validate parent when
handling COPY
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Bug ID: 55304
Summary: [PATCH] mod_dav should not validate parent when
handling COPY
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: mod_dav
Assignee: bugs@httpd.apache.org
Reporter: ben@reser.org
Created attachment 30623
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30623&action=edit
Only validate the parent in the case of MOVE and not COPY.
The fix that was applied for PR54610 changed mod_dav to run the
dav_validate_request() function on COPY requests as well as MOVE requests.
This was done by effectively just removing the if block around the existing
MOVE case.
The URI of the COPY and MOVE requests is the source of the node to be copied or
moved. So DAV_VALIDATE_PARENT ends up asking the DAV provider module for the
parent resource. As the comment above this call mentions this makes sense for
a MOVE since the parent of the node being moved is modified by the move.
However, in the case of a COPY it is not.
If the source happens to be the root of the DAV repository, then there will be
no parent to provide. This isn't a problem for MOVE because there's no logical
way to handle moving the root, however a COPY of the root is allowed. A
properly implemented DAV provider will return NULL for the parent resource and
as a result the COPY from the root will fail incorrectly.
This issue causes the Subversion test suite to fail prior to Subversion 1.7.11
and 1.8.1 when we put a fix in for a bug in our code get_parent_resource() code
that was asserting when run against the root. We still have another bug where
for some resources we are not returning NULL like we should be (as mentioned
above) when asked for the parent of the root. Without this issue being fixed
we can't fix our bug.
So an easy way to reproduce this issue would be simply to run the SVN test
suite with a checkout from the Subversion repo before r1503528 (when the issue
was fixed on trunk). You'll see authz_tests.py 17 fail and some tests later
on.
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Wim Lewis <wi...@omnigroup.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wiml@omnigroup.com
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Mark Phippard <ma...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markphip@gmail.com
--- Comment #4 from Mark Phippard <ma...@gmail.com> ---
Does anyone, perhaps Joe?, happen to know if the mod_dav change that created
this regression was back ported to Red Hat's Apache distribution? IOW, is Red
Hat's current Apache module in need of this fix?
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Ben Reser <be...@reser.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #30623|0 |1
is obsolete| |
--- Comment #1 from Ben Reser <be...@reser.org> ---
Created attachment 30625
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30625&action=edit
Only validate the parent in the case of MOVE and not COPY.
Updated the patch to use DAV_VALIDATE_RESOURCE flag when it's a COPY. This
doesn't actually change any behavior since dav_validate_request() never looks
at that flag, but all the other callers use it, so this case should use it in
case the implementation changes.
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
--- Comment #5 from Joe Orton <jo...@redhat.com> ---
Mark, we don't backport regressions ;) More seriously - Red Hat has many
distributions of httpd so it depends what you mean, perhaps better to take the
q off-line.
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Ben Reser <be...@reser.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Patrick van Staveren <pv...@mintel.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pvanstaveren@mintel.com
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Ian Girouard <ig...@aquadata.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |igirouard@aquadata.com
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
Greg Stein <gs...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Greg Stein <gs...@gmail.com> ---
Fixed in r1506714.
--
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
[Bug 55304] [PATCH] mod_dav should not validate parent when handling
COPY
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55304
--- Comment #3 from Joe Orton <jo...@redhat.com> ---
Merged for 2.2.x: http://svn.apache.org/r1515569
--
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