Bug #4895
closedSystem Patches - multiple regressions with the new code
0%
Description
1/ When you click Test, then click Apply without clicking Close on the red banner, it applies the patch, but does not reset the URL so it stays at http(s)://<FQDN>/system_patches.php?id=<patchid>&act=apply. Then, when you go to some edit other patch and click Cancel, it re-applies the previous patch! :-( Similarly, press Test, then Edit some other patch without clicking Close, it goes back to test previously tested patch again though this is obviously not as bad as the previous case.
2/ This does not handle creating of new files via patch.
Examples:
- http://github.com/pfsense/pfsense/commit/d9fcbc2048041285690cc28159753acdb0bbb7a3.patch
- http://github.com/pfsense/pfsense/commit/4dda40b25ee72d899add9fb18e41310dfcc53a17.patch
This shows perpetually "Valid, not applied" and does not allow revert at all, so if you accidentally apply it multiple times, you need to delete the file from console. The regression here being that previously, you at least were able to use revert action, this is no longer the case. When both actions are valid, it at least should show both Apply and Revert actions in that column.