APC UPS Daemon apparently has a CSS or Javascript refresh within its detailed window which once displayed, causes the entire webmin interface to be refreshed according to the APCUPSD refresh setting. Once the APC UPS D detailed deisplay is opened, every following webmin interface will refresh on this same schedule, making (for example) editing a file or working on a long shell command impossible.
Closing out Webmin, logging out and re-logging into webmin will allow use of other webmin modules without the interfering refresh, until one opens the detailed APCUPSD window.
Operating system: Ubuntu Linux 16.04
Webmin version: 1.971
Authentic theme version: 19.70
Does this happen regardless of which Webmin theme you're using?
It appears to be on all themes...but I really dont know what I'm doing with
the themes, I have never used any of them but the default. I changed to
"gray framed theme" and the problem persists.
On Tue, Jan 26, 2021 at 10:54 PM Jamie Cameron jcameron@users.sourceforge.net wrote:
Related
Bugs: #5450
I think you'll need to report this to the author of the APC UPS module, as it's not a core part of Webmin.
OK, trying to figure out how to do that. But...should webmin allow a
single module to dictate the behavior of the whole application interface?
Should not the impact of a single module's refresh function be limited to
that module, by the design of Webmin?
Herndon Elliott
Signal Mtn, Tn
ΜΟΛΩΝ ΛΑΒΕ "molon labe"
On Wed, Jan 27, 2021 at 6:02 PM Jamie Cameron jcameron@users.sourceforge.net wrote:
Related
Bugs: #5450
A module must use Webmin UI lib to avoid various type of issues, and in this particular case rely on js_redirect() sub to perform redirect correctly across different themes.
I will research. The APCUPSD module is pretty old (2015, I think?) so I am
trying to figure out what needs updated to solve the problem. I think the
OP of the module has abandoned it, no response to contact yet.
Is there a guide for the module interface development? The UPS module is
very useful (to me, at least), so it would seem worth bringing forward.
Perhaps I can figure out how to do that.
Herndon Elliott
Signal Mtn, Tn
ΜΟΛΩΝ ΛΑΒΕ "molon labe"
On Thu, Jan 28, 2021 at 10:31 AM Ilia Rostovtsev rostovtsev@users.sourceforge.net wrote:
Related
Bugs: #5450
Please have a look at the following link:
https://doxfer.webmin.com/Webmin/Module_Development
The problem is not solved, but to work around it, I open a new Webmin tab in the browser, and close the old one.
If APC UPS Webmin module used
ui_page_refresh()Perl sub it would work correctly. Most probably, it's usinglocation.reload();method directly, and in this case it wouldn't work as expected in Authentic theme (or any other SPA application).So, the problem is solved on our side. Please contact module developer and pass my message. It should be trivial to fix.
Unfortunately, this module is no longer supported...
In this case scenario you should patch the module yourself and/or use Framed Theme, which would work just fine with full window reload.