Author: toad
Date: 2009-03-13 23:50:13 +0000 (Fri, 13 Mar 2009)
New Revision: 26037
Modified:
branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
Log:
Clone targetURI etc
Modified:
branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
2009-03-13 22:48:12 UTC (rev 26036)
+++ branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
2009-03-13 23:50:13 UTC (rev 26037)
@@ -509,7 +509,10 @@
super(prioClass, clientContext);
logMINOR = Logger.shouldLog(Logger.MINOR, this);
this.defaultName = defaultName;
- this.targetURI = target;
+ if(client.persistent())
+ this.targetURI = target.clone();
+ else
+ this.targetURI = target;
this.cb = cb;
this.ctx = ctx;
this.getCHKOnly = getCHKOnly;
@@ -803,7 +806,7 @@
// Can we just insert it, and not bother with a
redirect to it?
// Thereby exploiting implicit manifest
support, which will pick up on .metadata??
// We ought to be able to !!
- block = new InsertBlock(outputBucket, new
ClientMetadata(mimeType), targetURI);
+ block = new InsertBlock(outputBucket, new
ClientMetadata(mimeType), persistent() ? targetURI.clone() : targetURI);
isMetadata = false;
insertAsArchiveManifest = true;
} catch (IOException e) {
@@ -813,7 +816,7 @@
return;
}
} else
- block = new InsertBlock(bucket, null, targetURI);
+ block = new InsertBlock(bucket, null, persistent() ?
targetURI.clone() : targetURI);
SingleFileInserter metadataInserter;
try {
metadataInserter =
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs