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

When input 32766 or more characters to Type:ddm-image of Web Content Structure, an error is thrown.

    Details

      Description

      1. Go to Content->Documents and Media, upload a image "test.png" as document.
      2. Go to Content->Web Content->⋮ button > Structures > Add > Input "Name" > Add "Image" field > Save, the structure called "testStructure"
      3. Add a template for this structure "testStructure".
      4. Go to Content->Web Content->Add a web content by using "testStructure".
      5. Input "Title", Select "Image" (step 1 uploaded), and Input "Image Description" (32766 or more characters) - feel free to use the text in the attached document > Save.

      Actual Behavior:
      The following error is thrown, the Image field can't be indexed.

      08:36:31,689 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20113], typ
      e [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_34625], message [java.lang.IllegalArgumentException: Document contains at least on
      e immense term in field="ddm__keyword__34387__Image9hz7_en_US" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.  Please cor
      rect the analyzer to not produce such terms.  The prefix of the first immense term is: '[123, 34, 103, 114, 111, 117, 112, 73, 100, 34, 58, 34, 50, 48, 49, 52,
      48, 34, 44, 34, 110, 97, 109, 101, 34, 58, 34, 55, 48, 120]...', original message: bytes can be at most 32766 in length; got 40174] [Sanitized]
      

      Expected result
      No error is thrown, the Image field can be indexed properly.

        Attachments

          Activity

            People

            • Assignee:
              joyce.wang Joyce Wang
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 25 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP21
                7.0.0 DXP SP4
                7.0.X EE
                7.1.X
                Master