Skip to content

chore!: remove WebDav integration - #40856

Merged
ggazzo merged 7 commits into
release-9.0.0from
webdav-integration-removal
Jul 20, 2026
Merged

chore!: remove WebDav integration#40856
ggazzo merged 7 commits into
release-9.0.0from
webdav-integration-removal

Conversation

@yasnagat

@yasnagat yasnagat commented Jun 9, 2026

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

This PR removes the WebDAV integration from the codebase.
WebDAV has been officially deprecated in Rocket.Chat and is already scheduled to be removed in upcoming versions, as announced in our documentation. Additionally, the integration relied on third-party libraries that have had recurring security vulnerabilities (CVEs), making its removal also a security improvement.
WebDAV support is no longer available after this change.

Changes implemented:

  • Removed WebDAV-related features and code paths from the application.
  • Excluded WebDAV files from the codebase.
  • Updated existing files to remove WebDAV-specific logic and dependencies.
  • Added a database migration to remove WebDAV configuration/settings from existing databases.
  • Added upgrade validation checks to detect workspaces that still have WebDAV configured before allowing the upgrade process to continue.

Issue(s)

VLN-345

Steps to test or reproduce

Further comments

Summary by CodeRabbit

  • Breaking Changes

    • Removed WebDAV integration end-to-end: account management UI, WebDAV file picker, and WebDAV message/composer actions are no longer available.
    • WebDAV is removed from file storage selection; WebDAV-related settings are cleared during upgrade when applicable.
    • Upgrades are blocked if the server is configured to use WebDAV storage—follow the migration guidance before upgrading.
  • Chores

    • Removed WebDAV API coverage and related implementation across server and client.

@dionisio-bot

dionisio-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot

changeset-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 08a442e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@rocket.chat/meteor Major
@rocket.chat/core-typings Major
@rocket.chat/rest-typings Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0992a34c-4ec7-45e0-9866-a18277ca48b6

📥 Commits

Reviewing files that changed from the base of the PR and between 077a802 and 08a442e.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (64)
  • .changeset/remove-webdav-integration.md
  • apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx
  • apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx
  • apps/meteor/client/hooks/webdav/useWebDAVAccountIntegrationsQuery.ts
  • apps/meteor/client/lib/getWebdavServerName.ts
  • apps/meteor/client/views/account/integrations/AccountIntegrationsPage.tsx
  • apps/meteor/client/views/account/integrations/AccountIntegrationsRoute.tsx
  • apps/meteor/client/views/account/integrations/hooks/useRemoveWebDAVAccountIntegrationMutation.ts
  • apps/meteor/client/views/account/routes.tsx
  • apps/meteor/client/views/account/sidebarItems.tsx
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/hooks/useWebdavActions.tsx
  • apps/meteor/client/views/room/webdav/AddWebdavAccountModal.tsx
  • apps/meteor/client/views/room/webdav/SaveToWebdavModal.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/FilePickerBreadcrumbs.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGrid.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGridItem.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/index.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerModal.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerTable.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/index.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeFileSize.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.spec.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/sortWebdavNodes.ts
  • apps/meteor/jest.config.ts
  • apps/meteor/package.json
  • apps/meteor/server/api/index.ts
  • apps/meteor/server/api/lib/webdav.ts
  • apps/meteor/server/api/v1/webdav.ts
  • apps/meteor/server/bridges/nextcloud/addWebdavServer.ts
  • apps/meteor/server/bridges/nextcloud/index.ts
  • apps/meteor/server/bridges/webdav/README.md
  • apps/meteor/server/bridges/webdav/index.ts
  • apps/meteor/server/bridges/webdav/lib/getWebdavCredentials.ts
  • apps/meteor/server/bridges/webdav/lib/uploadFileToWebdav.ts
  • apps/meteor/server/bridges/webdav/lib/webdavClientAdapter.ts
  • apps/meteor/server/bridges/webdav/methods/addWebdavAccount.ts
  • apps/meteor/server/bridges/webdav/methods/getFileFromWebdav.ts
  • apps/meteor/server/bridges/webdav/methods/getWebdavFileList.ts
  • apps/meteor/server/bridges/webdav/methods/getWebdavFilePreview.ts
  • apps/meteor/server/bridges/webdav/methods/uploadFileToWebdav.ts
  • apps/meteor/server/importPackages.ts
  • apps/meteor/server/lib/media/file-upload/config/Webdav.ts
  • apps/meteor/server/lib/media/file-upload/config/_configUploadStorage.ts
  • apps/meteor/server/lib/media/file-upload/ufs/Webdav/server.ts
  • apps/meteor/server/models.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • apps/meteor/server/settings/definitions.ts
  • apps/meteor/server/settings/file-upload.ts
  • apps/meteor/server/settings/webdav.ts
  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/server/startup/migrations/v336.ts
  • apps/meteor/tests/end-to-end/api/webdav.ts
  • packages/core-services/src/events/Events.ts
  • packages/core-typings/src/IUpload.ts
  • packages/core-typings/src/IWebdavAccount.ts
  • packages/core-typings/src/index.ts
  • packages/ddp-client/src/types/streams.ts
  • packages/model-typings/src/index.ts
  • packages/model-typings/src/models/IWebdavAccountsModel.ts
  • packages/models/src/index.ts
  • packages/models/src/modelClasses.ts
  • packages/models/src/models/WebdavAccounts.ts
