Bug #12247
closed
Viewing an AutoConfigBackup entry takes approximately 60 seconds to completely load
Added by Anonymous over 3 years ago.
Updated about 3 years ago.
Category:
Backup / Restore
Plus Target Version:
22.01
Description
Build: 21.09.a.20210811.0100 - When viewing an ACB backup, the encrypted and decrypted versions of the backup should be displayed in separate text areas. The display is currently very slow and incomplete. This appears to be due to the length of the displayed data.
- Assignee changed from Anonymous to Renato Botelho
If I attempt to view a backup by clicking on the "view" icon, I should see both the encrypted and decoded config on the screen. What is happening is that 1) It takes about 60 seconds to display and 2) the display is not complete.
If I edit crypt.inc and make the crypt_data() function return a formatted string
$result = "---- BEGIN config.xml ----\nSomeDecryptionKey++++pfsense Decoded data\n---- END config.xml";
the same thing happens. It displays my formatted string, but it still takes 60 seconds.
If I comment out the exec(openssl . . . line in that function, everything works normally and I see my formatted string immediately.
openssl writes the decrypted data to a file and I see that file (and its correct contents) immediately. So it seems like something that exec(openssl . . is doing is breaking PHP but what?
- Description updated (diff)
Issue was caused by a missing curl_close() call, making the system wait until the acb server timed out.
- Status changed from New to Feedback
- % Done changed from 0 to 100
- Assignee changed from Renato Botelho to Steve Wheeler
- Status changed from Feedback to Resolved
This looks good.
The files open quickly and completely. Both encrypted and decrypted parts.
Tested:
21.09-DEVELOPMENT (amd64)
built on Wed Aug 18 01:12:01 EDT 2021
FreeBSD 12.2-STABLE
and
2.6.0-DEVELOPMENT (amd64)
built on Wed Aug 18 01:08:59 EDT 2021
FreeBSD 12.2-STABLE
- Target version changed from CE-Next to 2.6.0
- Plus Target Version changed from Plus-Next to 21.09
- Subject changed from Viewing an ACB backup is slow and incomplete to Viewing an AutoConfigBackup entry takes approximately 60 seconds to completely load
- Category changed from Web Interface to Backup / Restore
- Assignee changed from Steve Wheeler to Anonymous
Updating subject for release notes.
- Plus Target Version changed from 21.09 to 22.01
Also available in: Atom
PDF