Ja, Core-Bug
Server-Betriebssystem + Version
Debian 13.4
Eingesetzte Server-Virtualisierung-Technologie
KVM
KeyHelp-Version + Build-Nummer
z.B. 26.0 - Build 3618
Problembeschreibung / Fehlermeldungen
- Beim Erstellen eines FTP-Benutzers via API kommt es zum Internal Server Error
Beispiel Request:
Code: Select all
POST https://keyhelp-server/api/v2/ftp-users
JSON:
"id_user": 60,
"username": "box_testuser",
"password": "************",
"home_directory": "/files/test",
"description": "test"
Code: Select all
[09-Apr-2026 08:24:06 Europe/Berlin] PHP Fatal error: Uncaught TypeError: Ftp\FtpUser::getHomeDirectory(): Return value must be of type string, null returned in /home/keyhelp/www/keyhelp/core/Ftp/FtpUser.php:143
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/Api/ApiController/ApiControllerFtpUsers.php(237): Ftp\FtpUser->getHomeDirectory()
#1 /home/keyhelp/www/keyhelp/api/api.php(315): Api\ApiController\ApiControllerFtpUsers->createAndUpdate()
#2 {main}
thrown in /home/keyhelp/www/keyhelp/core/Ftp/FtpUser.php on line 143
[09-Apr-2026 08:25:36 Europe/Berlin] PHP Fatal error: Uncaught TypeError: Ftp\FtpUser::getHomeDirectory(): Return value must be of type string, null returned in /home/keyhelp/www/keyhelp/core/Ftp/FtpUser.php:143
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/Api/ApiController/ApiControllerFtpUsers.php(237): Ftp\FtpUser->getHomeDirectory()
#1 /home/keyhelp/www/keyhelp/api/api.php(315): Api\ApiController\ApiControllerFtpUsers->createAndUpdate()
#2 {main}
thrown in /home/keyhelp/www/keyhelp/core/Ftp/FtpUser.php on line 143
Erwartetes Ergebnis
200 / 201
Tatsächliches Ergebnis
500
Schritte zur Reproduktion
- FTP Benutzer via API erstellen
Zusätzliche Informationen
(z.B. kürzlich durchgeführte Änderungen am Server, Auszüge aus Protokolldateien (/var/log/*, /var/log/keyhelp/php-error.log, etc.))
Lg Linus