Server Manager 2 Howto incorporate a legacy contrib
Introduction
There are 3 possibilities for incorporating an existing (legacy) contrib into Server manager 2:
- Re-code the contrib into the Mojolicious environment in which SM2 is written. This is documented here.
- Code up a "dummy" perl panel using mojolicious (see example below) which is inserted uatomatically into the menu and calls the "embedded.html.ep" template file.
- Just import the current contrib and access it through the "Legacy" category on the menu.
This page explains (2) and (3) in a bit more detail.
Code up a dummy page which calls the legacy panel
If you want to be able to control the position and category in the menu for the legacy contrib then you'll need to create a perl program in: the directory:
/usr/share/smanager/SrvMngr/Controller
Here is an example for the smeserver-userpanel contrib:
package SrvMngr::Controller::Userpanelaccess;
#----------------------------------------------------------------------
# heading : User management
# description : User Panel Access
# navigation : 2000 150
# menu :
#----------------------------------------------------------------------
# name : userpanelaccess, method : get, url : /userpanelaccess, ctlact : Userpanelaccess#main
#
# routes : end
#----------------------------------------------------------------------
use strict;
use warnings;
use Mojo::Base 'Mojolicious::Controller';
use Locale::gettext;
use SrvMngr::I18N;
use SrvMngr qw(theme_list init_session);
#use SrvMngr::Model::Main;
sub main {
my $c = shift;
$c->app->log->info($c->log_req);
my $title = $c->l('User panel access');
$c->stash( title => $title, modul => 'https://mailserver.bjsystems.co.uk/server-manager/cgi-bin/userpanelaccess', height => 600 );
$c->render(template => 'embedded');
}
1;
This file will need to be here:
/usr/share/smanager/SrvMngr/Controller/Userpanelaccess.pm
Note the menu entries at the top, and the route specification (the capitalisation and case matching is important here)
Also note the full URL for the SM1 (legacy) contrib, and also the window length (it defaults to 600px if you do not specify).
This all that is necessary to customise the menu entry for a legacy contrib.
Just install the contribs rpm and call it from the "Legacy" category
Server manager 2 will scan for installed contribs, and any that are not fully compatible with Mojolicious will just load the menu entry, using the package name as a link, under the "Legacy" category, normally at the bottom of the menu stack.
The need to login into Server Manager 1
If the legacy contrib does not show after clicking on the menu entry (either for mode (2) or (3) above), then it is probably that you are not logged into SM1. This can be achieved using the button in the top border of SM2 titled "Legacy SM". You can almost certainly use the same credentials that you used to go into SM2. Unfortunately the two programs use different login mechanisms.
Bugs
Please raise bugs under the SME-Server section in bugzilla
and select the component or use this link
Below is an overview of the current issues for this package:
ID | Product | Version | Status | Summary (129 tasks) ⇒ |
---|---|---|---|---|
12828 | SME Server 11.X | unspecified | CONFIRMED | Update JS components to latest version |
12811 | SME Server 11.X | unspecified | CONFIRMED | No ValidFrom for new server-manager |
12810 | SME Server 11.X | unspecified | RESOLVED | Move Letsencrypt action routines to a new package smeserver-certificates and getmyip to smeserver-lib |
12803 | SME Server 11.X | unspecified | CONFIRMED | Add password display icon on password panels for user, ibays and system |
12802 | SME Server 11.X | unspecified | CONFIRMED | Red Error message does not respond to being compressed onto 2 lines (see attached) |
12788 | SME Server 11.X | unspecified | IN_PROGRESS | AH01215: CGI::param called in list context can lead to vulnerabilities (Persistent) |
12762 | SME Server 11.X | unspecified | CONFIRMED | No valid prefix found in any entries |
12758 | SME Server 11.X | unspecified | CONFIRMED | After install a "signal-event smanager-refresh" is needed before SM2 comes up. |
12757 | SME Server 11.X | unspecified | CONFIRMED | Arrange that all language translations are installed with smeserver-manager |
12756 | SME Server 11.X | unspecified | CONFIRMED | Loaded Server manager 2 shows "Sme server 2 - initial" on browser tab |
12755 | SME Server 11.X | unspecified | CONFIRMED | Setting deltarpm parameter in SM2 dnf/yum config results on warning on dnf call |
12753 | SME Server 11.X | unspecified | VERIFIED | Include release number in Version of SM2 in footer. |
12751 | SME Server 11.X | unspecified | CONFIRMED | Add email link to action column in user accounts panel |
12750 | SME Server 11.X | unspecified | RESOLVED | Add EmailSettings options for uqpsmtpd, sqpsmtpd and qpsmtpd |
12748 | SME Server 11.X | unspecified | RESOLVED | SM2 - After hitting the "save" button on a panel, then need some feedback to show it is working on the change. |
12747 | SME Server 11.X | unspecified | CONFIRMED | SM2 - After adding a remote network network, then changing FTP settings, save gives error on empty network fields |
12746 | SME Server 11.X | unspecified | CONFIRMED | SM2 does not seem to take the passwordStrength db property into allowance when checking passwords for users |
12745 | SME Server 11.X | unspecified | CONFIRMED | Reconfigure message stays despite post-upgrade. |
12744 | SME Server 11.X | unspecified | IN_PROGRESS | Setting webmail permissions in email panel is not correctly reflected in email front panel |
12742 | SME Server 11.X | unspecified | RESOLVED | Webmail parameter "Save" on email panel gives "not updated" |
12727 | SME Server 11.X | unspecified | RESOLVED | Software Install panel: Submit button for subservient panels centered. |
12726 | SME Server 11.X | unspecified | CONFIRMED | Software Installer panel not waiting for dnf to finish and displaying log to that point. |
12725 | SME Server 11.X | unspecified | CONFIRMED | Top message when reconfigure required not set to be translateable. |
12724 | SME Server 11.X | unspecified | RESOLVED | Background update using dnf does not update software in SM2 software installer panel |
12718 | SME Server 11.X | unspecified | RESOLVED | Error clicking on software manager |
12714 | SME Server 11.X | unspecified | RESOLVED | Turkish menu missing from SM2 menu - does exist in SM1 |
12713 | SME Server 11.X | unspecified | CONFIRMED | Update smeserver-manager.locale with po files (for weblate import) and also fix up a few lex files |
12707 | SME Server 11.X | unspecified | CONFIRMED | Japanese, Norwegian and Hebrew navigation files have incorrect language codes |
12706 | SME Server 11.X | unspecified | RESOLVED | Add flag indication of locale in header for SM2 |
12705 | SME Server 11.X | unspecified | CONFIRMED | Japanese and Romanian translations only partial - headings, but not a lot more. |
12704 | SME Server 11.X | unspecified | CONFIRMED | Hebrew translation only has "Date and Time" panel translated. |
12703 | SME Server 11.X | unspecified | CONFIRMED | Greek user panel has tag showing. |
12702 | SME Server 11.X | unspecified | CONFIRMED | some translations missing Menu item translation |
12701 | SME Server 11.X | unspecified | CONFIRMED | Some translated panels are scrambled good example is Hostnames panel |
12700 | SME Server 11.X | unspecified | CONFIRMED | No way of programming in the translation for a contrib menu item title to be translated |
12699 | SME Server 11.X | unspecified | CONFIRMED | SM2 Re-configure and Reboot not translated |
12696 | SME Server 11.X | unspecified | CONFIRMED | Uncaught File 'Roboto-Regular.ttf' not found in virtual file system |
12695 | SME Server 11.X | unspecified | CONFIRMED | cache issue |
12680 | SME Server 11.X | unspecified | CONFIRMED | Align "submit" button on the left consistently on initial panel for each function |
12679 | SME Server 11.X | unspecified | VERIFIED | Add mojolicious logo to footer |
12674 | SME Server 11.X | unspecified | RESOLVED | Add some margin around the table controls |
12672 | SME Server 11.X | unspecified | CONFIRMED | Submit (Save/Perform/etc) button on the bottom each panel is often not in the same place |
12671 | SME Server 11.X | unspecified | RESOLVED | Remote Access form shows a empty network present - errors on save "field validation error" |
12669 | SME Server 11.X | unspecified | CONFIRMED | After using dnf to update and reboot, unable to login to SM1 |
12667 | SME Server 11.X | unspecified | CONFIRMED | Workstation restore from a removeable device fails |
12666 | SME Server 11.X | unspecified | CONFIRMED | Legacy panels under Server Manager 2 still require login to SM1 |
12664 | SME Server 11.X | unspecified | RESOLVED | smanager excessive logging to messages |
12656 | SME Server 11.X | unspecified | RESOLVED | Tables do not show the Datatable stuff and extra buttons |
12655 | SME Server 11.X | unspecified | CONFIRMED | Unable to reset passwqord through "password Reset" link on login |
12652 | SME Server 11.X | unspecified | RESOLVED | Unable to add an ibay |
12645 | SME Server 11.X | unspecified | CONFIRMED | smanager - Wokstation Backup - attempt verify backup fails, does not list backups |
12644 | SME Server 11.X | unspecified | VERIFIED | smanager - selecting workstation backup using a removeable device no devices displayed in form |
12643 | SME Server 11.X | unspecified | RESOLVED | Error message in logs on Startup 'Argument "" isn't numeric' |
12641 | SME Server 11.X | unspecified | CONFIRMED | Backup or Restore - when selected no drop down displayed to select method |
12640 | SME Server 11.X | unspecified | RESOLVED | Admin User forward not displayed in user table |
12608 | SME Server 11.X | unspecified | IN_PROGRESS | AH01215: CGI::param called in list context can lead to vulnerabilities (FormMagick) |
12498 | SME Server 11.X | unspecified | RESOLVED | Regression - menu restore does not work |
12491 | SME Server 11.X | unspecified | CONFIRMED | Mail Log analysis - qmail-q based options need to run as root or qmail |
12488 | SME Server 11.X | unspecified | RESOLVED | Legacy contribs (ones not converted to SM2 / mojo code) are left in the menu at the end and appear in a new browser window / tab |
12485 | SME Server 11.X | unspecified | CONFIRMED | Run the server manager perl files through the prettifier. |
12484 | SME Server 11.X | unspecified | CONFIRMED | Make sure that the categories/sections in the menu are in the same order. |
12483 | SME Server 11.X | unspecified | RESOLVED | hos_ERROR_CREATING_HOST on adding new hostname |
12482 | SME Server 11.X | unspecified | CONFIRMED | Make login by ordinary user show correct menu |
12480 | SME Server 11.X | unspecified | RESOLVED | NFR: Suppress the version number in the footer unless user logged in. |
12479 | SME Server 11.X | unspecified | RESOLVED | Click on "add domain" and it goes to corporate DNS Settings. |
12478 | SME Server 11.X | unspecified | RESOLVED | After creating I-bay it was not visible in the ibay list. |
12476 | SME Server 11.X | unspecified | RESOLVED | Re-organise menu as per discussions on Rocket |
12472 | SME Server 11.X | unspecified | UNCONFIRMED | SM2 XTGeoipRev=enabled != displays as == |
12471 | SME Server 11.X | unspecified | UNCONFIRMED | SM2 email-filtering spam settings display or change incorrectly |
12467 | SME Server 11.X | unspecified | RESOLVED | Icon not shown when second page selected on dataTable table |
12466 | SME Server 11.X | unspecified | RESOLVED | Add export buttons to tables in SM2 default theme. |
12465 | SME Server 11.X | unspecified | RESOLVED | Update smeserver-manager-jsquery to fix left alignment of tables |
12464 | SME Server 11.X | unspecified | RESOLVED | Server Manager 2 needs to save and restore menu organisation |
12459 | SME Server 11.X | unspecified | RESOLVED | Create rpm - smeserver-manager-jquery |
12458 | SME Server 11.X | unspecified | RESOLVED | Update SM2 to use jquery plugin dataTable for tables |
12457 | SME Server 11.X | unspecified | RESOLVED | Experiment with making tables sortable and filterable and paged - using jquery. |
12446 | SME Server 11.X | unspecified | CONFIRMED | Initial screen - immediately after install - fails to show translated message |
12444 | SME Server 11.X | unspecified | CONFIRMED | Proxy Error following software update |
12442 | SME Server 11.X | unspecified | RESOLVED | Default theme for SM2 submit button does not reflect hover or click |
12428 | SME Server 11.X | unspecified | RESOLVED | SM2 Login button does not highlight when you press it. - default Theme |
12392 | SME Server 10.X | 10.1 | VERIFIED | Domains panel does not show borders around table of domains |
12387 | SME Server 11.X | unspecified | RESOLVED | Server Manager 2 should open unconverted contribs/panels in the current page, possibly within an iframe |
12245 | SME Server 11.X | unspecified | CONFIRMED | Menu formatting with Server Manager 2 and AdminLTE |
12209 | SME Server 10.X | 10.0 | VERIFIED | Only show Reconfigure button and message after an update if UnsavedChanges='yes' |
12111 | SME Server 11.X | unspecified | RESOLVED | untainting server-manager2 |
11989 | SME Server 11.X | unspecified | RESOLVED | Rollup changes including AdminLTE 3.1 |
11906 | SME Server 11.X | unspecified | RESOLVED | Sort out spacing in menu when small fonts selected |
11881 | SME Server 11.X | unspecified | RESOLVED | Browser Error in js for AdminLTE version extraction |
11880 | SME Server 11.X | unspecified | RESOLVED | Browser error on non login pages (smeserver-manager-AdminLTE) |
11863 | SME Server 11.X | unspecified | RESOLVED | Update css and checkbox for dark mode |
11846 | SME Server 11.X | unspecified | RESOLVED | Warning from Browser when jquery loaded - unable to find .map file |
11833 | SME Server 11.X | unspecified | RESOLVED | More formatting |
11830 | SME Server 11.X | unspecified | RESOLVED | Update Datetime and reboot ep files to help AdminLTE |
11827 | SME Server 10.X | 10.0 | VERIFIED | Fix format of datetime panel |
11826 | SME Server 11.X | unspecified | RESOLVED | More format changes to make it compatible |
11825 | SME Server 11.X | unspecified | RESOLVED | Review configuration panel - In Server-Gateway, External IP and DHCP range not properly displayed |
11824 | SME Server 11.X | unspecified | RESOLVED | User and Hostnames list does not act responsivly as window is made smaller |
11823 | SME Server 11.X | unspecified | RESOLVED | In Review Configuration - IP address not show correctly for Server Gateway |
11822 | SME Server 11.X | unspecified | RESOLVED | In Review Configuration virtual domains not aligned. |
11821 | SME Server 11.X | unspecified | RESOLVED | Mail log file analysis shows blank |
- Report truncated - count greater than max allowed 101 > 100
Changelog
Only released version in smeserver are listed here.