From: David ‘Bombe’ Roden Date: Sat, 19 Oct 2013 15:00:24 +0000 (+0200) Subject: Don’t parse the (non-existing!) request URI from the Sone XML. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ae11eec6d7d621d6f240013aeb46540187bf7306;p=Sone.git Don’t parse the (non-existing!) request URI from the Sone XML. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index d4e8078..7ecae92 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -147,17 +147,6 @@ public class SoneParser { sone.setClient(new Client(clientName, clientVersion)); } - String soneRequestUri = soneXml.getValue("request-uri", null); - if (soneRequestUri != null) { - try { - sone.setRequestUri(new FreenetURI(soneRequestUri)); - } catch (MalformedURLException mue1) { - /* TODO - mark Sone as bad. */ - logger.log(Level.WARNING, String.format("Downloaded Sone %s has invalid request URI: %s", sone, soneRequestUri), mue1); - return null; - } - } - if (originalSone.getInsertUri() != null) { sone.setInsertUri(originalSone.getInsertUri()); }