[ 
https://issues.apache.org/jira/browse/CONNECTORS-430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242347#comment-13242347
 ] 

Erlend Garåsen commented on CONNECTORS-430:
-------------------------------------------

I have got rid of the annoying error after I upgraded to version 2.7.2 of 
Python. Now I get a different error message, but I'm afraid that it is not 
related to an invalid regular expression. I simplified the regexp just in case, 
but it still fails.
{code}
var regexp = /http(s)?:\/\/.*/;
{code}

I think the problem is related to the variable declaration above, i.e. the 
browser simulator think it is an invalid variable declaration.

{code}
    [junit]   File 
"/Users/erlendfg/tmp/mcf_2012/tests/webcrawler/test-derby-output/Javascript.py",
 line 790, in evaluate_statement
    [junit]     raise Exception("Didn't find expected ';' at end of var 
statement, saw %s, in %s" % (unicode(token),place))
    [junit] Exception: Didn't find expected ';' at end of var statement, saw 
Punctuation: ., in method check_seedsList
    [junit] 2012-03-30 15:40:22.530:INFO::Stopped SocketConnector@0.0.0.0:8346
{code}

My intention is to solve the problem before I fly to Azerbaijan tomorrow 
morning.
                
> 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
>
>         Attachments: CONNECTORS-430.patch, CONNECTORS-430.patch
>
>
> 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


Reply via email to