webdav: support filesystem-backed dead properties#252
Conversation
Introduce FileSystemProps so a FileSystem can provide dead property holders directly without forcing prop handling through OpenFile. The lookup now prefers filesystem-level props, falls back to file-level DeadPropsHolder when the filesystem does not provide one, and reuses the same helper path for PROPFIND, PROPPATCH, and property copying during COPY/MOVE. The tests cover the intended behavior in two layers: prop handling exercises add/get-all/delete operations against filesystem-provided props while confirming file-backed dead props stay hidden and unmodified, and copy behavior verifies both filesystem-backed property copying and fallback to file-backed dead properties when no filesystem props are available.
|
This PR (HEAD: e32e04b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/net/+/796460. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/796460. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/796460. |
|
fix: golang/go#80232 |
|
Message from Dmitri Shuralyov: Patch Set 1: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/796460. |
Introduce FileSystemProps so a FileSystem can provide dead
property holders directly without forcing prop handling through
OpenFile. The lookup now prefers filesystem-level props, falls
back to file-level DeadPropsHolder when the filesystem does not
provide one, and reuses the same helper path for PROPFIND,
PROPPATCH, and property copying during COPY/MOVE.
The tests cover the intended behavior in two layers: prop
handling exercises add/get-all/delete operations against
filesystem-provided props while confirming file-backed dead
props stay hidden and unmodified, and copy behavior verifies
both filesystem-backed property copying and fallback to
file-backed dead properties when no filesystem props are
available.
Fixes golang/go#80232.