[ https://issues.apache.org/jira/browse/TIKA-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965174#comment-14965174 ] Alessandro De Angelis commented on TIKA-1379: --------------------------------------------- ... > error in Tika().detect for xml files with xades signature > --------------------------------------------------------- > > Key: TIKA-1379 > URL: https://issues.apache.org/jira/browse/TIKA-1379 > Project: Tika > Issue Type: Bug > Components: detector > Affects Versions: 1.4 > Reporter: Alessandro De Angelis > Labels: new-parser > Fix For: 1.12 > > > we tried to get the mime type of an xml file with xades signature embedded. the result is "text/html" and not the expected "text/xml" or "application/xml". > here is an example of the xml file: > {code} > > > 00094853 0003 2 > 2013-09-23 > 2013-09-23 > D69017 > FILOSOFIA DELLA SCIENZA > D69 > TEATRO E ARTI VISIVE > > 1233456 > PAOLINO > PAPERINO > 23.0 > 23 > > > > 2012 > 6.0 > > 99999 > جامعة البندقية - TEST > Verbale_XXXX3 > QUI QUO QUA > D69017 > FILOSOFIA DELLA SCIENZA > D69 > TEATRO E ARTI VISIVE > QUI QUO QUA > 26-09-2013 09:55:53 CEST(+0200) > > XXXX3 > 11.09.03 > > > > > > > > > /descendant::ds:Signature > > > > > > > > > > > > > > > > > > Dichiarazione conformità Verbale Esame > > > Verbalizzazione esame > > > > > > > > > > > > > > > > > > > > > > > > > >


DICHIARAZIONE DI CONFORMITÀ

Il sottoscritto , docente di

>
       > > PREMESSO CHE >
 
>
>
 
>
>
> DICHIARA >
 
>
- (**)
>
- che il verbale in calce, firmato digitalmente dal sottoscritto, sostituisce a tutti gli effetti di legge quello precedentemente firmato, indicato nella linea precedente e conservato a norma
>
- A maggior tutela del firmatario viene riportata la versione originale e gli estremi dell'ultima versione firmata
>
 
>
>
>
> >

>
> > > >
> > >
> > > > >

Documento Generato in data: dal sistema con versione
>
>
> > >

> > > > > > > > > > > > > > > > > > > >
(**)Estremi verbale sostituito
Data Documento:
Data Firma Documento: xsl:value-of select="$sostituzione_root/DATA_FIRMA_DOCUMENTO_SOSTITUITO"/>
Imponta Documento ():
>
> > > >


>
VERBALE D'ESAME


>
ATTIVITA' DIDATTICA:
> >
UNITA' DIDATTICA:
>
>
>
CORSO:
>
APPELLO DEL
>
DOCENTE:
>

> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
MatricolaCognomeNomeVoto(*)CFUData esameVerbale N.
> Corso di studi [Codice]: [] >
> > > > > > [], > > > > Attivita' didattica [Codice]: > [] > > >
> Unita' didattica [Codice]: >
> Domande d'esame:

> >
> (*) Codifica di sistema : [voto:][causale:] > >

>
COMMISSIONE
> >
>
>
>
>
>
> >
> > TJZV1fkO7me+9cwfgO8PB/711aBqCCVEnmpoyesGJ10= >
> > > > /descendant::ds:Signature > > > > > e7b+kmdfPuly923kod7ZiwXR4/0GZeqDqc/0jBGboLQ= > > > > > > > By8pd2dVbxlVQLBsVTJr4Owak9qZp6uPwL5FWltD39w= > > > > > > > avLFaD5rNypP3GLG7z8/k7q99JhjJy7ipVjaN5gbYrs= > >
> > LKeSxNvEsCI0m+xAOAVkcBAbDdnNhExz+khmn8gYN/OaspYEQXXCfEx5R1eb+Zh30LovGIZpjIYc > r7fAJyA1WJlXvSlXP/XGH99E5WYymCmJhar+uMMCIz1PRXvaXdGNvfVCMNPYgIGQEX8HXFiUG7ha > qwkfhn3xcJWg0RqnJRk= > > > > > MIIFWTCCBEGgAwIBAgIDMiomMA0GCSqGSIb3DQEBCwUAMIGDMQswCQYDVQQGEwJJVDEVMBMGA1UE > CgwMSU5GT0NFUlQgU1BBMRQwEgYDVQQFEwswNzk0NTIxMTAwNjEiMCAGA1UECwwZQ2VydGlmaWNh > dG9yZSBBY2NyZWRpdGF0bzEjMCEGA1UEAwwaSW5mb0NlcnQgRmlybWEgUXVhbGlmaWNhdGEwHhcN > MTMwNzA5MDkwNDQyWhcNMTYwNzA5MDAwMDAwWjCBkDELMAkGA1UEBhMCSVQxFTATBgNVBAoMDE5P > TiBQUkVTRU5URTEOMAwGA1UEBAwFQ0VMTEkxDz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