Rocket.Chat 9.0.0-rc.3

9.0.0-rc.3Pre-release
Changed 8
  • REST refusals mapped by the API error switch now answer 403 with body { success: false, error: '<message>', errorType: 'error-forbidden' } instead of 400, covering error-not-allowed, not-allowed, not-authorized, not_authorized, no-permission and error-not-authorized-federation
  • chat.postMessage to a room the caller cannot access now answers 400 error-invalid-room, the same as a non-existent room, instead of 400 error-not-allowed
  • 403 REST error bodies no longer include details or stack
  • Adding a user without access-federation to a federated room now throws error-not-authorized-federation instead of an error whose code is the full message
  • The /hooks endpoints return status codes matching the failure: 403 when message-impersonate is missing or a channel or roomId override is disabled
  • The /hooks endpoints return 404 error-invalid-room when the destination room does not exist or is inaccessible to the integration user, replacing 400 invalid-channel and 400 error-not-allowed
  • /hooks/remove/... returns 404 with { success: false, error: 'integration-not-found' } when no integration matches target_url, instead of a 200 wrapping the failure
  • The /hooks endpoints return 500 when the integration script throws (error-running-script) or the message produces no result (unknown-error)
Fixed 3
  • Native and custom emojis render correctly at different sizes, and inline emojis no longer make message lines and reaction pills taller
  • A stray divider no longer appears at the start of the top navigation bar when there are no ongoing calls
  • Removed the empty space above the divider at the bottom of the sidebar

From Rocket.Chat

Engine versions
  • Node: >=22.22.3 <23 || >=24.15.0 <25
  • MongoDB: 8.0
  • Apps-Engine: 1.68.0-rc.0
Major Changes
  • (#43214) Breaking: the REST refusals that the API error switch maps answer 403 with one body shape: { success: false, error: '<message>', errorType: 'error-forbidden' }. errorType is always error-forbidden; error carries the refusal message.

    • error-not-allowed, not-allowed, the unprefixed not-authorized, not_authorized, no-permission and error-not-authorized-federation now answer 403 instead of 400, whether the endpoint throws them as a Rocket.Chat error or as a plain Error whose message is the code. This covers, among others, chat.pinMessage, chat.unPinMessage, chat.starMessage, chat.unStarMessage, chat.react, the thread and message endpoints refused by settings or room access, rooms.info and rooms.getDiscussions without room access, chat.delete with asUser without force-delete-message, statistics, the integrations endpoints (including integrations.create and integrations.clearHistory), custom-user-status.create, custom-user-status.update, custom-user-status.delete, emoji-custom.delete, and users.generatePersonalAccessToken, users.regeneratePersonalAccessToken and users.removePersonalAccessToken.
    • Clients that read the original code from errorType (error-not-allowed, not-authorized, error-not-authorized, …) now get error-forbidden. The permission check declared on a route answers User does not have the permissions required for this action, without the [error-unauthorized] suffix, and a thrown Rocket.Chat error answers its reason (Threads Disabled) without the [error-not-allowed] suffix.
    • chat.postMessage to a room the caller cannot access answers 400 error-invalid-room, the same as a room that does not exist, instead of 400 error-not-allowed.
    • 403 bodies carry no details or stack.
    • The DDP methods keep throwing their original error codes, except that adding a user without access-federation to a federated room now throws error-not-authorized-federation instead of an error whose code is the full message.
  • (#43214) Breaking: the /hooks endpoints answer with the status code that matches the failure instead of 400 for all of them.

    • 403 when the integration user lacks message-impersonate, or when a channel or roomId override is disabled.
    • 404 error-invalid-room when the destination room does not exist or the integration user cannot access it, so a private room is not revealed. With separateResponse, the room error is reported per channel inside responses of a regular response instead. It replaces 400 invalid-channel and 400 error-not-allowed.
    • 404 from /hooks/remove/... when no integration matches target_url. The body is now { success: false, error: 'integration-not-found' } instead of a 200 that wraps the failure.
    • 500 when the integration script throws (error-running-script) or the message produces no result (unknown-error).
    • Malformed payloads and errors returned by the script keep answering 400.
Patch Changes
  • Bump @rocket.chat/meteor version.

  • (#43234) Fixes native and custom emojis rendering at different sizes, and inline emojis making message lines and reaction pills taller

  • (#43355) Fixes a stray divider at the start of the top navigation bar when there are no ongoing calls to show

  • (#43355) Removes the empty space above the divider at the bottom of the sidebar

View original

Upgraded? How did it go?

Discussion