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

Make sure modify_setting value is Base64-encoded #98

Merged
merged 3 commits into from
Feb 25, 2019
Merged

Make sure modify_setting value is Base64-encoded #98

merged 3 commits into from
Feb 25, 2019

Conversation

wiegandm
Copy link
Member

The server expects the text child of a value element in modify_setting to be
Base64-encoded, failing to do so can have severe consequences like locking out
the user entirely. This PR ensures the correct encoding and adjusts the tests
accordingly.

Checklist:

The server expects the text child of a `value` element in
`modify_setting` to be Base64-encoded, so adjust test accordingly.
The server expects the text child of a `value` element in
`modify_setting` to be Base64-encoded, so modify_setting must make sure
this is the case.
@wiegandm wiegandm requested review from bjoernricks and a team February 25, 2019 08:10
@codecov
Copy link

codecov bot commented Feb 25, 2019

Codecov Report

Merging #98 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #98   +/-   ##
=======================================
  Coverage   96.18%   96.18%           
=======================================
  Files          10       10           
  Lines        2412     2412           
=======================================
  Hits         2320     2320           
  Misses         92       92
Impacted Files Coverage Δ
gvm/protocols/gmpv7.py 99.58% <100%> (ø) ⬆️

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 010a71c...0e39dc6. Read the comment docs.

@bjoernricks bjoernricks merged commit 0a3c227 into greenbone:master Feb 25, 2019
@wiegandm wiegandm deleted the modify_setting_value_base64 branch February 25, 2019 09:09
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.

2 participants