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

Error is thrown when adding a categories with special characters

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 Beta 1
    • Fix Version/s: 7.0.0 Beta 1
    • Component/s: Categories
    • Labels:

      Description

      Steps to reproduce:

      1. Go to Admin > Content > Categories
      2. Add a New Category
      3. Propeties section, add key or Value with "<script type="text/javascript"> alert("Hello"); </script>"
      4. Save it

      Expected result:
      Unable to add a categories with XSS, should show some fail messages, like 62: "One of your property fields contains invalid characters."

      Actual result:
      Portlet is temporarily unavailable.
      Error is thrown:

      02:11:59,655 ERROR [http-bio-7080-exec-1][render_portlet_jsp:131] null
      com.liferay.portlet.asset.CategoryPropertyKeyException: Invalid key <script type="text/javascript"> alert("Hello"); </script>_KEY_VALUE_ ...
      

        Attachments

          Activity

            People

            Assignee:
            yvonne.han Yvonne Han
            Reporter:
            yvonne.han Yvonne Han
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 22 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 Beta 1