Bug #15711
closedSpecial characters in the ACB configuration change description can cause PHP errors
100%
Description
As one example, it's possible to create a description with a |
at the end but then trying to reach the Restore page again results in a PHP error.
This is what's shown in the notification area:
PHP ERROR: Type: 1, File: /usr/local/www/services_acb.php, Line: 271, Message: Uncaught DateMalformedStringException: Failed to parse time string (|2024-09-07 10:30:10.0) at position 0 (|): Unexpected character in /usr/local/www/services_acb.php:271 Stack trace: #0 /usr/local/www/services_acb.php(271): DateTime->__construct() #1 {main} thrown @ 2024-09-07 15:39:13
Files
Updated by Jordan G about 2 months ago
Device being tested previously made backup in ACB with illegal character in the description, now in 24.08.a.20240920.1508 the ACB restore list reports "no backups could be located for this device". Changing the device key to one from a different system, with known backup entries, does not change the previously reported message of no backups.
edit - same issue still occurs, was showing no backups available due to DNS issue. With DNS working, there is no chance to enter a different device key.
Updated by Marcos M 22 days ago
- Subject changed from Specify illegal characters for Description field in the ACB page to Special characters in the ACB configuration change description can cause PHP errors
- Status changed from New to Feedback
- Assignee set to Marcos M
- Target version set to 2.8.0
- % Done changed from 0 to 100
- Plus Target Version set to 24.11
Updated by Christopher Cope 12 days ago
- Status changed from Feedback to Resolved
Tested on
24.11-BETA (amd64) built on Sat Nov 9 14:00:00 UTC 2024 FreeBSD 15.0-CURRENT
It no longer seems to produce any errors and the backups with the | character are now listed. Marking resolved.