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

Error parsing manager configuration to XML #5868

Closed
Tracked by #5862
AlexRuiz7 opened this issue Sep 8, 2023 · 1 comment · Fixed by #5881
Closed
Tracked by #5862

Error parsing manager configuration to XML #5868

AlexRuiz7 opened this issue Sep 8, 2023 · 1 comment · Fixed by #5881
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Sep 8, 2023

Wazuh Rev Browser
4.6.0-alpha1 01 All

Description

The app fails to parse the manager configuration to XML, causing the view to break completely.

image

TypeError: Cannot read properties of undefined (reading 'parse')
    at getXML (wazuh.chunk.10.js:1:8375240)
    at WzSettingsViewer.render (wazuh.chunk.10.js:1:8426223)
    at Ia (osd-ui-shared-deps.js:436:69877)
    at Da (osd-ui-shared-deps.js:436:69672)
    at gs (osd-ui-shared-deps.js:436:105471)
    at uc (osd-ui-shared-deps.js:436:96718)
    at sc (osd-ui-shared-deps.js:436:96643)
    at Qs (osd-ui-shared-deps.js:436:93673)
    at osd-ui-shared-deps.js:436:45315
    at t.unstable_runWithPriority (osd-ui-shared-deps.js:444:3844)

Preconditions

  1. None

Steps to reproduce

  1. Navigate to 'Management > Configuration '
  2. Click on any setting
  3. Click on XML
@Desvelao
Copy link
Member

The problem is related to changed in the exports of the js2xmlparser library.

In the 5.0.0 the exports are named instead a export default.

@wazuhci wazuhci moved this from Triage to In progress in Release 4.6.0 Sep 12, 2023
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.6.0 Sep 12, 2023
@wazuhci wazuhci moved this from Pending review to Done in Release 4.6.0 Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants