-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(DAV): Clean-up remote + handle application/xml properly #53703
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
base: master
Are you sure you want to change the base?
Conversation
Also: - fix: Handle if service doesn't resolve properly - fix: Return a 503 (rather than 200) if app is not enabled/installed Other than that, some general refactoring. To ease review and for general comparison, compare to `public.php`. Signed-off-by: Josh <josh.t.richards@gmail.com>
kesselb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
remote.php
Outdated
| // All resources served via the DAV endpoint should have the strictest possible | ||
| // policy. Exempted from this is the SabreDAV browser plugin which overwrites | ||
| // this policy with a softer one if debug mode is enabled. | ||
| // NOTE: This breaks HTML styling/templates currently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a ticket for this with some context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only applicable to some oddball failure scenarios if the templates happened to be used; it's not all that relevant to this particular endpoint (since it's not intended to be used interactively from a browser). But something I noticed while looking at other error handling stuff.
Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Josh <josh.t.richards@gmail.com>
Whatever is settled on here will likely get ported to /public.php as well. Signed-off-by: Josh <josh.t.richards@gmail.com>
Endpoints are all hardcoded since 7bdde98 and were formally deprecated within info.xml in nextcloud/appstore#156. Follow-up PR will clean-up references elsewhere. Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Summary
Content-Typeapplication/xml(in remote in addition totext/xml)Also:
Other than that, some general refactoring.
To ease review and for general comparison, compare to
public.php.Checklist