SilleBille / pki

Dogtag PKI Issues should be reported to the Dogtag PKI Pagure Issues site
https://pagure.io/dogtagpki/issues
GNU General Public License v2.0
1 stars 1 forks source link

HttpClient tool debug messages should only be displayed in verbose mode #403

Closed SilleBille closed 4 years ago

SilleBille commented 4 years ago

This issue was migrated from Pagure Issue #2892.Originally filed by mharmsen on 2018-01-09

HttpClient output requires clean up, it display debug log messages. The debug messages should only be displayed in verbose mode.

Steps to Reproduce:

# HttpClient /tmp/HttpClient_dir_server.cfg

Total number of bytes read = 3150
after SSLSocket created, thread token is NSS FIPS 140-2 User Private Key
client cert is not null
handshake happened
writing to socket
Total number of bytes read = 2574
MIIKCgYJKoZIhvcNAQcCoIIJ+zCCCfcCAQMxDzANBglghkgBZQMEAgEFADAxBggr
BgEFBQcMA6AlBCMwITAbMBkCAQEGCCsGAQUFBwcZMQowCAIBADADAgEBMAAwAKCC
B88wggPcMIICxKADAgECAgQKwB5OMA0GCSqGSIb3DQEBCwUAMFoxGjAYBgNVBAoM
EUV4YW1wbGUtcmhjczkzLUNBMRswGQYDVQQLDBJyaGNzOTMtQ0EtYWFra2lhbmcx
HzAdBgNVBAMMFkNBIFNpZ25pbmcgQ2VydGlmaWNhdGUwHhcNMTgwMTA4MjMxNzU3
WhcNMTkxMjI5MjMxNzU3WjAtMSswKQYDVQQDDCJub2NwMTEuaWRtLmxhYi5lbmcu
cmR1Mi5yZWRoYXQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
seWSqjt+LLVNFN34s3WPlKO2GBA7eFmZCwRPIJWOjwHs1TgifptZVO3P56IA6n2M
ZL99fTRlRWuZEuYx2VDNXo0kKzfCia2nQhalu3y5Rs7Bc7ImaBJpmk3pnl/DG/Kz
lk7RK6VEI51ON2GvTFvAqT44JZL4voQG8nvXMsfup7LWY24sOaPxjqPggdUwZgGp
tzMSrWT0XKpmv+KDCiLS4ka7h27DZ1vBNAwX2CYgYb2sUTAF670Csgi7Xdn4sZXz
yu5A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CAdUCAQMwYjBa
MRowGAYDVQQKDBFFeGFtcGxlLXJoY3M5My1DQTEbMBkGA1UECwwScmhjczkzLUNB
LWFha2tpYW5nMR8wHQYDVQQDDBZDQSBTaWduaW5nIENlcnRpZmljYXRlAgQPoz4R
MA0GCWCGSAFlAwQCAQUAoEowFwYJKoZIhvcNAQkDMQoGCCsGAQUFBwwDMC8GCSqG
SIb3DQEJBDEiBCAUMcdEfajYToFHs13DEI1XsyQXIlQJBJm87YcFIS1AxzANBgkq
hkiG9w0BAQsFAASCAQBPvClExyT/DSKAfA1vtjeg9BBHQjtX4X7fkPOOPeQccLsg
sntgMIKjixndpvawMjgNISp3HTqg2YXr9UbG58fPvc26JwnOllCRPXfz6WYdswBz
NQ/FF5FIacF2xG7L2UrusjaxHKyIRM82ZCX5hhvNO8JT5lTqhMO0x4mLH4nrruY9
k0U/HxaGbroQtXnzy59ksk92YZ70sD63DoSxZ/yoMHUUjKMZd1tq3TDcPYP8oOiH
69T+B/WaTpjDYS1grUqFGMFVCfkomynJqbM/Vl8JCXMwhigx7Rv6kIXfL3tbmNsB
HALiYxS9Zjbb+zd70vzVhZTWC35NBmP4dS0US3jd

The response in binary format is stored in /tmp/cmc.dir_server_pkcs10.resp

Expected results:

Debug messages should be displayed in verbose mode only.
SilleBille commented 4 years ago

Posted by mharmsen on 2018-04-10:

Per 10.5.x/10.6 Triage: 10.6

edewata: usability