Thanks, Nico.
I checked in these fixes.
I decided to change make_project generate template files without ".xml"
rather than changing other tools to expect ".xml"
(to avoid breaking existing projects).
-- David

On 08-Dec-2011 10:45 AM, Nico Schlitter wrote:
> Hi there,
>
> Today, I did some tests with the Remote Job Submission feature of the current
> trunk version (rev. 24755). I've found the following minor problems when I
> tried to get it running with example_app:
>
> 1) The script ./html/user/submit.php expects the template file
> './templates/example_app_in'. Unfortunately, when I use 'make_project ...
> --test_app' to create a new project the created template files end with
> '.xml'. Consequently, the submit.php script won't work.
>
> This patch does the trick and changes the affected code. Alternatively, you
> could remove the '.xml' from the template files.
>
> 93c93 <      $path = "../../templates/$app->name"."_in"; ---
>> $path = "../../templates/$app->name"."_in.xml";
> 140c140 <      $cmd = "cd ../..; ./bin/create_work --appname $app->name
> --batch $batch_id --rsc_fpops_est $job->rsc_fpops_est"; ---
>> $cmd = "cd ../..; ./bin/create_work --appname $app->name --wu_template
>> ./templates/".$app->name."_in.xml --result_template
>> ./templates/".$app->name."_out.xml --batch $batch_id --rsc_fpops_est
>> $job->rsc_fpops_est";
>
> 2) Furthermore, the template file doesn't contain the root-tag
> '<input_template>'. Hence, it's not a valid XML-document as it is expected by
> e.g. the PHP-function simplexml_load_file(). Adding the missing tag solves
> this problem.
>
> 3) The file ./html/get_output.php provides the output files to the users.
> Here, the wrong library is included. Instead 'submit_db.inc' it should be
> 'submit_util.inc'. Otherwise, the function get_outfile_names() won't be
> found.
>
> Here is the patch to fix this issue: 25c25 <
> require_once("../inc/submit_db.inc"); ---
>> require_once("../inc/submit_util.inc");
>
> 4) There is also a problem with ./bin/manage_privileges. As expected, the
> 'list' option lists the current permissions. However, granting new
> permissions fails with an error ('Database Error<br>'). I didn't look into it
> yet, because as a workaround, I wrote the necessary permissions directly into
> the database.
>
> I hope this spares you some hours of debugging.
>
> Best regards, Nico
>
>
> Nico Schlitter Project Manager of the distributedDataMining project
> http://www.distributedDataMining.org
>
>
>
>
> _______________________________________________ boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe,
> visit the above URL and (near bottom of page) enter your email address.
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to