389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
211 stars 90 forks source link

WebUI supports only instances with BDB #6065

Open vashirov opened 8 months ago

vashirov commented 8 months ago

Issue Description It's not possible to choose DB backend when a new instance is created. And for existing instances WebUI expects dsconf to return BDB specific parameters. For example, a page throws an Oops... when I navigate to Database tab on an instance with LMDB backend:

https://github.com/389ds/389-ds-base/blob/1f95b57fb8b03f72c7d2a2ce5b14eed5ba320407/src/cockpit/389-console/src/database.jsx#L251

Uncaught TypeError: Cannot read properties of undefined (reading '0')
    at Function.<anonymous> (database.jsx:251:55)
    at process_queue (cockpit.js:1311:37)
    at cockpit.js:1324:35
    at later_drain (cockpit.js:1205:13)

Package Version and Platform:

Steps to Reproduce Steps to reproduce the behavior:

  1. Create a new instance with MDB backend
  2. Go to Database tab
  3. Observe an Oops...

Expected results WebUI should support instances with both BDB and LMDB backends and not crash if some attributes are not available.

progier389 commented 7 months ago

Created IDMDS-4185 ticket

jchapma commented 1 day ago

46cefeb50..50d12ffb2 389-ds-base-2.5 -> 389-ds-base-2.5 795fd0572..5a46839f6 389-ds-base-3.0 -> 389-ds-base-3.0