On Wednesday 12 November 2008 00:26, [EMAIL PROTECTED] 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)
> */
pgpBJNDgooYQC.pgp
Description: PGP signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
