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

XPS detection

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.6
    • Component/s: detector, mime
    • Labels:
      None

      Description

      Tika now detect xps files using only file extension.
      Please modify XPS definition in tika-mimetypes.xml in the following way:

      	<mime-type type="application/vnd.ms-xpsdocument">
      		<glob pattern="*.xps"/>
      		<sub-class-of type="application/zip" />
      		<magic priority="50">
      			<match value="PK\003\004" type="string" offset="0">
      				<match value="Metadata/Job_PT.xml" type="string" offset="30" />
      			</match>
      		</magic>
      	</mime-type>
      

      Thank you,
      Marco

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              101000 Marco Quaranta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: