Commit 1501bb21 authored by Steinberg, Jan's avatar Steinberg, Jan

urlvalidator does not work as wanted

parent b7dd5e3e
......@@ -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);
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment