Bug 2357122 - Request to build roundcubemail 1.6 for EPEL9
Summary: Request to build roundcubemail 1.6 for EPEL9
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: roundcubemail
Version: epel9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-03 07:00 UTC by W. de Heiden
Modified: 2025-05-17 17:35 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description W. de Heiden 2025-04-03 07:00:41 UTC
Description of problem:

Roundcubemail 1.5.9 in EPEL9 seems to contain a but, causing tons of logging in the php-fpm log likes these:

[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763
[19-Mar-2025 15:50:19 Europe/Amsterdam] PHP Warning:  Undefined array key 1 in /usr/share/roundcubemail/program/lib/Roundcube/rcube_ldap.php on line 1763

Version-Release number of selected component (if applicable):
roundcubemail-1.5.9-1.el9.noarch

How reproducible:
Install roundcubemail using on AlmaLinuix 9.5

roundcubemail-1.5.9-1.el9.noarch
php-8.0.30-1.el9_2.x86_64
mariadb-10.5.22-1.el9_2.alma.1.x86_64

Use FreeIPA/ldap using this config:

Using  FreeIPA LDAP contacts ("address book") seems to work well using this config:

$config['ldap_public']['Home'] = [
  'name'             => 'Home FreeIPA LDAP directory',
  // Replacement variables supported in host names:
  // %h - user's IMAP hostname
  // %n - http hostname ($_SERVER['SERVER_NAME'])
  // %d - domain (http hostname without the first part)
  // %z - IMAP domain (IMAP hostname without the first part)
  // For example %n = mail.domain.tld, %d = domain.tld
  'hosts'            => [ 'ipa1.example.com', 'ipa2.example.com' ],
  'port'             => 389,
  'use_tls'          => true,
  'ldap_version'     => 3,
  'user_specific'    => false,
  'bind_dn'          => 'uid=ap_roundcube_dev,cn=users,cn=accounts,dc=example,dc=com',
  'bind_pass'        => '2XKcbuZrvfFGNHJS99qY1RrOD',
  'base_dn'          => 'cn=users,cn=accounts,dc=example,dc=com',
  'filter'           => '(memberOf=cn=roundcube_users,cn=groups,cn=accounts,dc=example,dc=com)',
  'writable'         => false,
  'scope'            => 'sub',
  'search_fields'    => [ 'mail', 'displayName', 'cn', 'sn', 'givenName'],  // fields to search in
  'fuzzy_search'     => true,    // server allows wildcard search
  'vlv'              => false,        // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
  'vlv_search'       => false,        // Use Virtual List View functions for autocompletion searches (if server supports it)
  'fieldmap'         => [
    // Roundcube    => LDAP:limit
    'name'          => 'displayName',
    'surname'       => 'sn',
    'firstname'     => 'givenName',
    'jobtitle'      => 'title',
    'email'         => 'mail:*',
    'phone:home'    => 'homePhone',
    'phone:work'    => 'telephoneNumber',
    'phone:mobile'  => 'mobile',
    'phone:pager'   => 'pager',
    'phone:workfax' => 'facsimileTelephoneNumber',
    'street'        => 'street',
    'zipcode'       => 'postalCode',
    'region'        => 'st',
    'locality'      => 'l',
    // if you country is a complex object, you need to configure 'sub_fields' below
    'country'       => 'c',
    'organization'  => 'o',
    'department'    => 'ou',
    'jobtitle'      => 'title',
    'notes'         => 'description',
    'photo'         => 'jpegPhoto',
    // these currently don't work:
    // 'manager'       => 'manager',
    // 'assistant'     => 'secretary',
   ],
  'group_filters' => [
    'roundcube_users' => [
      'name'    => 'Webmail gebruikers',
      'scope'   => 'sub',
      'base_dn' => 'cn=accounts,dc=example,dc=com',
      'filter'  => '(memberof=cn=roundcube_users,cn=groups,cn=accounts,dc=example,dc=com)',
      'name_attr' => 'cn',
    ],
    'calweb-toegang-dev' => [
      'name'    => 'XXXweb toegang dev',
      'scope'   => 'sub',
      'base_dn' => 'cn=accounts,dc=example,dc=com',
      'filter'  => '(&(memberof=cn=some-other-group,cn=groups,cn=accounts,dc=example,dc=com)(objectClass=inetorgPerson))',
      'name_attr' => 'cn',
    ],
  ],
];


Steps to Reproduce:
1. Access roundcubewebmail
2. Access the address book/contact list
3.

Actual results:
Lot's of PHP-warnings.

Expected results:
No PHP warnings

Additional info:

Since I can confirm the problems do not happen using roundcubemail 1.6.10 AND 1.6.10 is more recent there are two options:

- Add 1.6.10 to EPEL9 (conflicting 1.5, I know)
- Fix 1.5.9 (sounds ok, it's an LTS version)

Comment 1 Kevin Fenzi 2025-05-17 17:35:47 UTC
So, 1.6.x does have some breaking changes, so I would like to avoid doing that if at all possible.

I'll try to see if I can patch 1.5.9 for this. 

I assume you are still seeing it with the latest versions of php?


Note You need to log in before you can comment on or make changes to this bug.