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

Increase filesize limit #487

Merged
merged 2 commits into from
May 13, 2020
Merged

Conversation

AdriiiPRodri
Copy link
Contributor

Hi team,

This PR closes #486. In this PR, we have increase the maximun allowed size of the files to be uploaded from 1mb to 10mb. This change applies to:

  • POST /manager/files
  • POST /cluster/:node_id/files
  • POST /agents/groups/:group_id/configuration
  • POST /agents/groups/:group_id/files/:file_name

File info

adriiiprodri@wazuh ls -l --block-size=M test.txt
-rw-r--r-- 1 adriiiprodri adriiiprodri 2M May 12 15:59 test.txt

Before

adriiiprodri@wazuh curl -k -u foo:bar -X POST -H 'Content-type: application/octet-stream' --data-binary @test.txt "https://localhost:55000/manager/files?path=etc/lists/new-list&overwrite=true"
{"error":701,"message":"Size of XML file is too long"}

After

adriiiprodri@wazuh curl -k -u foo:bar -X POST -H 'Content-type: application/octet-stream' --data-binary @test.txt "https://localhost:55000/manager/files?path=etc/lists/new-list&overwrite=true"
{"error":0,"data":"File updated successfully"}

@AdriiiPRodri AdriiiPRodri self-assigned this May 12, 2020
CHANGELOG.md Outdated Show resolved Hide resolved
@davidjiglesias davidjiglesias merged commit ca29db0 into 3.13 May 13, 2020
@davidjiglesias davidjiglesias deleted the fix-486_increase_filesize_limit branch June 7, 2022 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants