Hey Chuck, Gregory,<br><br>I&#39;ve also tested the patch. It successfully secures the data, but it also silently removes the non editable contacts from contact lists as the list is viewed.&nbsp; Are you or are you not supposed to be able to add contacts from one
address book to a contact list in another address book? If not then users should also no longer be able to add contacts to contact lists from other address books.<br><br>Regards,<br><br>Peter Paul<br><br><div class="gmail_quote">
On Feb 7, 2008 2:37 AM, Gregory Colpart &lt;<a href="mailto:reg@evolix.fr" target="_blank">reg@evolix.fr</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Chuck,<br><br>On Tue, Feb 05, 2008 at 03:25:10PM -0500, Chuck Hagenbuch wrote:<br>&gt; Hi Gregory.<br>

&gt;<br>&gt; Can you please test this patch on Turba 2.1.x?<br>&gt;<br>&gt; I have a more comprehensive update for Turba 2.2.x and HEAD which<br>&gt; cleans up the _read() function&#39;s API a bit more but has the same<br>

&gt; effect. In my tests it denies access properly now.<br>&gt;<br>&gt; Also, if you&#39;re curious: the issue is that you can access other user&#39;s<br>&gt; contacts in the same database table (&quot;source&quot;) by specifying your own<br>

&gt; source id in the URL, but a contact id of another user&#39;s contact. I<br>&gt; can&#39;t reproduce or find any issues other than that - can you confirm?<br>&gt;<br>&gt; Thanks,<br>&gt; -chuck<br>&gt;<br>&gt;<br>&gt; Index: lib/Driver/sql.php<br>

&gt; ===================================================================<br>&gt; RCS file: /repository/turba/lib/Driver/sql.php,v<br>&gt; retrieving revision <a href="http://1.59.10.17" target="_blank">1.59.10.17</a><br>
&gt; diff -u -r1.59.10.17 sql.php<br>
&gt; --- lib/Driver/sql.php &nbsp; &nbsp; &nbsp; &nbsp;30 Nov 2006 21:33:47 -0000 &nbsp; &nbsp; &nbsp;<a href="http://1.59.10.17" target="_blank">1.59.10.17</a><br>&gt; +++ lib/Driver/sql.php &nbsp; &nbsp; &nbsp; &nbsp;5 Feb 2008 20:35:43 -0000<br>&gt; @@ -182,6 +182,15 @@<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$where = $criteria . &#39; = ?&#39;;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$values[] = $this-&gt;_convertToDriver($id);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp;if (isset($this-&gt;map[&#39;__owner&#39;])) {<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ($this-&gt;usingShares) {<br>

&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$owner = $this-&gt;share-&gt;get(&#39;uid&#39;);<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else {<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$owner = Auth::getAuth();<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$where .= &#39; AND &#39; . $this-&gt;map[&#39;__owner&#39;] . &#39; = ?&#39;;<br>

&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$values[] = $this-&gt;_convertToDriver($owner);<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp;}<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!empty($this-&gt;_params[&#39;filter&#39;])) {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$where .= &#39; AND &#39; . $this-&gt;_params[&#39;filter&#39;];<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&gt;<br><br>I test your patch with success. I have now a &quot;no results&quot; message<br>when I try to edit a contact owned by a different user.<br><br>(Note: I Cc: Debian BTS because it&#39;s an unembargoed bug ;)<br>

<br>Regards,<br>--<br>Gregory Colpart &lt;<a href="mailto:reg@evolix.fr" target="_blank">reg@evolix.fr</a>&gt; &nbsp;GnuPG:1024D/C1027A0E<br>Evolix - Informatique et Logiciels Libres <a href="http://www.evolix.fr/" target="_blank">http://www.evolix.fr/</a><br>

<font color="#888888"><br><br><br>--<br>To unsubscribe, send mail to <a href="mailto:464058-unsubscribe@bugs.debian.org" target="_blank">464058-unsubscribe@bugs.debian.org</a>.<br></font></blockquote></div><br>