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

Global asset tags are being duplicated when assigning them to a non-global asset

    Details

    • Fix Priority:
      4

      Description

      1. Start a vanilla Liferay Portal
      2. Go to Control Panel and change the administration scope from the default site (Liferay) to Global
      3. Go to Tags and add a global scoped tag e.g. "tag-global"
      4. Switch the scope back to Liferay site and go to Web Content
      5. Add a web content and assign "tag-global" to it
      6. Publish the web content and go to Tags under the Liferay site
      7. "tag-global" got created with the same name under the site

      The root cause is that the code does not check if the assigned tag exist with global scope, only within the current site, therefore it handles it as if it was just added by the user and creates it.

      Another case for the same issue:

      1. Start a vanilla Liferay Portal
      2. Go to Control Panel and change the administration scope from the default site (Liferay) to Global
      3. Go to Tags and add a global scoped tag e.g. "tag-global"
      4. Go to the home page and add an Asset Publisher portlet
      5. Open the configuration panel of the portlet and add Global to it's scope
      6. At the asset filter section, add the "tag-global" tag
      7. Save the configuration and the tag will be duplicated under the Liferay site again

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 6 weeks ago

                  Packages

                  Version Package
                  6.1.20 EE GA2
                  6.1.30 EE GA3
                  6.2.0 CE M5