Bug 2091514

Summary: Any changes to the config using web interface results in BackupPC failing
Product: [Fedora] Fedora Reporter: ceredigj
Component: BackupPCAssignee: Richard Shaw <hobbes1069>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: g.devel, hobbes1069, ifettich
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: BackupPC-4.4.0-8.fc36 BackupPC-4.4.0-8.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-01 09:40:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ceredigj 2022-05-30 07:52:35 UTC
Description of problem:
Any changes to BackuppC's configuration using the web interface results in BackupPC exiting with an error. This problem does not occur on Fedora 34 with BackupPC 4.4.0 & Perl v5.32.1. It appears that arrays are being changed into strings. Apologise in advance as this is my first hand written bug report.

Version-Release number of selected component (if applicable):
BackupPC 4.4.0 & Perl v5.34.1

How reproducible:
Very

Steps to Reproduce:
Any change to the configuration using the web interface

Actual results:
Web interface reports error:
 Not an ARRAY reference at /usr/share/BackupPC/lib/BackupPC/CGI/Lib.pm line 468.
Log file states:
 Can't use string ("23") as an ARRAY ref while "strict refs" in use at /usr/share/BackupPC/bin/BackupPC line 868.

Expected results:


Additional info:

Comment 1 Richard Shaw 2022-06-02 02:16:40 UTC
I haven't updated yet to Fedora 36 but I'm installing in a virtual machine right now.

Comment 2 Richard Shaw 2022-06-02 02:37:59 UTC
Purely a guess that it's the problem, but it looks like curly braces {} are being replaced with ().

Comment 3 Richard Shaw 2022-06-02 02:43:09 UTC
Upstream issue submitted.

Comment 4 George Joseph 2022-07-19 11:46:46 UTC
There was an earlier issue reported on github but no progress.
https://github.com/backuppc/backuppc/issues/457

Comment 5 Iosif Fettich 2022-08-23 09:35:35 UTC
https://github.com/backuppc/backuppc/issues/466 has a solution. It is a small patch that can easily be done manually till things get sorted out by packagers as well.

Comment 6 Fedora Update System 2022-08-23 14:28:59 UTC
FEDORA-2022-4068ae6010 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-4068ae6010

Comment 7 Fedora Update System 2022-08-23 14:29:01 UTC
FEDORA-2022-5248dee7a8 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5248dee7a8

Comment 8 Fedora Update System 2022-08-24 18:43:57 UTC
FEDORA-2022-5248dee7a8 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-5248dee7a8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-5248dee7a8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-08-24 20:12:42 UTC
FEDORA-2022-4068ae6010 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-4068ae6010`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-4068ae6010

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2022-09-01 09:40:11 UTC
FEDORA-2022-4068ae6010 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2022-09-12 17:37:55 UTC
FEDORA-2022-5248dee7a8 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.