Usermin redirects causing "Corrupted Content Error"

First of all i'm not sure why my issue was closed on Authentic theme github. Doesnt matter if i'm the only one reporting this issue, its still a issue not caused by any of my actions. So i'm opening this here.

  • CentOS Linux 7.4.1708 / Webmin 1.870 / Virtualmin 6.02 / Usermin 1.720
  • Win7 / FF / 57.0.2 (64-bit)

Case 1 (working ok):
Authentic theme settings - Default pages:
Default tab after logging in to Webmin - Webmin
Default module for Webmin - empty
Default page for Virtualmin - empty
Default tab after logging in to Usermin - Usermin

After successful login i'm prompted with Usermin (def. tab Usermin).

Case 2 (bugged):
Authentic theme settings - Default pages:
Default tab after logging in to Webmin - Webmin
Default module for Webmin - empty
Default page for Virtualmin - empty
Default tab after logging in to Usermin - Mail

After successful login i'm prompted with:

Corrupted Content Error
The site at https://mydomain.com:XXXXX/ has experienced a network protocol violation that cannot be repaired.
The page you are trying to view cannot be shown because an error in the data transmission was detected.
Please contact the website owners to inform them of this problem.

This is what i have in Usermin logs:

readline() on closed filehandle $ADDRESS at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 166.
Use of uninitialized value in split at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 600.
Use of uninitialized value $file in substitution (s///) at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 667.
Use of uninitialized value $file in substitution (s///) at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 668.
Use of uninitialized value $file in substitution (s///) at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 670.
Use of uninitialized value $mailbox::config{"server_name"} in string eq at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 1323.
Use of uninitialized value $mailbox::config{"server_name"} in string eq at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 1335.
Use of uninitialized value $mailbox::config{"server_name"} in string eq at /usr/libexec/usermin/mailbox/mailbox-lib.pl line 1335.


Reloading the page will remove this error and open Usermin but the default tab didnt change and Usermin tab will be first to show up. If i move back "Default tab after logging in to Usermin" to "Usermin" the problem is gone.

Additional info:
Error "Corrupted Content Error" is caused in FF when there are some conflicts with HTTP redirects. Tested this with Opera and no error so obviously FF have more strict rules. Plus when i used Opera i was able to login without any problem but the default tab was Usermin and not Mail. So something with redirects doesnt work when switched to "Mail" tab as default.
Changed the theme for everything to "Virtualmin Framed theme", in Usermin settings set "Read mail" as default option and tested with Opera and FF. Both logins worked fine and i was redirected to the right module. So definitely something is broken with my Authentic theme and must be during the updates. Two things that i every changed with Authentic theme was turning off hotkeys and changing "Default tab after logging in to Usermin". The rest was left untouched from the day when the theme was first introduced (my initial install was way before Authentic came out).

So i would like to correct Joe when he stated "I'm guessing that means Usermin was killed by the OOM killer in the middle of the request". This server never hit OOM or had any other problems. For now all evidence is pointing to some problems with Authentic theme. Again it must be during the update because i didnt change anything or made any action what could be the reason for this issue to appear. The log files (all of them not just Usermin) doesnt show any trace of what is going on. I tested many times to see if some other problem will show up but nothing. Something must be wrong in a way Authentic theme is handling redirects and (maybe) Usermin not able to properly follow such instructions.

Keep in mind this Virtualmin installation is 3 years old, so all major changes (e.g. Vmin 6.0, Authentic, etc...) came long after this system was build.

Status: 
Active

Comments

Have you tried upgrading to Usermin 1.730? It should fix several of these theme issues..

Diabolico's picture
Submitted by Diabolico on Sat, 12/16/2017 - 18:17

I saw same suggestion from Ilia on github but it was after i opened this topic. For now i dont have any update for any *Min products on Centos 7. He suggested to pull from development version but this problem isnt deal breaker so i can wait for final version of Usermin.

Diabolico's picture
Submitted by Diabolico on Fri, 12/22/2017 - 20:25

Looks like this problem is directly connected with another bug:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.730 Date: Tue, 19 Dec 2017 00:26:51 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed

Undefined subroutine &main::embed_noscript called at /usr/libexec/usermin/authentic-theme/authentic-lib.pm line 1692.

Commenting out that line will remove both problems and now Usermin redirects is working again. Looks like i was right and this error was caused by Firefox as they implemented more strict rules and so preventing the execution of the code.

Posting this just in case someone else encounter same problem and the new update still isnt available.

Does running /etc/usermin/restart help fix that embed_noscript error?