On Wednesday 12 November 2008 00:26, xor at freenetproject.org wrote:
> Author: xor
> Date: 2008-11-12 00:26:27 +0000 (Wed, 12 Nov 2008)
> New Revision: 23503
>
> Modified:
> trunk/plugins/WoT/introduction/IntroductionPuzzle.java
> Log:
> Bugfix, new function.
>
> Modified: trunk/plugins/WoT/introduction/IntroductionPuzzle.java
> ===================================================================
> --- trunk/plugins/WoT/introduction/IntroductionPuzzle.java 2008-11-12
00:25:04 UTC (rev 23502)
> +++ trunk/plugins/WoT/introduction/IntroductionPuzzle.java 2008-11-12
00:26:27 UTC (rev 23503)
> @@ -164,12 +164,24 @@
> /* FIXME: I did not really understand the javadoc of
> FreenetURI. Please
verify that the following code actually creates an URI
> * which looks like the one I specified in the javadoc above
> this
function. Thanks. */
> String dayOfInsertion = mDateFormat.format(mDateOfInsertion);
> - FreenetURI baseURI =
((OwnIdentity)mInserter).getInsertURI().setKeyType("KSK");
> + FreenetURI baseURI =
((OwnIdentity)mInserter).getInsertURI().setKeyType("SSK");
It should already be an SSK, surely?
Log it, or attach a debugger and breakpoint.
> baseURI = baseURI.setDocName(WoT.WOT_CONTEXT + "/" +
INTRODUCTION_CONTEXT);
> return baseURI.setMetaString(new String[] {dayOfInsertion + "|"
> + mIndex
+ ".xml"} );
> }
>
> + public static FreenetURI generateRequestURI(Identity inserter, Date
dateOfInsertion, int index) {
> + assert(dateOfInsertion.before(new Date()));
> + assert(index >= 0);
> +
> + /* FIXME: I did not really understand the javadoc of
> FreenetURI. Please
verify that the following code actually creates an URI
> + * which looks like the one I specified in the javadoc above
> this
function. Thanks. */
> + String dayOfInsertion = mDateFormat.format(dateOfInsertion);
> + FreenetURI baseURI = inserter.getRequestURI().setKeyType("SSK");
> + baseURI = baseURI.setDocName(WoT.WOT_CONTEXT + "/" +
INTRODUCTION_CONTEXT);
> + return baseURI.setMetaString(new String[] {dayOfInsertion + "|"
> + index
+ ".xml"} );
> + }
>
> +
> /**
> * Get the URI at which to look for a solution of this puzzle (if
> someone
solved it)
> */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20081112/e62284fd/attachment.pgp>