-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Do not allow OPTIONS request against / from Windows Explorer #2986
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
Conversation
|
@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke, @bartv2 and @icewind1991 to be potential reviewers. |
User agents used by windows webdav client:windows 7 - webclient is not running windows 8.1 - webclient is not running windows 10 - webclient is not running Because we need to get the WebClient running, it's only needed to check for agend "DavClnt". |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
cf48e44 to
e26533d
Compare
Done :) |
|
Changes tested on NC 10.0.1 👍 |
Current coverage is 54.13% (diff: 0.00%)@@ master #2986 diff @@
==========================================
Files 1304 1304
Lines 80561 80597 +36
Methods 7961 7965 +4
Messages 0 0
Branches 1245 1245
==========================================
+ Hits 43598 43628 +30
- Misses 36963 36969 +6
Partials 0 0
|
|
This code is violating the HTTP Code specifications. You're returning 200 on an empty result, that is discouraged in favor of using code 204. Anyways, I propose to use a redirect in htaccess as dav is an app and no app code should be included in the base installation. In htaccess also other webdav stuff is handled. See #3370 |
|
You are right. And it's also a major hack. Let's go for the cleaner redirect. |
cc @michag86