Closed hoboristi closed 3 years ago
Do not have 'b' at the cli's response, also only one multiline xml given.
There is an unexpexted byte in the output of gvm-cli (below the 'b' char) Also there is 2 xml (1 per line), compared to older releases
b'<authenticate_response status="200" status_text="OK"><role>Super Admin</role><timezone>UTC</timezone></authenticate_response>' <get_version_response status="200" status_text="OK"><version>21.4</version></get_version_response>
The error seems to be located at /usr/local/lib/python3.7/dist-packages/gvm/utils.py (gvm-tools installed by pip)
/usr/local/lib/python3.7/dist-packages/gvm/utils.py
If I remove <authenticate_response, seems to be OK.
<authenticate_response
pip install gvm-tools
/usr/local/bin/gvm-cli --gmp-username=admin --gmp-password=pass --protocol=GMP socket
### GVM versions **gsa:** (gsad --version) **gvm:** (gvmd --version) **openvas-scanner:** (openvassd --version) **gvm-libs:** **gvm-tools:** (gvm-cli --version) gvm-cli 21.1.0 (API version 21.5.0) ### Environment **Operating system:** **Installation method / source:** (packages, source installation) ### Logfiles <!-- in most cases you'll find the logs in /var/log/gvm/ -->
I guess I just missed removing a debug print statement in python-gvm.
python-gvm
Using https://github.com/greenbone/python-gvm/releases/tag/v21.6.0 should fix this. :)
Expected behavior
Do not have 'b' at the cli's response, also only one multiline xml given.
Current behavior
There is an unexpexted byte in the output of gvm-cli (below the 'b' char) Also there is 2 xml (1 per line), compared to older releases
The error seems to be located at
/usr/local/lib/python3.7/dist-packages/gvm/utils.py
(gvm-tools installed by pip)If I remove
<authenticate_response
, seems to be OK.Steps to reproduce
pip install gvm-tools
/usr/local/bin/gvm-cli --gmp-username=admin --gmp-password=pass --protocol=GMP socket