From a231826ab0a7558682d405926d3a46e89aae456e Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Thu, 11 Jul 2013 12:43:48 +0200 Subject: [PATCH] Fix #1290 : Download xith xsendfile activated fails --- .../Phrasea/Command/Setup/XSendFileMappingGenerator.php | 4 ++-- lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php index 4a2d5f878d..7330645053 100644 --- a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php +++ b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php @@ -66,8 +66,8 @@ class XSendFileMappingGenerator extends Command private function computeMapping($paths) { return array_merge(array( - array('mount-point' => 'lazaret', 'directory' => $this->container['root.path'] . '/tmp/lazaret'), - array('mount-point' => 'download', 'directory' => $this->container['root.path'] . '/tmp/download'), + array('mount-point' => 'protected_lazaret', 'directory' => $this->container['root.path'] . '/tmp/lazaret'), + array('mount-point' => 'protected_download', 'directory' => $this->container['root.path'] . '/tmp/download'), ), array_map(array($this, 'pathsToConf'), array_unique($paths))); } diff --git a/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php b/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php index a3f8f700bb..e88aa133f4 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php @@ -57,7 +57,7 @@ class DoDownload implements ControllerProviderInterface * * return : HTML Response */ - $controllers->post('/{token}/get/', $this->call('downloadDocuments')) + $controllers->match('/{token}/get/', $this->call('downloadDocuments')) ->bind('document_download') ->assert('token', '[a-zA-Z0-9]{8,16}');