Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI supports only instances with BDB #6065

Open
vashirov opened this issue Feb 1, 2024 · 1 comment
Open

WebUI supports only instances with BDB #6065

vashirov opened this issue Feb 1, 2024 · 1 comment
Assignees
Labels
lmdb LMDB related

Comments

@vashirov
Copy link
Member

vashirov commented Feb 1, 2024

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:

if (attrs['nsslapd-cache-autosize'][0] !== "0") {

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:

  • Platform: Fedora
  • Package and version: main branch
  • Browser: Firefox

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.

@vashirov vashirov added lmdb LMDB related needs triage The issue will be triaged during scrum labels Feb 1, 2024
@progier389
Copy link
Contributor

Created IDMDS-4185 ticket

@progier389 progier389 removed the needs triage The issue will be triaged during scrum label Feb 22, 2024
@jchapma jchapma self-assigned this Aug 14, 2024
jchapma added a commit to jchapma/389-ds-base that referenced this issue Aug 14, 2024
Description:
BDB specific attributes are not supported by the web
console, resulting in an "Ooops" when the Database tab is selected.

Fix Description:
Add a new global Database configuration element for MDB layout.
Add support to detect what DB engine is configured, and display
the correct layout on rendering.

Relates: 389ds#6065

Reviewed by:
droideck pushed a commit to jchapma/389-ds-base that referenced this issue Aug 20, 2024
Description:
BDB specific attributes are not supported by the web
console, resulting in an "Ooops" when the Database tab is selected.

Fix Description:
Add a new global Database configuration element for MDB layout.
Add support to detect what DB engine is configured, and display
the correct layout on rendering.

Relates: 389ds#6065

Reviewed by:
jchapma added a commit to jchapma/389-ds-base that referenced this issue Sep 19, 2024
Description:
BDB specific attributes are not supported by the web
console, resulting in an "Ooops" when the Database tab is selected.

Fix Description:
Add a new global Database configuration element for MDB layout.
Add support to detect what DB engine is configured, and display
the correct layout on rendering.

Relates: 389ds#6065

Reviewed by:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lmdb LMDB related
Projects
None yet
Development

No branches or pull requests

3 participants