Details

      Description

      Steps to reproduce:

      1. Go to System Settings -> Assets -> OpenNLP Text Auto Tagging.
      2. Enable it for Documents.
      3. Go to the document library.
      4. Upload a text file.

      Expected: The document is tagged (if tags are found) and no errors are displayed in the logs.
      Actual: The auto tagger fails with the following error in the logs:

      2019-06-27 14:43:51.240 ERROR [liferay/asset_auto_tagger-1][OpenNLPDocumentAssetAutoTagProvider:70] java.lang.ClassCastException: com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry cannot be cast to com.liferay.document.library.kernel.model.DLFileEntry
      java.lang.ClassCastException: com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry cannot be cast to com.liferay.document.library.kernel.model.DLFileEntry
      	at com.liferay.document.library.internal.asset.auto.tagger.text.extractor.DLFileEntryTextExtractor.extract(DLFileEntryTextExtractor.java:35)
      	at com.liferay.asset.auto.tagger.opennlp.internal.OpenNLPDocumentAssetAutoTagProvider.getTagNames(OpenNLPDocumentAssetAutoTagProvider.java:63)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  38 weeks, 5 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP1
                  7.2.X
                  7.2.1 CE GA2
                  Master