Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-8526

OpenIDM returns wrong status codes on some .NET exceptions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not a defect
    • OpenIDM 5.5.0
    • OpenIDM 5.5.0
    • DotNetConnectorServer 1.5.2.0-SNAPSHOT, OpenIDM 5.5.0-SNAPSHOT (d2a2812), mspowershell 1.4.3.0 dd5fd12df8d1b11f267a73baa5b3b4d33d1cab50, Windows 2012
    • 5
    • OpenIDM Mezzo 79, OpenIDM Sprint 80 Mezzo

    Description

      Status codes from certain exceptions (list below) are different than wih local ICF and remote Java Connector Server.

      ConnectionBrokenException

      powershell exception throw
      throw New-Object Org.IdentityConnectors.Framework.Common.Exceptions.ConnectionBrokenException("Example Message");
      
      IDM exception
      WARNING: Resource exception: 500 Internal Server Error: "Operation UPDATE failed with ConnectorException on system object: TESTEX_CB" 
      org.forgerock.json.resource.InternalServerErrorException: Operation UPDATE failed with ConnectorException on system object: TESTEX_CB 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:154) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:288) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:149) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:616) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153)
      	...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: Example Message 
      	... 112 more 
      Caused by: org.identityconnectors.framework.impl.api.remote.RemoteWrappedException: 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:168) 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:73) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:240) ... 111 more
      
      Expected error code 503, Actual error code 500

      ConnectionFailedException

      powershell exception throw
      throw New-Object Org.IdentityConnectors.Framework.Common.Exceptions.ConnectionFailedException("Example Message");
      
      IDM exception
      WARNING: Resource exception: 500 Internal Server Error: "Operation UPDATE failed with ConnectorException on system object: TESTEX_CF" 
      org.forgerock.json.resource.InternalServerErrorException: Operation UPDATE failed with ConnectorException on system object: TESTEX_CF 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:154) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:288) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:149) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:616) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153)
      	...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: Example Message 
      	... 112 more 
      Caused by: org.identityconnectors.framework.impl.api.remote.RemoteWrappedException: 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:168) 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:73) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:240) ... 111 more
      
      Expected error code 503, Actual error code 500

      ConnectionFailedException

      powershell exception throw
      throw New-Object Org.IdentityConnectors.Framework.Common.Exceptions.ConnectorIOException("Example Message");
      
      IDM exception
      WARNING: Resource exception: 500 Internal Server Error: "Operation UPDATE failed with ConnectorException on system object: TESTEX_CIO" 
      org.forgerock.json.resource.InternalServerErrorException: Operation UPDATE failed with ConnectorException on system object: TESTEX_CIO 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:154) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:288) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:149) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:616) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153)
      	...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: Example Message 
      	... 112 more 
      Caused by: org.identityconnectors.framework.impl.api.remote.RemoteWrappedException: 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:168) 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:73) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:240) ... 111 more
      
      Expected error code 503, Actual error code 500

      InvalidAttributeValueException

      powershell exception throw
      throw New-Object Org.IdentityConnectors.Framework.Common.Exceptions.InvalidAttributeValueException("InvalidAttributeValueException example")
      
      IDM exception
      WARNING: Resource exception: 500 Internal Server Error: "Operation UPDATE failed with ConnectorException on system object: TEST2" 
      org.forgerock.json.resource.InternalServerErrorException: Operation UPDATE failed with ConnectorException on system object: TEST2 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:154) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:288) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:149) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:616) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153)
      	...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: InvalidAttributeValueException example
      	... 112 more 
      Caused by: org.identityconnectors.framework.impl.api.remote.RemoteWrappedException: 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:168) 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:73) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:240) ... 111 more
      
      Expected error code 400, Actual error code 500

      PreconditionFailedException

      powershell exception throw
      throw New-Object Org.IdentityConnectors.Framework.Common.Exceptions.PreconditionFailedException("PreconditionFailedException message");
      
      IDM exception
      WARNING: Resource exception: 500 Internal Server Error: "Operation UPDATE failed with ConnectorException on system object: TEST4" 
      org.forgerock.json.resource.InternalServerErrorException: Operation UPDATE failed with ConnectorException on system object: TEST4 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:154) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:288) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:149) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:616) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153)
      	...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: PreconditionFailedException message
      	... 112 more 
      Caused by: org.identityconnectors.framework.impl.api.remote.RemoteWrappedException: 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:168) 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:73) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:240) ... 111 more
      
      Expected error code 412, Actual error code 500

      PreconditionRequiredException

      powershell exception throw
      throw New-Object Org.IdentityConnectors.Framework.Common.Exceptions.PreconditionRequiredException("PreconditionRequiredException message");
      
      IDM exception
      WARNING: Resource exception: 500 Internal Server Error: "Operation UPDATE failed with ConnectorException on system object: TEST5" 
      org.forgerock.json.resource.InternalServerErrorException: Operation UPDATE failed with ConnectorException on system object: TEST5 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:154) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:288) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:149) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:616) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153)
      	...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: PreconditionRequiredException message
      	... 112 more 
      Caused by: org.identityconnectors.framework.impl.api.remote.RemoteWrappedException: 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:168) 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:73) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:240) ... 111 more
      
      Expected error code 428, Actual error code 500

      OperationTimeoutException

      powershell exception throw
      throw New-Object Org.IdentityConnectors.Framework.Common.Exceptions.OperationTimeoutException("Example Message");
      
      IDM exception
      WARNING: Resource exception: 500 Internal Server Error: "Operation UPDATE failed with ConnectorException on system object: TESTEX_OT" 
      org.forgerock.json.resource.InternalServerErrorException: Operation UPDATE failed with ConnectorException on system object: TESTEX_OT 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:154) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:288) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptConnectorException(ExceptionHelper.java:149) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:616) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153)
      	...
      Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: Example message
      	... 112 more 
      Caused by: org.identityconnectors.framework.impl.api.remote.RemoteWrappedException: 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:168) 
      	at org.identityconnectors.framework.impl.api.remote.RemoteWrappedException.getCause(RemoteWrappedException.java:73) 
      	at org.forgerock.openidm.provisioner.openicf.impl.ExceptionHelper.adaptRemoteWrappedException(ExceptionHelper.java:240) ... 111 more
      
      Expected error code 503, Actual error code 500

      Attachments

        Activity

          People

            emanuel.brici Emanuel Brici [X] (Inactive)
            michal.orlik@profiq.cz Michal Orlik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: