News for hackers. Stuff that matters.
Re:Webfs: A Filesystem Built on Top of the Web by Eikon on Saturday January 04, 2020 @08:39PM (#21959004)
The rfc is super dumb though. For instance, when handling a PROPFIND request (more or less listing files / folders), it’s not mandatory for the server to honor the Depth header (how many levels are returned). There is also no mechanism for the server to advertise whether or not it’s honoring the Depth header. That means the Depth header is useless because the client has no way to know whether there was only one hierarchy depth or if the server did not honor the Depth header. Therefore, your only option is to always scan the full hierarchy using PROPFIND at each level.

The RFC is full of that kind of crazy gotchas, not to mention the overuse of “MAY” or “SHOULD” which will drive you crazy if you try to implement a client / server.

If you want to go further in insanity, just look at how crazily over engineered the locking mechanism is. I have no words for it.

https://tools.ietf.org/html/rfc4918#section-6

Unfortunately, even if you think you implemented the whole rfc correctly, your implementation will work with almost nothing as not that much implementations are any good in the wild. A useful WebDAV implementation must be full of vendor-specific workarounds.

Re:Webfs: A Filesystem Built on Top of the Web by tootie on Saturday January 04, 2020 @09:28PM (#21959223)
There was an even worse protocol back then called CMIS. It was an attempt to define a standard API for content management which turned into this absolute enterprise monstrosity that would make SOAP blush. It was also impossible to implement.

It's interesting looking back but I think developing a standard has a higher chance of success coming from some dude's GitHub than it does with $1T of market cap behind it.

Re:Webfs: A Filesystem Built on Top of the Web by jpalomaki on Sunday January 05, 2020 @12:34AM (#21959851)
Limitations on depth makes sense, because the actual storage implementation can make recursive retrievals very costly. A folder could be an abstraction for a remote resource.

Of course it would still make sense for server to tell client about this (there are files/no files/I don’t know).

Re:Webfs: A Filesystem Built on Top of the Web by paulddraper on Sunday January 05, 2020 @10:50AM (#21961764)
Agreed. The spec is overcomplicated and half broken.