Hi,<div><br></div><div>There is a bug handling filex files when there are parenthesis in the url and you are doing a query using the fullpath.</div><div><br></div><div>This are steps to reproduce the bug.</div><div><br></div>
<div>1) Create a file named "test_(fail).txt" in an external HD, I created the file "/media/OneTouch4/test_(fail).txt".</div><div>2) If the location is not indexed you must use nepomukindexer to index the file.</div>
<div>3) Open NepSak and execute next queries:</div><div><br></div><div>Query 1:</div><div>
<p style="margin:0px"><font face="courier new, monospace"><b>SELECT</b> <b>DISTINCT</b> *</font></p>
<p style="margin:0px"><font face="courier new, monospace"><b>WHERE</b> {</font></p>
<p style="margin:0px"><span style="font-family:'courier new',monospace"> ?uri nie:url ?url . </span><b style="font-family:'courier new',monospace">FILTER</b><span style="font-family:'courier new',monospace">(</span><b style="font-family:'courier new',monospace">REGEX</b><font face="courier new, monospace">(?url, "test_\\(fail\\).txt"^^xsd:string, 'i')) </font></p>
<p style="margin:0px"><span style="font-family:'courier new',monospace">}</span></p>
<p style="margin:0px"><br></p></div><div><div>Query 2:</div><div><p style="margin:0px"><font face="courier new, monospace"><b>SELECT</b> <b>DISTINCT</b> *</font></p><p style="margin:0px"><font face="courier new, monospace"><b>WHERE</b> {</font></p>
<p style="margin:0px"><span style="font-family:'courier new',monospace"> ?uri nie:url ?url .</span><span style="font-family:'courier new',monospace"> </span><b style="font-family:'courier new',monospace">FILTER</b><span style="font-family:'courier new',monospace">(</span><b style="font-family:'courier new',monospace">REGEX</b><font face="courier new, monospace">(?url, "/media/OneTouch4/test_\\(fail\\).txt"^^xsd:string, 'i'))</font></p>
<p style="margin:0px"><span style="font-family:'courier new',monospace">}</span></p></div></div><div><font face="courier new, monospace"><br></font></div><div>Query 3:</div><div><p style="margin:0px"><font face="courier new, monospace"><b>SELECT</b> <b>DISTINCT</b> *</font></p>
<p style="margin:0px"><font face="courier new, monospace"><b>WHERE</b> {</font></p><p style="margin:0px"><span style="font-family:'courier new',monospace"> ?uri nie:url ?url . </span><b style="font-family:'courier new',monospace">FILTER</b><span style="font-family:'courier new',monospace">(</span><b style="font-family:'courier new',monospace">REGEX</b><font face="courier new, monospace">(?url, "file:///media/OneTouch4/test_\\(fail\\).txt"^^xsd:string, 'i'))</font></p>
<p style="margin:0px"><span style="font-family:'courier new',monospace">}</span></p><p style="margin:0px"><span style="font-family:'courier new',monospace"><br></span></p><p style="margin:0px"><span style="font-family:'courier new',monospace"><b>Notes:</b></span></p>
<p style="margin:0px"><span style="font-family:'courier new',monospace">1) I'm using KDE 4.8.3, Soprano 2.7.5 and Virtuoso 6.1.5 openSUSE official packages. </span></p><p style="margin:0px"><font face="courier new, monospace"><br>
</font></p></div><div>
<font face="courier new, monospace"><b>Results:</b></font></div><div>1) Query 1 works but queries 2 and 3 don't.</div><div>2) If url has not parenthesis, and is a filex file, queries 1 and 3 works but query 2 fails. So, seems like with filex files "file:///" prefix is mandatory but with normal files don't. This is not a problem when you know this behavior but could be a serious problem if you don't know.</div>
<div><div>3) If url is not a filex file all queries works.</div></div><div><br></div><div>-- <br>Best wishes,<div>Ignacio</div><div><br></div><br>
</div>