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

ResourceActionsUtil warns that community-defaults element is deprecated, but DTD still specifies it

    Details

      Description

      When porting a portlet from 6.0 to 6.1, I was getting this error message:

      01:59:50,887 WARN [ResourceActionsUtil:895] The community-defaults element is deprecated. Use the site-defaults element instead.

      In order to fix it, I went into my resource-actions/default.xml and changed the community-defaults tags to site-defaults. After this, the portlet wouldn't deploy because the resource actions couldn't be validated. I then checked the DTD for 6.1, and found that community-defaults is still in there, but the site-defaults element is not.

      There is a discrepancy in the descriptive text that seems to indicate it might have been in there, but the element that follows the descriptive text is site-member-defaults, not site-defaults:

      <!--
      The site-defaults element specifies the actions that site members are
      permitted to perform by default.
      -->
      <!ELEMENT site-member-defaults (action-key*) >

      The DTD needs to be fixed for 6.1 so that site-defaults is there and can be used.

      Workaround is to used the old community-defaults element in resource actions files.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              richard.sezov Rich Sezov
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 20 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2