Bulk export: doesn't finish when custom data directory is set

Description

When the Directory config is set to something other than the default the bulk export crashes when exporting the emoji with the following error:

This is causing missing messages when running the export.

It is happening on 5.23.1 and 5.25.1

QA Test Steps

Activity

Show:
Saturnino Abril
August 10, 2020, 10:42 AM

Tested and passed

Done

Mana

None

Assignee

Christopher Speller

QA Assignee

Saturnino Abril

Reporter

Sven Hüster

Epic Link

None

Fix versions

Mattermost Team

Sustained Engineering

Sprint

None

Labels

QA Testing Areas

Other (write in QA test steps)

GitHub Issue

None

Components

None

Severity

None