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

SAML provider connection can save with an invalid metadata url when edited

Details

    Description

      Steps to reproduce 

      1. Configure and enable IdP
      2. Configure SP
        • Do not enable after configuring
        • Make sure to use valid IdP metadata url
      3. Change metadata url to something invalid and save
        • This should cause an error
      4. Change metadata url back to the valid value
      5. Navigate to IdP
      6. Configure Service Provider Connection
        • Make sure to use valid SP metadata url
      7. Change metadata url to something invalid and save
        • This should cause an error

      Expected result:
      Errors happen as described above.

      Actual result:
      The configuration saves and the following warning shows up in console:

      WARN  [http-nio-9080-exec-4][MetadataUtilImpl:117] Unable to get SAML metadata from http://localhost:10080/c/portal/saml/metadata: Connection refused (Connection refused)

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7.17. 
      Portal 7.0.x-private GIT ID: e77b694bc647fdd19e0ebbacd41d6d7fa7ac4868

      Attachments

        Issue Links

          Activity

            People

              brian.lee Brian Lee
              kiana.suetani Kiana Suetani
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 33 weeks, 4 days ago

                Packages

                  Version Package
                  7.0.X
                  7.2.X
                  Master