I installed a new instance of NS (using Vagrant), decided to do all the stuff I usually do in the old httpd-admin in cockpit and then tried to install, in one pass, Webtop, the mail server module, fail2ban and the firewall-base interface. I only got the firewall interface in the first place. Interface says “Install 4 applications” but in the end only installed the last one which I chose from the interface.
Subsequent test installing the last three apps resulted in the same behavior (3 apps selected, last was email server, just the email server was installed).
Expected results: installation is done for every selected applications. Steps to reproduce:
1 - Install NS
2 - Update and install nethserver-cockpit (should be 0.13.1-1.ns7)
3 - Goto Cockpit interface, Software Center
4 - Select 2 or 3 packages, then install them
5 - Check for their installation (I’ve done that inside cockpit, but I forgot to check on the yum side).
I’m probably good to make some more tests in some hours, I have to open up some more bug reports today
You are right. I have to better describe the issue, since I have now found the way to reproduce both the good and the bad behaviour on the same machine.
Once on the Software Center, the expected and correct behaviour (all the application you previously selected are installed) is showing only if your search filters (within the search bar) are cleared. Search filters modify the visibility of the selected packages, so even if the button says “Install n apps” it will only install the last searched and flagged package.
I can now clearly state some scenarios here:
Selecting all packages to be installed directly from the first rendered page of Software Center works as expected;
Selecting some packages, then search for a package with the search bar, flag that one and directly push the install button inside the search results will only install the package which is shown, even if the button counts the correct number of flagged applications to be installed: this shows the bad behaviour I described;
Select some packages from the main page, then search for another one, flag it for installation from the search results, then remove search filters (clearing the search bar). Push the “install” button: correct behaviour is shown;
(this is the enlighting one) Select two package from the first render of Software Center page, then search another one but do not flag it for installation, then push the Install 2 apps button directly from the search result. You will receive an error:
Applications not installed.
Check `API` for more info:
It seems that the search filters reduce the visibility of the previously flagged packages for installation, but the button counts them correctly.