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 #12164

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

#12128 with s/status_str/status_string/

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.
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.83%. Comparing base (bd7d38e) to head (a492997).
Report is 30 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12164      +/-   ##
==========================================
+ Coverage   49.81%   49.83%   +0.02%     
==========================================
  Files         909      909              
  Lines      257904   257900       -4     
==========================================
+ Hits       128467   128537      +70     
+ Misses     129437   129363      -74     
Flag Coverage Δ
fuzzcorpus 60.99% <100.00%> (+0.04%) ⬆️
livemode 19.43% <0.00%> (+<0.01%) ⬆️
pcap 44.43% <100.00%> (+0.01%) ⬆️
suricata-verify 62.71% <100.00%> (-0.04%) ⬇️
unittests 8.98% <0.00%> (-0.01%) ⬇️

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

@suricata-qa
Copy link

Information:

ERROR: QA failed on SURI_TLPR1_alerts_cmp.

field baseline test %
SURI_TLPR1_stats_chk
.uptime 624 644 103.21%
.app_layer.flow.ftp 32421 33996 104.86%
.app_layer.flow.dcerpc_tcp 40 42 105.0%
.http.byterange.memuse 99602115 103998902 104.41%
.ftp.memuse 2906 3013 103.68%

Pipeline 23586

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23624

Comment on lines +2017 to +2019
"status_string": {
"type": "string"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would be nice for all new schema entries to get a description :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right :-)

@catenacyber
Copy link
Contributor Author

Next in #12203

@catenacyber catenacyber closed this Dec 2, 2024
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