Support Article

HTTP 401 error with CMIS connection

SA-24670

Summary



User receives a HTTP 401 (‘unauthorized’) error when testing our PRPC CMIS Connector against a “FileNet” Content Managements System. User has confirmed using correct credentials.

Error Messages



2016-03-12 09:42:33,121 [ WebContainer : 5] [TABTHREAD2] [ ] [ XX:01.01.02] ( connect.cmis.CMISConnector) ERROR xxx| - Failed to retrieve repositories for XXXXCMIS
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Error: org.apache.axis2.AxisFault: HTTP ( 401 ) Unauthorized address : http://xxxxx/fncmis/RepositoryService
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:78)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:90)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:135)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:112)
at com.pega.pegarules.integration.engine.internal.connect.cmis.CMISConnector.getCMISRepositories(CMISConnector.java:696)
at com.pega.pegarules.integration.engine.internal.connect.cmis.CMISConnector.getCMISRepositories(CMISConnector.java:726)
at com.pega.pegarules.integration.engine.internal.util.PRServiceUtils.getCMISRepositories(PRServiceUtils.java:3248)

[…]
Caused by:
javax.xml.ws.soap.SOAPFaultException: org.apache.axis2.AxisFault: HTTP ( 401 ) Unauthorized address : http://xxxxxx/fncmis/RepositoryService


Steps to Reproduce

  1.  In PRPC, create a SOAP server with url and credentials provided by filenet. This is required as CMIS connectors are connecting over a SOAP connection.
  2. In PRPC, create CMIS connector using the SOAP server created. Then test the CMIS connector connection.


Root Cause



A defect in Pegasystems’ code or rules.
PRPC did not send an HTTP cookies which were set by FileNet.


Resolution



Apply HFix-28146.
 

Published June 17, 2016 - Updated August 18, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.