💤 Files with no reviewable changes (60)
  • apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx
  • apps/meteor/server/bridges/nextcloud/index.ts
  • apps/meteor/server/bridges/webdav/README.md
  • apps/meteor/server/bridges/webdav/lib/uploadFileToWebdav.ts
  • apps/meteor/client/views/account/integrations/hooks/useRemoveWebDAVAccountIntegrationMutation.ts
  • apps/meteor/server/api/v1/webdav.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.spec.ts
  • apps/meteor/server/settings/webdav.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeFileSize.ts
  • apps/meteor/server/lib/media/file-upload/config/Webdav.ts
  • apps/meteor/server/bridges/webdav/lib/getWebdavCredentials.ts
  • apps/meteor/server/api/lib/webdav.ts
  • apps/meteor/server/bridges/webdav/methods/getFileFromWebdav.ts
  • packages/core-typings/src/IWebdavAccount.ts
  • apps/meteor/server/lib/media/file-upload/config/_configUploadStorage.ts
  • apps/meteor/server/bridges/webdav/index.ts
  • apps/meteor/server/lib/media/file-upload/ufs/Webdav/server.ts
  • apps/meteor/client/hooks/webdav/useWebDAVAccountIntegrationsQuery.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • apps/meteor/server/bridges/nextcloud/addWebdavServer.ts
  • apps/meteor/client/views/room/webdav/SaveToWebdavModal.tsx
  • packages/core-typings/src/IUpload.ts
  • packages/model-typings/src/index.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/index.ts
  • apps/meteor/client/views/account/sidebarItems.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGridItem.tsx
  • apps/meteor/server/bridges/webdav/methods/uploadFileToWebdav.ts
  • apps/meteor/server/bridges/webdav/lib/webdavClientAdapter.ts
  • apps/meteor/server/api/index.ts
  • apps/meteor/server/importPackages.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/sortWebdavNodes.ts
  • packages/model-typings/src/models/IWebdavAccountsModel.ts
  • apps/meteor/client/views/account/routes.tsx
  • apps/meteor/server/bridges/webdav/methods/getWebdavFilePreview.ts
  • apps/meteor/server/bridges/webdav/methods/addWebdavAccount.ts
  • apps/meteor/package.json
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/index.ts
  • apps/meteor/client/views/room/webdav/AddWebdavAccountModal.tsx
  • packages/models/src/models/WebdavAccounts.ts
  • apps/meteor/client/lib/getWebdavServerName.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerModal.tsx
  • apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerTable.tsx
  • apps/meteor/client/views/account/integrations/AccountIntegrationsPage.tsx
  • packages/core-typings/src/index.ts
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx
  • apps/meteor/server/models.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGrid.tsx
  • apps/meteor/server/bridges/webdav/methods/getWebdavFileList.ts
  • apps/meteor/server/settings/definitions.ts
  • apps/meteor/client/views/account/integrations/AccountIntegrationsRoute.tsx
  • packages/core-services/src/events/Events.ts
  • packages/ddp-client/src/types/streams.ts
  • apps/meteor/tests/end-to-end/api/webdav.ts
  • packages/models/src/index.ts
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/hooks/useWebdavActions.tsx
  • apps/meteor/server/settings/file-upload.ts
  • packages/models/src/modelClasses.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/FilePickerBreadcrumbs.tsx
🚧 Files skipped from review as they are similar to previous changes (3)
  • .changeset/remove-webdav-integration.md
  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/jest.config.ts
📜 Recent review details
⏰ Context from checks skipped due to timeout. (4)
  • GitHub Check: 📦 Build Packages
  • GitHub Check: CodeQL-Build
  • GitHub Check: Hacktron Security Check
  • GitHub Check: CodeQL-Build
⚠️ CI failures not shown inline (3)

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • apps/meteor/server/startup/migrations/v336.ts
🧠 Learnings (3)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • apps/meteor/server/startup/migrations/v336.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • apps/meteor/server/startup/migrations/v336.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • apps/meteor/server/startup/migrations/v336.ts
🔇 Additional comments (1)
apps/meteor/server/startup/migrations/v336.ts (1)

1-47: LGTM!


Walkthrough

WebDAV support is removed from the client, server, shared typings, models, events, storage settings, and package dependencies. Account routes and file-picker features are deleted. Migration v336 blocks upgrades using WebDAV storage and removes obsolete settings.

Changes

WebDAV Integration Removal

Layer / File(s) Summary
Shared contracts and models
packages/core-typings/..., packages/core-services/..., packages/ddp-client/..., packages/model-typings/..., packages/models/...
WebDAV account types, model interfaces, model exports, upload storage fields, and event stream contracts are removed.
Server runtime and settings
apps/meteor/server/..., apps/meteor/package.json
WebDAV server initialization, model registration, notification handling, storage options, WebDAV settings, Nextcloud bridge setup, and the webdav dependency are removed.
Client actions and account UI
apps/meteor/client/components/message/..., apps/meteor/client/views/account/..., apps/meteor/client/views/room/...
WebDAV message/composer actions, account integrations routes, sidebar entry, modals, file picker, and related hooks are removed.
Upgrade migration
apps/meteor/server/startup/migrations/..., apps/meteor/jest.config.ts, .changeset/remove-webdav-integration.md
Migration v336 blocks upgrades configured for WebDAV storage or deletes WebDAV settings, and migration test discovery and release metadata are added.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested labels: type: chore

Suggested reviewers: tassoevan, sampaiodiego

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the PR’s main change: removing WebDAV integration.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • VLN-345: Request failed with status code 401

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.65%. Comparing base (02064cf) to head (08a442e).

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           release-9.0.0   #40856      +/-   ##
=================================================
+ Coverage          68.49%   68.65%   +0.15%     
=================================================
  Files               4089     4061      -28     
  Lines             157953   157400     -553     
  Branches           28595    28455     -140     
