Open enbrnz opened 1 year ago
data_exporter 0.2.1 works fine, when installed in /var/www/owncloud/apps-external/data_exporter
Was that with docker?
Trivial reproducer without docker:
occ app:ena data_exporter
-> occ instance:export:user alice /tmp/export
-> OKmkdir /tmp/owncloud; mv /var/www/owncloud/apps-external /tmp/owncloud
vi config.php
-> change /var/www/owncloud/apps-external
into /tmp/owncloud/apps-external
occ
PHP Fatal error: require(): Failed opening required '/tmp/owncloud/apps-external/data_exporter/lib/../../../version.php' (include_path='/var/www/owncloud/apps:/tmp/owncloud/apps-external') in /tmp/owncloud/apps-external/data_exporter/lib/Platform.php on line 51Code in data_exporter/lib/Platform.php expects all apps folders to be in-core:
public function __construct(IAppManager $appManager, $versionFile = __DIR__ . '/../../../version.php') {
$this->loadVersion($versionFile);
$this->appManager = $appManager;
}
When installing
data_exporter
in/var/www/owncloud/custom
any occ command fails with:Steps to reproduce
data_exporter
in/mnt/data/apps
(the docker container has a symlink in/var/www/owncloud/custom
pointing to/mnt/data/apps
)Expected behaviour
Data exporter should work
Actual behaviour
Exception being thrown