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

Wrong error when creating tag with invalid character via REST service

    Details

    • Branch Version/s:
      7.2.x, 7.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      3

      Description

      To reproduce, try to send POST request to http://localhost:8080/o/headless-admin-taxonomy/v1.0/sites/<SITE_ID>/keywords with body that contains invalid characters. For example:

      {
          "name": "Invalid Tag <>"
      }
      

       

       Expected result

      Response code 400 Bad Request with message pointing at the invalid character(s)

       Actual result

      Response code 500 Internal Server Error with body

      & ' @ \ ] } : , = > / < 
       [ { % | + # ` ? " 
       ; / * ~
      

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              milen.dyankov Milen Dyankov (Inactive)
              Participants of an Issue:
              Recent user:
              Jason Pince
              Engineering Assignee:
              Javier Gamarra
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                51 weeks, 3 days ago

                Packages

                Version Package
                7.1.X
                7.2.10 DXP FP3
                7.2.X
                7.2.1 CE GA2
                7.3.0 CE GA1
                Master