=================================================
- Hits              108193   108063     -130     
+ Misses             44741    44324     -417     
+ Partials            5019     5013       -6     
Flag Coverage Δ
e2e 59.60% <ø> (+0.39%) ⬆️
e2e-api 45.80% <20.00%> (+0.19%) ⬆️
unit 70.29% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yasnagat yasnagat added this to the 9.0.0 milestone Jun 9, 2026
@ggazzo
ggazzo changed the base branch from develop to release-9.0.0 June 12, 2026 02:00
@ggazzo
ggazzo force-pushed the webdav-integration-removal branch from d155f77 to 9613065 Compare June 12, 2026 02:23
@julio-rocketchat
julio-rocketchat marked this pull request as ready for review June 30, 2026 10:14
@julio-rocketchat
julio-rocketchat requested review from a team as code owners June 30, 2026 10:14

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/meteor/server/startup/migrations/v336.spec.ts`:
- Around line 70-73: The test in v336.spec.ts is using an invalid matcher for a
Promise<void> returned by up(), so replace the resolves.not.toThrow assertion
with a resolved-value matcher that checks for undefined. Update the expectation
in the “does not throw when storage type is AmazonS3” case to assert the promise
resolves successfully, using the up() call and its resolved value directly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0c30d238-18e7-42e8-8a9f-7d6d1ca90486

📥 Commits

Reviewing files that changed from the base of the PR and between 1a6aafa and e7843e0.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (64)
  • apps/meteor/app/api/server/index.ts
  • apps/meteor/app/api/server/lib/webdav.ts
  • apps/meteor/app/api/server/v1/webdav.ts
  • apps/meteor/app/file-upload/server/config/Webdav.ts
  • apps/meteor/app/file-upload/server/config/_configUploadStorage.ts
  • apps/meteor/app/file-upload/ufs/Webdav/server.ts
  • apps/meteor/app/nextcloud/server/addWebdavServer.ts
  • apps/meteor/app/nextcloud/server/index.ts
  • apps/meteor/app/webdav/README.md
  • apps/meteor/app/webdav/server/index.ts
  • apps/meteor/app/webdav/server/lib/getWebdavCredentials.ts
  • apps/meteor/app/webdav/server/lib/uploadFileToWebdav.ts
  • apps/meteor/app/webdav/server/lib/webdavClientAdapter.ts
  • apps/meteor/app/webdav/server/methods/addWebdavAccount.ts
  • apps/meteor/app/webdav/server/methods/getFileFromWebdav.ts
  • apps/meteor/app/webdav/server/methods/getWebdavFileList.ts
  • apps/meteor/app/webdav/server/methods/getWebdavFilePreview.ts
  • apps/meteor/app/webdav/server/methods/uploadFileToWebdav.ts
  • apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx
  • apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx
  • apps/meteor/client/hooks/webdav/useWebDAVAccountIntegrationsQuery.ts
  • apps/meteor/client/lib/getWebdavServerName.ts
  • apps/meteor/client/views/account/integrations/AccountIntegrationsPage.tsx
  • apps/meteor/client/views/account/integrations/AccountIntegrationsRoute.tsx
  • apps/meteor/client/views/account/integrations/hooks/useRemoveWebDAVAccountIntegrationMutation.ts
  • apps/meteor/client/views/account/routes.tsx
  • apps/meteor/client/views/account/sidebarItems.tsx
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/hooks/useWebdavActions.tsx
  • apps/meteor/client/views/room/webdav/AddWebdavAccountModal.tsx
  • apps/meteor/client/views/room/webdav/SaveToWebdavModal.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/FilePickerBreadcrumbs.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGrid.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGridItem.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/index.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerModal.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerTable.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/index.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeFileSize.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.spec.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/sortWebdavNodes.ts
  • apps/meteor/jest.config.ts
  • apps/meteor/package.json
  • apps/meteor/server/importPackages.ts
  • apps/meteor/server/models.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • apps/meteor/server/settings/file-upload.ts
  • apps/meteor/server/settings/index.ts
  • apps/meteor/server/settings/webdav.ts
  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/server/startup/migrations/v336.spec.ts
  • apps/meteor/server/startup/migrations/v336.ts
  • apps/meteor/tests/end-to-end/api/webdav.ts
  • packages/core-services/src/events/Events.ts
  • packages/core-typings/src/IUpload.ts
  • packages/core-typings/src/IWebdavAccount.ts
  • packages/core-typings/src/index.ts
  • packages/ddp-client/src/types/streams.ts
  • packages/model-typings/src/index.ts
  • packages/model-typings/src/models/IWebdavAccountsModel.ts
  • packages/models/src/index.ts
  • packages/models/src/modelClasses.ts
  • packages/models/src/models/WebdavAccounts.ts
💤 Files with no reviewable changes (60)
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeFileSize.ts
  • apps/meteor/client/views/account/integrations/AccountIntegrationsRoute.tsx
  • packages/models/src/models/WebdavAccounts.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGridItem.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.ts
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/hooks/useWebdavActions.tsx
  • apps/meteor/client/views/account/integrations/hooks/useRemoveWebDAVAccountIntegrationMutation.ts
  • apps/meteor/client/views/account/integrations/AccountIntegrationsPage.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/index.ts
  • apps/meteor/client/views/room/webdav/SaveToWebdavModal.tsx
  • apps/meteor/client/lib/getWebdavServerName.ts
  • packages/core-typings/src/index.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/index.ts
  • packages/model-typings/src/models/IWebdavAccountsModel.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/getNodeIconType.spec.ts
  • apps/meteor/server/importPackages.ts
  • apps/meteor/app/file-upload/server/config/Webdav.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerGrid/WebdavFilePickerGrid.tsx
  • apps/meteor/app/webdav/README.md
  • apps/meteor/app/api/server/index.ts
  • apps/meteor/app/nextcloud/server/index.ts
  • apps/meteor/server/settings/webdav.ts
  • packages/model-typings/src/index.ts
  • apps/meteor/app/webdav/server/methods/getWebdavFilePreview.ts
  • packages/core-typings/src/IUpload.ts
  • apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/lib/sortWebdavNodes.ts
  • apps/meteor/app/file-upload/ufs/Webdav/server.ts
  • apps/meteor/app/webdav/server/lib/webdavClientAdapter.ts
  • apps/meteor/app/webdav/server/methods/getFileFromWebdav.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/FilePickerBreadcrumbs.tsx
  • apps/meteor/app/webdav/server/index.ts
  • apps/meteor/tests/end-to-end/api/webdav.ts
  • apps/meteor/package.json
  • packages/core-typings/src/IWebdavAccount.ts
  • apps/meteor/app/webdav/server/methods/uploadFileToWebdav.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerTable.tsx
  • apps/meteor/app/webdav/server/lib/uploadFileToWebdav.ts
  • packages/core-services/src/events/Events.ts
  • apps/meteor/app/file-upload/server/config/_configUploadStorage.ts
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx
  • apps/meteor/app/webdav/server/methods/addWebdavAccount.ts
  • packages/models/src/modelClasses.ts
  • apps/meteor/app/api/server/lib/webdav.ts
  • apps/meteor/client/views/room/webdav/AddWebdavAccountModal.tsx
  • apps/meteor/app/webdav/server/methods/getWebdavFileList.ts
  • apps/meteor/app/api/server/v1/webdav.ts
  • apps/meteor/server/models.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx
  • apps/meteor/app/nextcloud/server/addWebdavServer.ts
  • apps/meteor/client/hooks/webdav/useWebDAVAccountIntegrationsQuery.ts
  • apps/meteor/client/views/account/routes.tsx
  • packages/ddp-client/src/types/streams.ts
  • apps/meteor/client/views/room/webdav/WebdavFilePickerModal/WebdavFilePickerModal.tsx
  • apps/meteor/app/webdav/server/lib/getWebdavCredentials.ts
  • packages/models/src/index.ts
  • apps/meteor/client/views/account/sidebarItems.tsx
  • apps/meteor/server/settings/file-upload.ts
  • apps/meteor/server/settings/index.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Hacktron Security Check
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/jest.config.ts
  • apps/meteor/server/startup/migrations/v336.spec.ts
  • apps/meteor/server/startup/migrations/v336.ts
**/*.spec.ts

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.spec.ts: Use descriptive test names that clearly communicate expected behavior in Playwright tests
Use .spec.ts extension for test files (e.g., login.spec.ts)

Files:

  • apps/meteor/server/startup/migrations/v336.spec.ts
🧠 Learnings (5)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/jest.config.ts
  • apps/meteor/server/startup/migrations/v336.spec.ts
  • apps/meteor/server/startup/migrations/v336.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/jest.config.ts
  • apps/meteor/server/startup/migrations/v336.spec.ts
  • apps/meteor/server/startup/migrations/v336.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • apps/meteor/server/startup/migrations/index.ts
  • apps/meteor/jest.config.ts
  • apps/meteor/server/startup/migrations/v336.spec.ts
  • apps/meteor/server/startup/migrations/v336.ts
📚 Learning: 2026-02-24T19:22:48.358Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 38493
File: apps/meteor/tests/e2e/omnichannel/omnichannel-send-pdf-transcript.spec.ts:66-67
Timestamp: 2026-02-24T19:22:48.358Z
Learning: In Playwright end-to-end tests (e.g., under apps/meteor/tests/e2e/...), prefer locating elements by translated text (getByText) and ARIA roles (getByRole) over data-qa attributes. If translation values change, update the corresponding test locators accordingly. Never use data-qa locators. This guideline applies to all Playwright e2e test specs in the repository and helps keep tests robust to UI text changes and accessible semantics.

Applied to files:

  • apps/meteor/server/startup/migrations/v336.spec.ts
📚 Learning: 2026-03-06T18:10:15.268Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 39397
File: packages/gazzodown/src/code/CodeBlock.spec.tsx:47-68
Timestamp: 2026-03-06T18:10:15.268Z
Learning: In tests (especially those using testing-library/dom/jsdom) for Rocket.Chat components, the HTML <code> element has an implicit ARIA role of 'code'. Therefore, screen.getByRole('code') or screen.findByRole('code') will locate <code> elements even without a role attribute. Do not flag findByRole('code') as invalid in reviews; prefer using the implicit role instead of adding role="code" unless necessary for accessibility.

Applied to files:

  • apps/meteor/server/startup/migrations/v336.spec.ts
🔇 Additional comments (4)
apps/meteor/server/startup/migrations/v336.ts (1)

1-47: LGTM!

apps/meteor/server/startup/migrations/index.ts (1)

44-44: LGTM!

apps/meteor/server/startup/migrations/v336.spec.ts (1)

1-68: LGTM!

apps/meteor/jest.config.ts (1)

48-48: LGTM!

Comment thread apps/meteor/server/startup/migrations/v336.spec.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found across 65 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread apps/meteor/server/startup/migrations/v336.spec.ts Outdated
Comment thread apps/meteor/server/startup/migrations/v336.spec.ts Outdated
@dougfabris

Copy link
Copy Markdown
Member

@ggazzo
ggazzo requested a review from a team as a code owner July 15, 2026 23:21
@ggazzo
ggazzo force-pushed the webdav-integration-removal branch from 6a4fea5 to a69eab5 Compare July 17, 2026 18:48

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.changeset/remove-webdav-integration.md:
- Line 5: Update the changeset description to clarify that upgrades with active
WebDAV storage are blocked before obsolete settings are deleted; state that
users must change the storage backend first, after which the WebDAV settings are
removed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 86dd4f73-6b78-4119-9d48-f9af1ed1ea51

📥 Commits

Reviewing files that changed from the base of the PR and between e7843e0 and 077a802.

📒 Files selected for processing (1)
  • .changeset/remove-webdav-integration.md
📜 Review details
⏰ Context from checks skipped due to timeout. (3)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: CodeQL-Build
  • GitHub Check: CodeQL-Build
⚠️ CI failures not shown inline (5)

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**

GitHub Check: Dionisio QA: Some checks did not pass

Conclusion: failure

View job details

**Conclusion:** failure
### Steps
- ✅ **No merge conflicts**
- ❌ **QA assured** — This PR is missing the 'stat: QA assured' label
- ✅ **Mergeable**
- ✅ **Has milestone or project**
- ✅ **Valid PR title**
- ✅ **Correct target version**
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2026-03-16T21:50:37.589Z
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39676
File: .changeset/migrate-users-register-openapi.md:3-3
Timestamp: 2026-03-16T21:50:37.589Z
Learning: For changes related to OpenAPI migrations in Rocket.Chat/OpenAPI, when removing endpoint types and validators from rocket.chat/rest-typings (e.g., UserRegisterParamsPOST, /v1/users.register) document this as a minor changeset (not breaking) per RocketChat/Rocket.Chat-Open-API#150 Rule 7. Note that the endpoint type is re-exposed via a module augmentation .d.ts in the consuming package (e.g., packages/web-ui-registration/src/users-register.d.ts). In reviews, ensure the changeset clearly states: this is a non-breaking change, the major version should not be bumped, and the changeset reflects a minor version bump. Do not treat this as a breaking change during OpenAPI migrations.

Applied to files:

  • .changeset/remove-webdav-integration.md

'@rocket.chat/meteor': major
---

Removes the WebDAV integration. All WebDAV accounts, settings, and file-picker functionality have been removed, and existing WebDAV settings are cleared from the database on upgrade

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Clarify the upgrade behavior for active WebDAV workspaces.

The migration throws before deleting settings when FileUpload_Storage_Type is Webdav, so those settings are not cleared during that upgrade attempt. Mention that upgrades are blocked until the storage backend is changed, after which obsolete settings are removed.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.changeset/remove-webdav-integration.md at line 5, Update the changeset
description to clarify that upgrades with active WebDAV storage are blocked
before obsolete settings are deleted; state that users must change the storage
backend first, after which the WebDAV settings are removed.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".changeset/remove-webdav-integration.md">

<violation number="1" location=".changeset/remove-webdav-integration.md:5">
P3: The changeset description states that "existing WebDAV settings are cleared from the database on upgrade," but the migration actually blocks the upgrade when `FileUpload_Storage_Type` is still set to `Webdav`. This makes the description incomplete/misleading. Consider clarifying that upgrades are blocked until the storage backend is changed away from WebDAV, after which the obsolete settings are removed.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

'@rocket.chat/meteor': major
---

Removes the WebDAV integration. All WebDAV accounts, settings, and file-picker functionality have been removed, and existing WebDAV settings are cleared from the database on upgrade

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P3: The changeset description states that "existing WebDAV settings are cleared from the database on upgrade," but the migration actually blocks the upgrade when FileUpload_Storage_Type is still set to Webdav. This makes the description incomplete/misleading. Consider clarifying that upgrades are blocked until the storage backend is changed away from WebDAV, after which the obsolete settings are removed.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .changeset/remove-webdav-integration.md, line 5:

<comment>The changeset description states that "existing WebDAV settings are cleared from the database on upgrade," but the migration actually blocks the upgrade when `FileUpload_Storage_Type` is still set to `Webdav`. This makes the description incomplete/misleading. Consider clarifying that upgrades are blocked until the storage backend is changed away from WebDAV, after which the obsolete settings are removed.</comment>

<file context>
@@ -0,0 +1,5 @@
+'@rocket.chat/meteor': major
+---
+
+Removes the WebDAV integration. All WebDAV accounts, settings, and file-picker functionality have been removed, and existing WebDAV settings are cleared from the database on upgrade
</file context>

@ggazzo
ggazzo force-pushed the webdav-integration-removal branch from 077a802 to 08a442e Compare July 18, 2026 00:28
@ggazzo
ggazzo merged commit b45114b into release-9.0.0 Jul 20, 2026
83 of 87 checks passed
@ggazzo
ggazzo deleted the webdav-integration-removal branch July 20, 2026 21:09
ggazzo added a commit that referenced this pull request Jul 21, 2026
Co-authored-by: Julio Araujo <julio.araujo@rocket.chat>
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
ggazzo added a commit that referenced this pull request Aug 5, 2026
Co-authored-by: Julio Araujo <julio.araujo@rocket.chat>
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
tassoevan pushed a commit that referenced this pull request Aug 25, 2026
Co-authored-by: Julio Araujo <julio.araujo@rocket.chat>
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
tassoevan pushed a commit that referenced this pull request Aug 27, 2026
Co-authored-by: Julio Araujo <julio.araujo@rocket.chat>
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
tassoevan pushed a commit that referenced this pull request Aug 27, 2026
Co-authored-by: Julio Araujo <julio.araujo@rocket.chat>
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants