[ 
https://issues.apache.org/jira/browse/TIKA-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16654952#comment-16654952
 ] 

Martin commented on TIKA-2744:
------------------------------

Hello,

about the background:

In our company we are using ServiceNow. ServiceNow using Tika for validating 
content and extension of files. Because we are transferring data between Jira 
and ServiceNow, we are using XML files. (if you export this page to xml, it 
will export it to application/rss+xml format with .xml extension)  And such 
combination doesn't pass validation process. I assume, that somewhere in Tika 
you have compactor what mime type can have what extension. 

 

This is support response:

*As you can see, platform correctly identifies your attachment type as* 
*application/rss+xml* *but because your file extension is* *.xml**, it can not 
match to RSS properly. I have changed the extension to* *.rss* *and I was able 
to successfully attach the file to any record.*
 
 *You are correct on your argument that RSS is basically and XML, but since XML 
can bear different sub types like RSS, SVG, XSD, SOAP, OOXML, etc. platform is 
trying to map the correct extension to the correct content type, which is 
failing for you at the moment since the extension does not reflect the truth.*
 

{{... WARNING *** WARNING *** Security restricted: MIME type mismatch for file: 
TestIssues_jira.xml. Expected type:application/xml, Actual type: 
application/rss+xml}}

 

> rss+xml doesnt accept files with .xml extension
> -----------------------------------------------
>
>                 Key: TIKA-2744
>                 URL: https://issues.apache.org/jira/browse/TIKA-2744
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Martin
>            Priority: Major
>         Attachments: rsstest.xml
>
>
> Hello, 
> if i try to validate application/rss+xml file with .xml extension and it 
> fails. 
> I would say, that is a bug.
> I think the .RSS extension is only until version 1.0. From 2.0 is rss xml 
> based and it should(could) have .xml extension:
> Source:
> https://www.w3schools.com/xml/xml_rss.asp 
> "Get Your RSS Feed Up On The Web
> Having an RSS document is not useful if other people cannot reach it.
> Now it's time to get your RSS file up on the web. Here are the steps:
> 1. Name your RSS file. Notice that the file must have an .xml extension."
> or specification on Harvard university:
> https://cyber.harvard.edu/rss/rss.html
> there is example:
> "Its value is the name of the RSS channel that the item came from, derived 
> from its <title>. It has one required attribute, url, which links to the 
> XMLization of the source.
> Example of file:



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to