[ https://issues.apache.org/jira/browse/CONNECTORS-430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233468#comment-13233468 ]
Erlend Garåsen commented on CONNECTORS-430: ------------------------------------------- This can be fixed by using JavaScript which performs an url validation. I have entered the following in editjobs.jsp (vrawler-ui) which seems to work. This code is not finished since some URLs (localhost) are not accepted. {code} function checkSeedsList() { if (typeof(editjob.seeds) != "undefined") { var regexp = /http(s)?:\/\/[a-z0-9-\.]+\.[a-z]{2,4}\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?/; var lines = editjob.seeds.value.toString().split("\n"); var invalidUrlList = ""; for (var i = 0; i < lines.length; i++) { if (lines[i].length > 0 && !regexp.test(lines[i])) { invalidUrlList += lines[i] + "\n"; } } if (invalidUrlList.length > 0) { alert(<%=Messages.getString(pageContext.getRequest().getLocale(),"editjob.InvalidUrlInSeedsList")%> + "\n" + invalidUrlList); editjob.seeds.focus(); return false; } } return true; } {code} > An error should be returned if invalid seeds are typed into the seeds list > for the web connector > ------------------------------------------------------------------------------------------------ > > Key: CONNECTORS-430 > URL: https://issues.apache.org/jira/browse/CONNECTORS-430 > Project: ManifoldCF > Issue Type: Improvement > Components: Web connector > Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3, > ManifoldCF 0.4, ManifoldCF 0.5 > Reporter: Erlend Garåsen > Assignee: Erlend Garåsen > Priority: Minor > Fix For: ManifoldCF 0.6 > > > If you create a job for the web connector and enter an invalid URL into the > seeds list, any value is accepted. An error message should be returned to the > user in order to prevent invalid seeds. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira