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

PortletIdCodec.PORTLET_INSTANCE_KEY_MAX_LENGTH is too long

    Details

      Description

      The PortletIdCodec.PORTLET_INSTANCE_KEY_MAX_LENGTH variable appears to be intended to prevent developers from giving a portlet a portletId that can potentially overflow the length of relevant columns in the database (for instance, the name column in the ResourcePermission table). However, the variable is not being computed properly, and the value of the variable ends up being 290, which is greater than the 255-character length of these columns. This can potentially lead to SQL errors if a developer tries to deploy a custom portlet with a portletId greater than 255 characters in length.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 40 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP33
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                7.1.X
                Master