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

output/http: log invalid status as a string #12203

Closed
wants to merge 1 commit into from

Conversation

catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7311

Describe changes:

  • output/http: log invalid status as a string

Also fix integer warning on the way

SV_BRANCH=OISF/suricata-verify#2085

From #11904 in its own PR

#12164 with description added in json schema

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23636

Ticket: 7311

If response_status_number is not a valid poisitive integer,
we should not try to parse it again, and fail again,
but just log the raw string.
@catenacyber catenacyber force-pushed the http-status-log-7311-v3 branch from 78fdd23 to 69de277 Compare December 3, 2024 20:57
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.17%. Comparing base (e9173f3) to head (69de277).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12203   +/-   ##
=======================================
  Coverage   83.17%   83.17%           
=======================================
  Files         912      912           
  Lines      257111   257107    -4     
=======================================
+ Hits       213856   213859    +3     
+ Misses      43255    43248    -7     
Flag Coverage Δ
fuzzcorpus 61.00% <100.00%> (-0.01%) ⬇️
livemode 19.41% <0.00%> (+<0.01%) ⬆️
pcap 44.40% <100.00%> (+0.02%) ⬆️
suricata-verify 62.78% <100.00%> (+<0.01%) ⬆️
unittests 59.17% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.app_layer.flow.dcerpc_tcp 40 42 105.0%

Pipeline 23664

@victorjulien victorjulien added this to the 8.0 milestone Dec 4, 2024
@victorjulien
Copy link
Member

Merged in #12222, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants