(file) Return to CIMOperationRequestAuthorizer.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Server

Diff for /pegasus/src/Pegasus/Server/CIMOperationRequestAuthorizer.cpp between version 1.11 and 1.12

version 1.11, 2002/03/30 00:43:24 version 1.12, 2002/04/06 02:52:23
Line 84 
Line 84 
    Uint32 queueId,    Uint32 queueId,
    const String& messageId,    const String& messageId,
    const String& iMethodName,    const String& iMethodName,
    CIMStatusCode code,     const CIMException& cimException)
    const String& description)  
 { {
     PEG_METHOD_ENTER(TRC_SERVER,     PEG_METHOD_ENTER(TRC_SERVER,
                      "CIMOperationRequestAuthorizer::sendIMethodError");                      "CIMOperationRequestAuthorizer::sendIMethodError");
Line 94 
Line 93 
     message = XmlWriter::formatSimpleIMethodErrorRspMessage(     message = XmlWriter::formatSimpleIMethodErrorRspMessage(
         iMethodName,         iMethodName,
         messageId,         messageId,
         code,          cimException);
         description);  
  
     sendResponse(queueId, message);     sendResponse(queueId, message);
  
Line 123 
Line 121 
  
    Uint32 queueId = qis.top();    Uint32 queueId = qis.top();
  
      //
      // If CIMOM is shutting down, return "Service Unavailable" response
      //
      if (_serverTerminating)
      {
          Array<Sint8> message;
          message = XmlWriter::formatHttpErrorRspMessage(
              HTTP_STATUS_SERVICEUNAVAILABLE,
              String::EMPTY,
              "CIM Server is shutting down.  "
                  "Request cannot be processed.");
   
          sendResponse(queueId, message);
          PEG_METHOD_EXIT();
          return;
      }
   
    String userName = String::EMPTY;    String userName = String::EMPTY;
    String authType = String::EMPTY;    String authType = String::EMPTY;
    String nameSpace = String::EMPTY;    String nameSpace = String::EMPTY;
Line 312 
Line 327 
    }    }
  
    //    //
    // if CIMOM is shutting down, return error response  
    //  
    // ATTN:  Need to define a new CIM Error.  
    //  
    if (_serverTerminating)  
    {  
       String description = "CIMServer is shutting down.  ";  
       description.append("Request cannot be processed: ");  
   
       sendIMethodError(  
          queueId,  
          ((CIMRequestMessage*)request)->messageId,  
          cimMethodName,  
          CIM_ERR_FAILED,  
          description);  
   
       PEG_METHOD_EXIT();  
   
       return;  
    }  
   
    //  
    // Do Authorization verification    // Do Authorization verification
    //    //
    UserManager* userManager = UserManager::getInstance();    UserManager* userManager = UserManager::getInstance();
Line 365 
Line 358 
             queueId,             queueId,
             ((CIMRequestMessage*)request)->messageId,             ((CIMRequestMessage*)request)->messageId,
             cimMethodName,             cimMethodName,
             CIM_ERR_FAILED,              PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, description));
             description);  
  
          PEG_METHOD_EXIT();          PEG_METHOD_EXIT();
  
Line 388 
Line 380 
          queueId,          queueId,
          ((CIMRequestMessage*)request)->messageId,          ((CIMRequestMessage*)request)->messageId,
          cimMethodName,          cimMethodName,
          CIM_ERR_ACCESS_DENIED,           PEGASUS_CIM_EXCEPTION(CIM_ERR_ACCESS_DENIED, description));
          description);  
  
       PEG_METHOD_EXIT();       PEG_METHOD_EXIT();
  


Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2