<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
owncloud 4.0.4<br>
I couldn't see preview of picture, pdf, .., picture app was breaked,
...<br>
<br>
All mimetype from mimetypes.list.php aren't writing in
db->oc_fscache. <br>
<br>
In lib/helper.php line 460, strncmp function is used.<br>
<br>
If i replace : <code>
<pre class="html4strict" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">if (!strncmp(PHP_OS, "WIN", 3)) {</div></li></ol></pre>
</code> by : <code>
<pre class="html4strict" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">if (strncmp(PHP_OS, "WIN", 3)!=0) {</div></li></ol></pre>
</code> and then delete all db->oc_fscache entries <br>
this solves my problem. <br>
<br>
I'm not sure, but i think that a lot of people are concerned by this
little bug.<br>
I opened a bug report :
<a class="moz-txt-link-freetext" href="http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1253">http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1253</a><br>
<br>
Sorry for the noise if it's already set.<br>
<br>
Yoh<br>
</body>
</html>