Skip to content

Conversation

@bmajik
Copy link
Contributor

@bmajik bmajik commented Aug 21, 2025

Summary

In Nextcloud/calendar/7234, users observe that downloading public ICS feeds from some Office365 tenants started returning HTTP 500. In further testing, it was observed that Microsoft is now parsing the HTTP UserAgent request header and looking for certain values. The NextCloud WebDAV module was sending a reasonable UserAgent string, but not one that some Microsoft O365 tenants would accept.

TODO

  • I don't have an NC build/test environment setup yet. And I am not a php Developer. So this code might be embarassingly broken :)

Checklist

Signed-off-by: Matt Evans <matt@mattevans.org>
in testing:
NC version not needed
"Linux" not needed in comment
- "Android" needed within comment
- a version number after Android is needed


Signed-off-by: Matt Evans <matt@mattevans.org>
@tcitworld tcitworld added 2. developing Work in progress feature: caldav Related to CalDAV internals labels Aug 21, 2025
Signed-off-by: Matt Evans <matt@mattevans.org>
Copy link
Member

@st3iny st3iny 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 very much for the contribution!

Is kind of hacky but I see the problem. Looks good otherwise.

Did not test yet, though.

@st3iny st3iny added the bug label Aug 21, 2025
@st3iny
Copy link
Member

st3iny commented Aug 21, 2025

You don't have to implement my feedback. We have to import the pull request anyway to make the CI run.

Signed-off-by: Matt Evans <matt@mattevans.org>
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to test but at least for my personal Outlook, no user agent string was blocked.

So, I trust that you tested the provided string with a restrictive tenant.

st3iny added 2 commits August 22, 2025 09:10
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
@st3iny
Copy link
Member

st3iny commented Aug 22, 2025

Continued here #54575

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress bug feature: caldav Related to CalDAV internals feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't url import Office365 ics calendar

4 participants