Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-106941

Throw 'A bundle with the same symbolic name (saml-hook) and version (7.3.10.1) is already installed' when configure CertificateAndPrivateKey

    Description

    Steps To Reproduced:

     1. Start two clean bundle.

     2. Navigate to the SAML Admin page

     3. Under the General tab, select Identity Provider for the SAML Role and enter an Entity Id

     4. Save

     5. Fill out the Certificate and Private Key information

     6. Save

    Excepted Result:

    Certificate and Private Key created successfully.

    Actual Result:

    Occurred on master&72&71 acceptance CI tester sometimes, Can't reproduced on my local.

    [exec] com.liferay.poshi.runner.PoshiRunner > testLocalFile.SAML#ViewSingleLogoutAndForceAuthWithMultipleSPs STANDARD_OUT
     [exec] 
     [exec] ###
     [exec] ### LocalFile.SAML#ViewSingleLogoutAndForceAuthWithMultipleSPs
     [exec] ###
     [exec] 
     [exec] 
     [exec] com.liferay.poshi.runner.PoshiRunner > testLocalFile.SAML#ViewSingleLogoutAndForceAuthWithMultipleSPs STANDARD_ERROR
     [exec] Starting ChromeDriver 2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7) on port 11858
     [exec] Only local connections are allowed.
     [exec] Jan 12, 2020 4:07:36 PM org.openqa.selenium.remote.ProtocolHandshake createSession
     [exec] INFO: Detected dialect: OSS
     [exec] 
     [exec] com.liferay.poshi.runner.PoshiRunner > testLocalFile.SAML#ViewSingleLogoutAndForceAuthWithMultipleSPs STANDARD_OUT
     [exec] LIFERAY_ERROR: Table 'lportal.Release_' doesn't exist
     [exec] LIFERAY_ERROR: A bundle with the same symbolic name (saml-hook) and version (7.2.10.12) is already installed. Updating this bundle instead. 
     [exec] Configures Liferay SAML as the IdP and Liferay SAML as the SP.
     [exec] 00:08:16,643 WARN [http-nio-8080-exec-7][GeneralTabDefaultViewDisplayContext:125] Unable to get local entity certificate: Entity ID cannot be null or empty
     [exec] LIFERAY_ERROR: Unable to get local entity certificate: Entity ID cannot be null or empty
     [exec] 00:08:42,047 INFO [http-nio-8080-exec-4][FileSystemKeyStoreManagerImpl:96] Creating a new SAML keystore at /opt/dev/projects/github/liferay-portal-7.2.x/bundles/data/keystore.jks
     [exec] 2020-01-13 00:09:32.949 WARN [http-nio-9080-exec-4][GeneralTabDefaultViewDisplayContext:125] Unable to get local entity certificate: Entity ID cannot be null or empty
     [exec] 2020-01-13 00:09:57.161 INFO [http-nio-9080-exec-6][FileSystemKeyStoreManagerImpl:96] Creating a new SAML keystore at /opt/dev/projects/github/liferay-portal-7.2.x/bundles-1/data/keystore.jks
     [exec] Log out of Liferay Portal.
     [exec] 2020-01-13 00:11:39.544 WARN [http-nio-10080-exec-2][GeneralTabDefaultViewDisplayContext:125] Unable to get local entity certificate: Entity ID cannot be null or empty
     [exec] 2020-01-13 00:12:05.917 INFO [http-nio-10080-exec-6][FileSystemKeyStoreManagerImpl:96] Creating a new SAML keystore at /opt/dev/projects/github/liferay-portal-7.2.x/bundles-2/data/keystore.jks
     [exec] 2020-01-13 00:12:05.924 INFO [http-nio-10080-exec-6][SamlAdminPortlet:77] User limit of inotify instances reached or too many open files
     [exec] 
     [exec] BUILD FAILED: Element is not present at "//a[contains(@href,'SIGNING')]/span[contains(.,'Download Certificate')]"
     [exec] /opt/dev/projects/github/liferay-portal-7.2.x/portal-web/test/functional/com/liferay/portalweb/macros/SAMLRole.macro[configureCertificateAndPrivateKey]:61
     [exec] /opt/dev/projects/github/liferay-portal-7.2.x/portal-web/test/functional/com/liferay/portalweb/macros/SAML.macro[configureLiferaySAMLAsSP]:72
     [exec] /opt/dev/projects/github/liferay-portal-7.2.x/portal-web/test/functional/com/liferay/portalweb/tests/coreinfrastructureee/security/SAML.testcase[ViewSingleLogoutAndForceAuthWithMultipleSPs]:1021

    Full console log:

    https://testray.liferay.com/reports/production/logs/test-1-6/1578870058644/test-portal-acceptance-pullrequest(7.2.x)/142/functional-tomcat90-mysql57-jdk8/40/0/jenkins-console.txt.gz

      Attachments

        Activity

          People

          Assignee:
          brian.lee Brian Lee
          Reporter:
          della.wang Della Wang (Inactive)
          Participants of an Issue:
          Recent user:
          Brian Wulbern
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            1 year, 14 weeks, 6 days ago

              Packages

              Version Package