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

Large CDB lists upload fails silently #4288

Closed
jctello opened this issue Jun 24, 2022 · 3 comments · Fixed by #4307
Closed

Large CDB lists upload fails silently #4288

jctello opened this issue Jun 24, 2022 · 3 comments · Fixed by #4307
Assignees
Labels
request/operational Operational requests type/bug Bug issue

Comments

@jctello
Copy link
Contributor

jctello commented Jun 24, 2022

Wazuh indexer 4.3.4

Browser
all

Description
When a CDB list file with a size above 1MB but below 10MB is uploaded the Wazuh dashboard plugin silently fails.

Steps to reproduce
Create a file with more than 1MB with valid CBD entries but less than 10MB and attempt to upload.
Note how it doesn't fail and suggests to restart for the changes to take effect.

Expected Result

  1. List to be uploaded or a correct error message be given

CDBtoolarge

Actual Result

  1. List is never uploaded. Looking at developer tools reveals the API's error message

Screenshots

CDB-too-large-silent-fail.mp4

Additional context
This is related to #1947

@jctello
Copy link
Contributor Author

jctello commented Jun 24, 2022

Other silent messages are when there's an existing list with a questionable filename and it is attempted to be edited:

badfilename-silent-error.mp4

Or when the API times out because there CDB list is too large:

CDB-timeout-silent-fail.mp4

@Desvelao Desvelao self-assigned this Jul 5, 2022
@Desvelao
Copy link
Member

Desvelao commented Jul 5, 2022

Research

Cases:

  1. CDB list with a size above 1MB and below 10MB
    Due to recent changes, a message is now displayed in the UI.
    Image

  2. The error is not managed. We need to display a toast when there is

  3. The error is not managed.

For cases: 2 and 3, we need to display a toast with information about the error.

I am reviewing the action buttons of tables for Rules/Decoders/CDB Lists and all the buttons need to manage the error and display a toast.

@Desvelao
Copy link
Member

Desvelao commented Jul 5, 2022

Solved in: #4307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request/operational Operational requests type/bug Bug issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants