Skip to content

uploaded files are not protected #16261

@antkaz

Description

@antkaz

Description:

After adding JWT for downloaded files, files are not protected if JWT is disabled

Steps to reproduce:

  1. Go to Administration -> FIle Upload
  2. Enable Protect Uploaded Files and disable Enable JWT protection and save changes
    image
  3. Upload file to room
  4. Open FIles List to the room and Copy the link of any file
  5. Open the copied link in a new incognito browser tab

Expected behavior:

Expected 403 Forbidden

Actual behavior:

File downloaded

Server Setup Information:

  • Version of Rocket.Chat Server: 2.3.0
  • NodeJS Version: 8.7
  • MongoDB Version: 4.0

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