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

Appending file extensions to a valid search entry in the Item Selector returns all (or most) DM images

    Details

      Description

      Steps to reproduce:

      1. Add several images to DM with different file names and extensions (jpg, jpeg, png, etc.); for example, add Document_1.jpg, Document_1.png, Document_2.jpeg, Document_3.png
      2. Navigate to Blogs > Add a blog entry
      3. Add a cover image
      4. Navigate to Documents and Media in the Item Selector
      5. Search for Document_1 (this is what I mean by valid search entry)
      6. Assert only Document_1.jpg and Document_1.png appear
      7. Clear search
      8. Search for asd.jpg
      9. Assert no results appear
      10. Search for Document_1.jpg

      Expected result:
      Only Document_1.jpg appears as the search result.

      Actual result:
      Document_1.jpg and Document_1.png appear.

      This behavior is reproducible with other file extensions (jpg, jpeg), though searching for png seems to return less results.

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7.
      Portal master GIT ID: 78f4982e183d3ea9992c53f7979a582639885507

        Attachments

        1. es-query.json
          24 kB
        2. jpeg.PNG
          jpeg.PNG
          1.35 MB
        3. jpg.PNG
          jpg.PNG
          1.20 MB
        4. png.PNG
          png.PNG
          734 kB
        5. results.jpeg
          results.jpeg
          188 kB

          Issue Links

            Activity

              People

              • Assignee:
                austin.chiang Austin Chiang
                Reporter:
                austin.chiang Austin Chiang
                Participants of an Issue:
                Recent user:
                Charles Cohick (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  44 weeks ago

                  Packages

                  Version Package
                  Master