Bug #6350
closedAuto Config Backup - Uncaught Exception
0%
Description
When attempting to "Show Info" and unable to decrypt the backup, the following warning is generated:
Warning: Invalid argument supplied for foreach() in /usr/local/www/autoconfigbackup.php on line 416 Call Stack: 0.0001 232040 1. {main}() /usr/local/www/autoconfigbackup.php:0
Looking through the file in question: https://github.com/pfsense/FreeBSD-ports/blob/devel/sysutils/pfSense-pkg-AutoConfigBackup/files/usr/local/www/autoconfigbackup.php you probably need to fall back onto loading the backup list if loading a backup fails. Do this by running this block: https://github.com/pfsense/FreeBSD-ports/blob/devel/sysutils/pfSense-pkg-AutoConfigBackup/files/usr/local/www/autoconfigbackup.php#L250-L293 if the previous "download" block generates any errors.
Updated by Anonymous over 7 years ago
- Status changed from New to Feedback
- Assignee changed from Anonymous to Simon Trigona
Fixed by populating version table when info request fails
Updated by Simon Trigona over 7 years ago
Steve Beaver wrote:
Fixed by populating version table when info request fails
I don't remember what package version my initial bug report was for. I have v 1.4.7 installed and it does not display any errors, but does not display the list of available backups for the selected host.
When this fix/change is released, I will be able test again.