Hello nmvc@google.com (cc: bradfitz@golang.org, dave@cheney.net, dr.volker.dobler@gmail.com, golang-codereviews@googlegroups.com), I'd like you to review this change to ...
10 years, 4 months ago
(2014-11-07 07:13:30 UTC)
#1
https://codereview.appspot.com/169240043/diff/80001/webdav/webdav.go File webdav/webdav.go (right): https://codereview.appspot.com/169240043/diff/80001/webdav/webdav.go#newcode38 webdav/webdav.go:38: } else if h.LockSystem == nil { On 2014/11/09 ...
10 years, 4 months ago
(2014-11-09 22:47:18 UTC)
#4
https://codereview.appspot.com/169240043/diff/80001/webdav/webdav.go
File webdav/webdav.go (right):
https://codereview.appspot.com/169240043/diff/80001/webdav/webdav.go#newcode38
webdav/webdav.go:38: } else if h.LockSystem == nil {
On 2014/11/09 22:29:13, dfc wrote:
> There are some webdav operations that don't require locking, ie, all the Level
1
> operations don't require locking.
you're correct- however trials with OSX/Win suggested to me that their inbuilt
clients are not resilient against lack of lock support. as-such I think it makes
sense to make this an error to avoid people running into it by accident.
that said, I guess an alternative is the appropriate spec response for lack of
method support.
Sounds reasonable. In all the toy implementations I've written I've never gone very fast past ...
10 years, 4 months ago
(2014-11-09 23:02:41 UTC)
#5
Sounds reasonable. In all the toy implementations I've written I've
never gone very fast past level 1 support, and just fudged the
locking. You've done the hard yards to parse all the lock conditions
so you may as well use it.
On Mon, Nov 10, 2014 at 9:47 AM, <nmvc@google.com> wrote:
>
> https://codereview.appspot.com/169240043/diff/80001/webdav/webdav.go
> File webdav/webdav.go (right):
>
>
https://codereview.appspot.com/169240043/diff/80001/webdav/webdav.go#newcode38
> webdav/webdav.go:38: } else if h.LockSystem == nil {
> On 2014/11/09 22:29:13, dfc wrote:
>>
>> There are some webdav operations that don't require locking, ie, all
>
> the Level 1
>>
>> operations don't require locking.
>
>
> you're correct- however trials with OSX/Win suggested to me that their
> inbuilt clients are not resilient against lack of lock support. as-such
> I think it makes sense to make this an error to avoid people running
> into it by accident.
>
> that said, I guess an alternative is the appropriate spec response for
> lack of method support.
>
> https://codereview.appspot.com/169240043/
10 years, 4 months ago
(2014-11-10 05:49:26 UTC)
#7
> https://codereview.appspot.com/169240043/diff/80001/webdav/file.go#newcode14
> webdav/file.go:14: Mkdir(path string, perm os.FileMode) error
> On 2014/11/09 22:29:13, dfc wrote:
>>
>> What about calling this MkdirAll for symmetry with RemoveAll below.
That is true, DELETE behaves like RemoveAll, but MKCOL doesn't create
intermediary collections. That is both bizarre, and something we just
have to live with
> Eh, a zero struct seems fine to me.
Fair enough.
Issue 169240043: code review 169240043: go.net/webdav: new Handler, FileSystem, LockSystem and ...
(Closed)
Created 10 years, 4 months ago by nigeltao
Modified 10 years, 4 months ago
Reviewers:
Base URL:
Comments: 19