Media paths in CLIUtils ignore media volume configurations

Description

[This issue has existed before 1.7.7 but a change for 1.7.7 has changed the behavior, so it might impact upgrading installs as it is config dependent]

In app/lib/CLIUtils, both remove_unused_media and fix_permissions are looking into into a path constructed with the default rule (_CA_BASE_DIR.'/media/'.CA_APP_NAME_). But it seems like that path could have been overruled in both global.conf (via ca_media_root_directory) and in media_volumes.conf (via the various media-type-specific absolutePath settings).

It seems like the media-related utilities should walk all the absolutePath paths defined in media_volumes.conf. Or as an interim mitigation use the ca_media_root_directory path?

Environment

All

Assignee

User known

Reporter

yelto

Labels

Components

Affects versions

Priority

Major
Configure