Hi Sebastian,
On 08/07/14 09:53, Sebastian Schaffert wrote:
Since we are serving all resources through our own filter, I don't think it
is a Tomcat issue. Thanks to Joshua for pointing out this problem, it
should be easy to fix this way. Unfortunately, mime-util is not very much
maintained, so maybe we should find a different way to identify the MIME
type of a file (Tika?).
Right, it might come from our resource filter implementation...
Is there already a Jira issue for this topic?
Yes, MARMOTTA-499. I've just pushed a new topic branch with a tentative
solution based on both Java NIO and Apache Tika instead of mime-utils.
Since it is not so simple to reproduce, Joshua, do you think you can
help us to debug it? You just need to:
$ git clone -b MARMOTTA-499
https://git-wip-us.apache.org/repos/asf/marmotta.git MARMOTTA-499
$ cd MARMOTTA-499
$ mvn clean install -DskipTests
$ cd launchers/marmotta-webapp
$ mvn tomcat7:run
And then check at http://localhost:8080/ if in your system styles are
correctly rendered with the new implementation of mimetype detection.
Thanks so much for your collaboration.
Cheers,
--
Sergio Fernández
Senior Researcher
Knowledge and Media Technologies
Salzburg Research Forschungsgesellschaft mbH
Jakob-Haringer-Straße 5/3 | 5020 Salzburg, Austria
T: +43 662 2288 318 | M: +43 660 2747 925
sergio.fernan...@salzburgresearch.at
http://www.salzburgresearch.at