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

Prompt success info when got error in console log

Details

    Description

      Step to reproduce:
      1. Login as admin
      2. Go to System Settings>Security Tools>AntiSamy Sanitizer by Name
      3. Edit com.liferay.knowledge.base.model.KBArticle entry
      4. Change Configuration File URL to '/META-INF/resources/knowledge-sanitizer-configuration.xml'
      5. Click Update

      Expected result: Prompt warning info to inform the user that is a wrong path.
      Actual result: Prompt success info when got error like below in console log.

      2020-06-19 09:38:21.492 ERROR [CM Configuration Updater (Update: pid=com.liferay.portal.security.antisamy.configuration.AntiSamyClassNameConfiguration.61ad4733-36b9-444b-b120-cce9039fa1d8)][LogService:93] [org.osgi.service.cm.ManagedServiceFactory, id=456, bundle=191/file:/E:/source/bundles/osgi/portal/com.liferay.portal.security.antisamy.jar]: Unexpected problem updating configuration com.liferay.portal.security.antisamy.configuration.AntiSamyClassNameConfiguration.61ad4733-36b9-444b-b120-cce9039fa1d8 {org.osgi.service.cm.ConfigurationAdmin}={service.description=Configuration Admin Service Specification 1.6 Implementation, service.id=56, service.bundleid=52, service.scope=bundle, service.vendor=The Apache Software Foundation, service.pid=org.apache.felix.cm.ConfigurationAdmin}
      java.lang.IllegalStateException: Unable to find /META-INF/resources/knowledge-sanitizer-configuration.xml
              at com.liferay.portal.security.antisamy.internal.AntiSamySanitizerPublisher.updated(AntiSamySanitizerPublisher.java:82)
              at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
              at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
              at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1391)
              at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)
              at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)
              at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Issue Links

          Activity

            People

              della.wang Della Wang (Inactive)
              della.wang Della Wang (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 19 weeks ago

                Packages

                  Version Package
                  7.3.4 CE GA5
                  7.3.10 DXP GA1
                  Master