Skip to content

[BUG] Certain uploads cause RC to crash #14944

@mickymiek

Description

@mickymiek

Description:

We noticed our RocketChat instances were crashing. We managed to trace the issue to a user that was uploading an SVG file.

Steps to reproduce:

  1. wget this file (file omitted)
  2. Rename it to something.svg
  3. Upload it to RocketChat

Expected behavior:

RocketChat shouldn't crash when uploading an SVG file.

Actual behavior:

RocketChat crashes when the file is uploaded

Server Setup Information:

  • Version of Rocket.Chat Server: 1.2.1
  • Operating System: Debian (CoreOS host)
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: On
  • NodeJS Version: 8
  • MongoDB Version: 4.0.10

Relevant logs:

thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', libcore/option.rs:345:21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions