1

Topic: Bugs with the page selector.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: CentOS 7.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes. 4.1.1
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

   Hello,
   
There are 2 bugs with the page selector.
1. Outbound SMTP Sessions. First page open correctly. You can't access other pages - bad url:
https://xxx.xxx.xxx/page/2 instead of https://xxx.xxx.xxx/iredadmin/activitie … und/page/2

2. If you have more than 50 disabled aliases, you can't access 2nd page, bad url:
https://xxx.xxx.xxx/iredadmin/aliases/domain.ltd/page/2 instead of https://xxx.xxx.xxx/iredadmin/aliases/d … led/page/2

If I wrote manually correct url, then both pages opened correctly.

Regards
Marius

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Bugs with the page selector.

Fixed both issues.

Here's patch for first issue:

diff --git a/templates/default/iredapd/activities/smtp_outbound_sessions.html b/templates/default/iredapd/activities/smtp_outbound_sessions.html
index f8281919..13a0d9f0 100644
--- a/templates/default/iredapd/activities/smtp_outbound_sessions.html
+++ b/templates/default/iredapd/activities/smtp_outbound_sessions.html
@@ -82,12 +82,10 @@
 
             {{ display_smtp_outbound_sessions(rows=rows) }}
 
-            {#
             {% set baseurl = ctx.homepath + '/activities/smtp/sessions/outbound' %}
             {% if account_type and account %}
                 {% set baseurl = baseurl + '/' + account_type + '/' + account %}
             {% endif %}
-            #}
 
             {{ show_pages(baseurl=baseurl,
                           total=total,

Patch for second issue:

diff --git a/controllers/sql/alias.py b/controllers/sql/alias.py
index f3ed94d8..147d6b25 100644
--- a/controllers/sql/alias.py
+++ b/controllers/sql/alias.py
@@ -60,6 +60,7 @@ class List(object):
             aliases=records,
             all_first_chars=all_first_chars,
             first_char=first_char,
+            disabled_only=disabled_only,
             msg=form.get('msg', None),
         )
 

3

Re: Bugs with the page selector.

If you're not familiar with patch, please contact us to get a patched version:
https://www.iredmail.org/contact.html

4

Re: Bugs with the page selector.

ZhangHuangbin wrote:

If you're not familiar with patch, please contact us to get a patched version:
https://www.iredmail.org/contact.html


Thanks for patches. Everything's OK. Now, both selector are working.

Regards,
Marius