-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider need for MOVE verb #137
Comments
... and/or COPY (as we might want to use that to publish things in the |
As mentioned elsewhere, additional HTTP verbs are relatively hard to configure in practice, so support for MOVE should be optional IMO and clients should be required to fall back to DELETE + UPLOAD. |
hard to configure? Whether or not MOVE is important is really about what RS is about. If you see it as a JS storage for (private) app data MOVE Is not needed. If you see it as more than that and also as something where you store your RAW phone pictures, MOVE is a MUST. Whether or not you call it PATCH or MOVE or POST doesn't really matter :) I think we should first reach an agreement on what RS is about and then from that it follows if we should add it or not, details on how are for later :) |
Sorry I was wrong in a way: By default, nginx doesn't allow PUT as well, see http://nginx.org/en/docs/http/ngx_http_dav_module.html, so it doesn't matter whether we introduce MOVE as an additional verb. Still the argument remains on whether MOVE is so essential that every server MUST support it. Perhaps we should go with "SHOULD support" for the server, and "MUST NOT rely on" for the client. |
In practice web servers are only run in front of RS app servers, though. At least at the moment. We plan to build an RS server as a Lua module for Nginx, but it goes without saying that adding a correct Nginx config is the least of your deployment woes with that. ;) I think if we have good enough example configs for web servers, it shouldn't be much of a problem. People have to deal with TLS and that's more of a pain than adding MOVE or COPY I think. |
Here's what I was getting at: http://programmers.stackexchange.com/a/193826 Anecdotally, php's builtin server is very presumptuous about methods it doesn't recognize. This particular bug is fixed, but the parser itself is written in a way such that it doesn't recognize arbitrary methods. I consider this point to be less important nowadays though, I think using methods that are already used by WebDAV will work fine. |
It would also be possible to define a PUT alternative, as for example OpenStack's Swift object storage does: |
This is an issue that came up on https://www.ietf.org/mailman/listinfo/storagesync (2015-12-02 message from ietf at hugo dot labkode dot com):
The text was updated successfully, but these errors were encountered: