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

MimeTypesImpl leaves TikaInputStream open

    Details

      Description

      In the getContentType method the expects an InputStream, TikaInputStream is created on the fly without assigning it to a variable and as a result left open.

      Aside from the fact that it is a bad practice, this becomes a real problem when there is a process that tries to retrieve content types for a lot of files in one run such as VerifyDocumentLibrary.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joyce.wang Joyce Wang
                Reporter:
                zberentey Zsolt Berentey
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 4 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1