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

NLogRequestPostedBodyMiddleware - Only accept AllowContentTypes #787

Merged
merged 1 commit into from
Jun 4, 2022

Conversation

snakefoot
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2022

Codecov Report

Merging #787 (2c5c87a) into master (a234cfc) will decrease coverage by 0%.
The diff coverage is 77%.

@@          Coverage Diff          @@
##           master   #787   +/-   ##
=====================================
- Coverage      67%    67%   -0%     
=====================================
  Files          58     58           
  Lines         949    976   +27     
  Branches      235    243    +8     
=====================================
+ Hits          635    653   +18     
- Misses        218    224    +6     
- Partials       96     99    +3     
Impacted Files Coverage Δ
src/Shared/Internal/HttpContextExtensions.cs 54% <60%> (+4%) ⬆️
src/NLog.Web/NLogRequestPostedBodyModule.cs 69% <85%> (+9%) ⬆️
...utRenderers/AspNetRequestDurationLayoutRenderer.cs 56% <0%> (-9%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a234cfc...2c5c87a. Read the comment docs.

@bakgerman
Copy link
Contributor

Should we also add 'application/soap+xml' to allow content type list, or will the charset entry already allow this? Many time the content type for SOAP is 'application/soap+xml; charset=utf-8'.

@snakefoot
Copy link
Contributor Author

snakefoot commented Jun 4, 2022

Should we also add 'application/soap+xml' to allow content type list, or will the charset entry already allow this? Many time the content type for SOAP is 'application/soap+xml; charset=utf-8'.

That should be covered by application/-prefix + xml-suffix. But yes any ContentType that contains charset will also pass the crude filter (expects charset means text that has been encoded).

@snakefoot snakefoot force-pushed the master branch 3 times, most recently from 0d210c2 to 790dcf3 Compare June 4, 2022 17:14
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

94.1% 94.1% Coverage
0.0% 0.0% Duplication

@snakefoot snakefoot merged commit 168f16c into NLog:master Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants