Project

General

Profile

Actions

Bug #15711

closed

Special characters in the ACB configuration change description can cause PHP errors

Added by Chris W 4 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Auto Configuration Backup
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
24.11
Release Notes:
Default
Affected Version:
All
Affected Architecture:

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

Actions #1

Updated by Chris W 4 months ago

  • Affected Version set to All
Actions #2

Updated by Jordan G 3 months ago

confirmed on 24.03 release and 24.08.a.20240906.2007 build

Actions #3

Updated by Jordan G 3 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.

Actions #4

Updated by Marcos M about 2 months 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
Actions #5

Updated by Christopher Cope about 1 month 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.

Actions

Also available in: Atom PDF