Author: toad
Date: 2008-04-15 21:35:54 +0000 (Tue, 15 Apr 2008)
New Revision: 19364

Modified:
   trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
Log:
Don't use thisKey for redirect here either.

Modified: trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SingleFileFetcher.java       
2008-04-15 21:29:36 UTC (rev 19363)
+++ trunk/freenet/src/freenet/client/async/SingleFileFetcher.java       
2008-04-15 21:35:54 UTC (rev 19364)
@@ -488,7 +488,7 @@
                                                        // It would be useful 
to be able to fetch the data ...
                                                        // On the other hand 
such inserts could cause unpredictable results?
                                                        // Would be useful to 
make a redirect to the key we actually fetched.
-                                                       rcb.onFailure(new 
FetchException(FetchException.INVALID_METADATA, "Invalid metadata: too many 
path components in redirects", thisKey), this);
+                                                       rcb.onFailure(new 
FetchException(FetchException.INVALID_METADATA, "Invalid metadata: too many 
path components in redirects", uri.dropLastMetaStrings(1)), this);
                                                } else {
                                                        // 
TOO_MANY_PATH_COMPONENTS
                                                        // report to user


Reply via email to