xor at freenetproject.org a ?crit :
> Author: xor
> Date: 2008-10-27 22:24:24 +0000 (Mon, 27 Oct 2008)
> New Revision: 23121
> 
> Modified:
>    trunk/plugins/WoT/WoT.java
> Log:
> Add functions which need to be implemented for FMS.

Oops, this is not really the way the plugin is supposed to be used.
Explaination follows.

> Modified: trunk/plugins/WoT/WoT.java
> ===================================================================
> --- trunk/plugins/WoT/WoT.java        2008-10-27 21:55:28 UTC (rev 23120)
> +++ trunk/plugins/WoT/WoT.java        2008-10-27 22:24:24 UTC (rev 23121)
> @@ -731,6 +731,16 @@
>               return seed;
>       }
>       
> +     public ObjectSet<OwnIdentity> getAllOwnIdentities() {
> +             // FIXME: Implement this, needed by FMS.
> +             throw new UnsupportedOperationException();
> +     }

The client is supposed to know which identity he uses. If we provide
such feature, this is an anonymity breach. Example :

I'm sharing my freenet node with someone that is on the same LAN
(because of bandwith limitation). We can keep each other
inserts/downloads secret by not using the public queue. If a client is
able to ask for every own identities, I can easily know what are my
friend's identities.

Of course, the web interface has to be modified accordingly. The current
ui is only for debugging. The final one should offer an authentication
form (maybe integrated to Fproxy's interface) as soon as there is more
than one OwnIdentity.

> +     public ObjectSet<Identity> getAllIdentities() {
> +             // FIXME: Implement this, needed by FMS.
> +             throw new UnsupportedOperationException();
> +     }
> +     

Client should not ask for every identities but only for those he is
interrested in. IE : those that are in his context and that have a
positive score. This is what GetIdentitiesByScore FCPplugin message is for :

FCPPluginMessage
Identifier=FMSplugin
PluginName=plugins.WoT.WoTplugin
Param.Message=GetIdentitiesByScore
Param.TreeOwner=USK at ...
Param.Select=+|0|-
Param.Context=FMSplugin
EndMessage

FCPPluginReply
PluginName=plugins.WoT.WoTplugin
Identifier=moohmooh
Replies.Message=Identities
Replies.Identity1=USK at ...
Replies.Identity2=USK at ...
Replies.Identity3=USK at ...
...
EndMessage


Generally, a client should not try to store the entire WoT : it should
ask regularily to the WoTplugin. It is less work for the client
developper and a guarantee of using up-to-date informations.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081104/ace7e2a1/attachment.pgp>

Reply via email to