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

SocialActivity - unsupported document type if 7.2 version is specified

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 7.2.0 GA1
    • None
    • Social Activity
    • None

    Description

      When social-activity.xml configuration doctype is updated to
      <!DOCTYPE liferay-social PUBLIC "-//Liferay//DTD Social 7.0.0//EN" "http://www.liferay.com/dtd/liferay-social_7_0_0.dtd">, it is rejected on deploy:

      {{2019-11-06 08:20:36.845 ERROR [Refresh Thread: Equinox Container: 2b712063-f1f8-438d-a0bd-5d4c2f1af081][SocialActivityExtenderBundleActivator:100] Unable to read social activity for bundle com.xxx.web
      com.liferay.portal.kernel.xml.DocumentException: Unsupported document type -//Liferay//DTD Social 7.2.0//EN
      at com.liferay.portlet.social.util.SocialConfigurationImpl._read(SocialConfigurationImpl.java:180)
      at com.liferay.portlet.social.util.SocialConfigurationImpl.read(SocialConfigurationImpl.java:142)
      at com.liferay.portal.social.activity.extender.internal.SocialActivityExtenderBundleActivator$SocialActivityBundleTracker._readSocialActivity(SocialActivityExtenderBundleActivator.java:139)
      at com.liferay.portal.social.activity.extender.internal.SocialActivityExtenderBundleActivator$SocialActivityBundleTracker.addingBundle(SocialActivityExtenderBundleActivator.java:94)
      at com.liferay.portal.social.activity.extender.internal.SocialActivityExtenderBundleActivator$SocialActivityBundleTracker.addingBundle(SocialActivityExtenderBundleActivator.java:88)
      at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475)
      at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)
      at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
      at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)}}

      I found suspicious code in SocialConfigurationImpl.java:
      {{if (!publicId.equals("-//Liferay//DTD Social 6.1.0//EN") &&
      !publicId.equals("-//Liferay//DTD Social 6.2.0//EN") &&
      !publicId.equals("-//Liferay//DTD Social 7.0.0//EN"))

      { throw new DocumentException( "Unsupported document type " + publicId); }

      }}
       

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            honyk Jan Tošovský
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              18 weeks, 4 days ago

              Packages

                Version Package