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

Karl Wright commented on CONNECTORS-481:
----------------------------------------

Saving a job looks like it works just as specified.  Here's the test code, 
which works:

{code}
    i = 0;
    while (i < result.getChildCount())
    {
      ConfigurationNode resultNode = result.findChild(i++);
      if (resultNode.getType().equals("error"))
        throw new Exception(resultNode.getValue());
      else if (resultNode.getType().equals("job_id"))
        jobIDString = resultNode.getValue();
    }
    if (jobIDString == null)
      throw new Exception("Missing job_id from return!");
{code}



                
> Inconsistencies between API documentation and actual API
> --------------------------------------------------------
>
>                 Key: CONNECTORS-481
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-481
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Documentation, Framework crawler agent
>    Affects Versions: ManifoldCF 0.5.1
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 0.6
>
>
> 1)      Saving/creating an output connection: doesn’t return 
> “connection_name”, seems to return an empty JSON object.
> 2)      Saving/creating an authority connection: as above, seems to return an 
> empty JSON object
> 3)      Saving/creating a repository connection: as above, seems to return an 
> empty JSON object
> 4)      Saving a job: Doesn’t seem to return a “job_id”, empty JSON object 
> returned
> 5)      Listing job statuses: Doesn’t return “job” object.  Clusters returned 
> information into a “jobstatus” JSON object

--
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