>From "Mark J. Roberts" <[EMAIL PROTECTED]>
>So I insert a redirect like
>
>insert -createUpdate yes -increment 60 -htl 2 
SSK@H-lqMDiPY2yDwOtFBrN~ShrDyjsdFtZItBbOTzk19w/wubba
>
>and what gets inserted is
>
>Metadata:
>Redirect
>increment=60
>baseline=20000101000000
>End
>freenet:SSK@H-lqMDiPY2yDwOtFBrN~ShrDyjsdFtZItBbOTzk19w/wubba
>
>which obviously won't work because it used the private key instead of the
>public key! If I use -redirect and redirect to the proper SSK
>("SSK@inYPV2zz1qeLBUf7wW5Vp6nzaSwQAgE/wubba") it works fine.
>

Yup, that's broken.

>I don't want to kludgify InsertClient, but
>
>if (redir == null) {
>    updateFile = ClientUtil.makeRedirect(uri, fs);
>} else {
>    updateFile = ClientUtil.makeRedirect(new FreenetURI(redir), fs);
>}
>
>is wrong. You need to translate uri into its public-keyed counterpart. I
>don't know the best way to do that, and I'm trying to avoid
>kludgification.
>
>Many monkeys and typewriters were lost to that one.
>
>--
>Mark Roberts
>[EMAIL PROTECTED]

I'll figure something out and submit a patch as soon as possible.  If anybody 
has and brilliant suggestions as to a clean way of doing this, please send 
them my way.

--
Benjamin Coates


_______________________________________________
Freenet-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to