Skip to content

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Jun 26, 2025

Summary

  • fix: Handle Content-Type application/xml (in remote in addition to text/xml)

Also:

  • fix: Handle if service doesn't resolve properly
  • fix: Return a 503 (rather than 200) if app is not enabled/installed [note: public.php should probably get this fix too]

Other than that, some general refactoring.

To ease review and for general comparison, compare to public.php.

Checklist

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>
@joshtrichards joshtrichards added this to the Nextcloud 32 milestone Jun 26, 2025
@joshtrichards joshtrichards requested a review from a team as a code owner June 26, 2025 17:28
@joshtrichards joshtrichards added bug 3. to review Waiting for reviews feature: dav ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Jun 26, 2025
Copy link
Collaborator

@kesselb kesselb left a 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
Copy link
Contributor

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?

Copy link
Member Author

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.

joshtrichards and others added 3 commits August 13, 2025 14:11
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>
@joshtrichards joshtrichards changed the title fix(DAV): Handle application/xml in remote properly fix(DAV): Clean-up remote + handle application/xml properly Aug 18, 2025
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>
This was referenced Aug 22, 2025
This was referenced Sep 2, 2025
This was referenced Sep 25, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: dav ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants