Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-3445

Extension reading it as eml instead of txt when headers are not present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.25, 1.26
    • 1.24.1
    • core, detector, metadata, mime, parser
    • None
    • Important

    Description

      The attached txt file doesn't have starting headers it is treating as .eml file but it should be .txt.

      stream = TikaInputStream.get(fis = new FileInputStream(paths));stream = TikaInputStream.get(fis = new FileInputStream(paths)); metadata.add(Metadata.RESOURCE_NAME_KEY, paths); MediaType mediaType = detector.detect(stream, metadata);

      MediaType detect(InputStream input, Metadata metadata) throws IOException;

      Attachments

        Activity

          People

            Unassigned Unassigned
            Vamsi452 Tika User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: