Loading src/main/java/org/gesis/dda/publishing/domain/impl/ContentResolver.java +5 −2 Original line number Diff line number Diff line Loading @@ -281,7 +281,10 @@ public class ContentResolver { catch (UnsupportedEncodingException e) { log.warn("", e); } if ( URL_VALIDATOR.isValid(urlString) ) { // if ( URL_VALIDATOR.isValid(urlString) ) { // URL_VALIDATOR does not work correctly // ToDo: replace the following line with something appropriate if ( urlString.length() > 3 ) { try { String resolvedUrlString = ContentHelpers.resolvePossibleRedirects(urlString); Loading Loading @@ -314,7 +317,7 @@ public class ContentResolver { } } catch (IOException e) { log.warn("Could not find InputStream for URL " + urlString, e); log.info("Could not find InputStream for URL " + urlString, e); } } Loading Loading
src/main/java/org/gesis/dda/publishing/domain/impl/ContentResolver.java +5 −2 Original line number Diff line number Diff line Loading @@ -281,7 +281,10 @@ public class ContentResolver { catch (UnsupportedEncodingException e) { log.warn("", e); } if ( URL_VALIDATOR.isValid(urlString) ) { // if ( URL_VALIDATOR.isValid(urlString) ) { // URL_VALIDATOR does not work correctly // ToDo: replace the following line with something appropriate if ( urlString.length() > 3 ) { try { String resolvedUrlString = ContentHelpers.resolvePossibleRedirects(urlString); Loading Loading @@ -314,7 +317,7 @@ public class ContentResolver { } } catch (IOException e) { log.warn("Could not find InputStream for URL " + urlString, e); log.info("Could not find InputStream for URL " + urlString, e); } } Loading