Bug 2124890

Summary: wsmancli: Improve handling of HTTP 401 Unauthorized [rhel-8.6.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: wsmancliAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Evgeny Fedin <efedin>
Severity: medium Docs Contact:
Priority: urgent    
Version: 8.6CC: efedin, fkrska, ovasik, vcrhonek, yoliynyk
Target Milestone: rcKeywords: EasyFix, Patch, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wsmancli-2.6.0-10.el8_6 Doc Type: Bug Fix
Doc Text:
When connecting to a service that requires authentication, the wsmancli command (command line interface for managing systems using Web Services Management protocol) returned an error message immediately after receiving an HTTP 401 Unauthorized response (for example, because of incomplete credentials). The "Authentication failed, please retry" message was displayed, and the user was prompted for both the username, even if had been already provided, and the password. The handling of authentication was improved to better conform to RFC 2616. No error message is displayed on first authentication attempt. The command requires to input only credentials that were not provided already. Also the error message is printed only when the credentials were provided and authentication failed.
Story Points: ---
Clone Of: 2105316 Environment:
Last Closed: 2022-10-25 09:32:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2105316    
Bug Blocks:    

Comment 8 errata-xmlrpc 2022-10-25 09:32:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (wsmancli bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7124