Project

General

Profile

Tâche #25295

Scénario #25287: Les accès FTP ne fonctionne pas - SCRIBE-T06-001 - Vérification accès FTP (2.7.0-b1)

Correction SCRIBE-T10-008 - Pydio (2.7.0-b1)

Added by Laurent Flori almost 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Start date:
08/27/2018
Due date:
% Done:

100%

Spent time:
Remaining (hours):
0.0

Description

Le répertoire "perso" n'est pas présent

http://squash-tm.eole.lan/squash/executions/7827


Related issues

Copied to Distribution EOLE - Bac à idée #25626: Étudier le passage à Pydio 8.2.2 Classée sans suite

History

#1 Updated by Daniel Dehennin almost 5 years ago

  • Parent task changed from #24655 to #25287

#2 Updated by Gérald Schwartzmann almost 5 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Gérald Schwartzmann almost 5 years ago

  • Assigned To set to Gérald Schwartzmann

#4 Updated by Gérald Schwartzmann almost 5 years ago

La connexion à Pydio : https://etb1.ac-test.fr/pydio/

affiche une page de diagnostic :

Pydio Diagnostic Tool

MCrypt enabled
error

MCrypt is required by all security functions.
PHP APC extension
warning

Pydio framework loads a lot of PHP files at each query, and using a PHP accelerator is greatly recommanded.
PHP Output Buffer disabled
warning

You should disable php output_buffering parameter for better performances with Pydio.

Après avoir ignoré cette page (comme indiqué dans le test) : une erreur CAS s'affiche

<tree><message type="ERROR">Use of undefined constant USER_FTPCAS_PATH - assumed 'USER_FTPCAS_PATH' (this will throw an Error in a future version of PHP)</message></tree>

root@scribe:/var/www/html/pydio# rgrep USER_FTPCAS_PATH
conf/EnvoleFilters.php:        $value = str_replace("USER_FTPCAS_PATH", $user_folder, $value);
conf/EnvoleFilters.php:        $value = str_replace("USER_FTPCAS_PATH", "", $value);
conf/bootstrap_repositories.php:                                         "PATH"  => USER_FTPCAS_PATH)
root@scribe:/var/www/html/pydio#
root@scribe:/usr/share/eole/creole/distrib# rgrep USER_FTPCAS_PATH
pydio-EnvoleFilters.php:        $value = str_replace("USER_FTPCAS_PATH", $user_folder, $value);
pydio-EnvoleFilters.php:        $value = str_replace("USER_FTPCAS_PATH", "", $value);
pydio-bootstrap_repositories.php:                                         "PATH"  => USER_FTPCAS_PATH)
pydio-bootstrap_repositories.php:                                         "PATH"  => USER_FTPCAS_PATH)
root@scribe:/usr/share/eole/creole/distrib#

#5 Updated by Gérald Schwartzmann almost 5 years ago

Mcrypt has been deprecated in PHP 7.2, so it's not available by default.

http://php.net/manual/en/migration71.deprecated.php

#6 Updated by Gérald Schwartzmann almost 5 years ago

# tail -f /var/log/apache2/error.log
[Mon Oct 15 15:37:41.319703 2018] [php7:notice] [pid 16947] [client 192.168.0.200:40842] Message was : IP => 192.168.0.200 | user => No User | level => Error | source => bootstrap_repositories.php | prefix => error l.44 | message => message=Use of undefined constant USER_FTPCAS_PATH - assumed 'USER_FTPCAS_PATH' (this will throw an Error in a future version of PHP), referer: http://scribe.ac-test.fr/pydio/ws-Home/

#7 Updated by Gérald Schwartzmann almost 5 years ago

<?php
define("USER_FTPCAS_PATH", "something");
function UserFolderftpCas(&$value){
…

Après avoir déclaré la constante dans conf/EnvoleFilters.php une autre erreur apparaît :

<message type="ERROR">Function create_function() is deprecated</message>

Migration de PHP 7.1.x vers PHP 7.2.x

Cette nouvelle version mineure apporte avec elle un certain nombre de nouvelles fonctionnalités et quelques incompatibilités qui doivent être testées avant de changer les versions PHP dans les environnements de production.

https://secure.php.net/manual/fr/migration72.php

#8 Updated by Gérald Schwartzmann almost 5 years ago

https://secure.php.net/manual/fr/migration72.deprecated.php

Fonction create_function()

Étant donné les problèmes de sécurité de cette fonction (qui est un wrapper mince autour de eval()) cette ancienne fonction est maintenant obsolète. Le meilleur moyen de créer des fermetures est en définissant des fonctions anonymes.

#9 Updated by Gérald Schwartzmann almost 5 years ago

Il faut envisager le passage à pydio 8.2.2 pour la compatibilité avec PHP 7.2

#10 Updated by Gérald Schwartzmann almost 5 years ago

  • Status changed from En cours to Résolu

#11 Updated by Joël Cuissinat almost 5 years ago

#12 Updated by Joël Cuissinat almost 5 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0

Also available in: Atom PDF