PEP #: 31

TITLE: Merge-local: Incorrect error message generated during Authentication failure.

Version : 1.1

Authors: Sushma Fernandes

State:  Accepted

Type: Design

Created: 14 February 2003

Version History:

Version     

Date     

Authors     

Reason     

1.0     

14 February 2003     

Sushma Fernandes     

Initial proposal     

1.1

14 March 2003

Sushma Fernandes

Changed Status


Abstract: An incorrect error message is returned in case of Authentication failure.


Problem:

In case of Authentication failure current code throws a CannotConnectException. The specific error message returned is “Cannot connect to: Unauthorized access". This needs to be changed to indicate Authentication failure instead.

 

Solution:

Currently the CannotConnectException constructor takes a hostname parameter and prefixes the message “Cannot connect to : “. The constructor will be fixed to accept a message string instead of hostname. There are three occurrences of CannotConnectException throws that will be fixed to reflect this change. In case of authentication failure, the message “Authentication failed.” will be used.

 

Schedule:

Action

Planned

Actual

Comment

PEP Submitted

14 February 2003

14 February 2003

 

PEP Reviewed

21 February 2003

21 February 2003

 

PEP Approved

28 February 2003

7 March 2003

 

Code Committed

4 March  2003

13 March 2003

 

 

Addendum:

This change has been implemented and submitted to the "local" branch. Following is the original COMMIT message associated with the submittal.

From: FERNANDES,SUSHMA (HP-Cupertino,ex1) [sushma_fernandes@hp.com]
Date: Wed 1/29/2003 2:37 PM
Subject: COMMIT-local: Fixed error message generated during Authentication failure.
 

This change affects only the Pegasus "local" branch.

 

Fixed the error message generated during Authentication failure. This change will return an "Authentication failure." message instead of returning "Cannot connect to: Unauthorized access".

 

Updated Files

=============

pegasus/src/Pegasus/Common/Exception.h

pegasus/src/Pegasus/Common/Exception.cpp

pegasus/src/Pegasus/Common/HTTPConnector.cpp

pegasus/src/Pegasus/Client/CIMOperationResponseDecoder.cpp

 

The changes have been tested successfully on HP-UX and Windows.

 

Please let me know if you have any questions or problems related to these changes.

 

Thanks,

Sushma
Content-Disposition: form-data; name="link1"