Skip Menu |

This queue is for tickets about the Helios CPAN distribution.

Report information
The Basics
Id: 98845
Status: resolved
Priority: 0/
Queue: Helios

People
Owner: LAJANDY [...] cpan.org
Requestors: LAJANDY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 2.80
  • 2.801_3270
  • 2.801_3350
  • 2.81
  • 2.811_3460
Fixed in:
  • 2.811_3850
  • 2.811_4150
  • 2.82



Subject: helios_job_submit.pl says job arguments invalid, submits anyway
If you attempt to submit a job with invalid job argument XML with helios_job_submit.pl, the command will print an error but submit the job to Helios anyway: $ helios_job_submit.pl -v Helios::TestService "<job><params><arg1>value1</arg1>" Invalid job arguments: <job><params><arg1>value1</arg1> () Jobid: 84 The helios_job_info command confirms the job was submitted with invalid job argument XML: $ helios_job_info --jobid=84 -a -l Jobid: 84 Jobtype: Helios::TestService Submit Time: Fri Sep 12 18:51:21 2014 Run After: Fri Sep 12 18:51:21 2014 Locked Until: Priority: Args: <job><params><arg1>value1</arg1>
This apparently was introduced with git commit ecb5c1ca0d97ef3d2a53d71b63a4b9a8a627d1bb, where the bulk of the validateParamsXML() function was replaced with code using an eval {} or do {} block instead of the Error module's try and catch. If validation fails, the main body of the command expects validateParamsXML() to return a false value, but the new code does not do that. On Fri Sep 12 18:58:30 2014, LAJANDY wrote: Show quoted text
> If you attempt to submit a job with invalid job argument XML with > helios_job_submit.pl, the command will print an error but submit the > job to Helios anyway: > > $ helios_job_submit.pl -v Helios::TestService > "<job><params><arg1>value1</arg1>" > Invalid job arguments: <job><params><arg1>value1</arg1> () > Jobid: 84 > > The helios_job_info command confirms the job was submitted with > invalid job argument XML: > > $ helios_job_info --jobid=84 -a -l > Jobid: 84 > Jobtype: Helios::TestService > Submit Time: Fri Sep 12 18:51:21 2014 > Run After: Fri Sep 12 18:51:21 2014 > Locked Until: > Priority: > > Args: > <job><params><arg1>value1</arg1>
On Fri Sep 19 21:33:24 2014, LAJANDY wrote: Show quoted text
> This apparently was introduced with git commit > ecb5c1ca0d97ef3d2a53d71b63a4b9a8a627d1bb, where the bulk of the > validateParamsXML() function was replaced with code using an eval {} > or do {} block instead of the Error module's try and catch. If > validation fails, the main body of the command expects > validateParamsXML() to return a false value, but the new code does not > do that. > > On Fri Sep 12 18:58:30 2014, LAJANDY wrote:
> > If you attempt to submit a job with invalid job argument XML with > > helios_job_submit.pl, the command will print an error but submit the > > job to Helios anyway: > > > > $ helios_job_submit.pl -v Helios::TestService > > "<job><params><arg1>value1</arg1>" > > Invalid job arguments: <job><params><arg1>value1</arg1> () > > Jobid: 84 > > > > The helios_job_info command confirms the job was submitted with > > invalid job argument XML: > > > > $ helios_job_info --jobid=84 -a -l > > Jobid: 84 > > Jobtype: Helios::TestService > > Submit Time: Fri Sep 12 18:51:21 2014 > > Run After: Fri Sep 12 18:51:21 2014 > > Locked Until: > > Priority: > > > > Args: > > <job><params><arg1>value1</arg1>
Fixed in 2.811_3850. Will be included in next stable release. On Fri Sep 12 18:58:30 2014, LAJANDY wrote: Show quoted text
> If you attempt to submit a job with invalid job argument XML with > helios_job_submit.pl, the command will print an error but submit the > job to Helios anyway: > > $ helios_job_submit.pl -v Helios::TestService > "<job><params><arg1>value1</arg1>" > Invalid job arguments: <job><params><arg1>value1</arg1> () > Jobid: 84 > > The helios_job_info command confirms the job was submitted with > invalid job argument XML: > > $ helios_job_info --jobid=84 -a -l > Jobid: 84 > Jobtype: Helios::TestService > Submit Time: Fri Sep 12 18:51:21 2014 > Run After: Fri Sep 12 18:51:21 2014 > Locked Until: > Priority: > > Args: > <job><params><arg1>value1</arg1>
On Fri Sep 12 18:58:30 2014, LAJANDY wrote: Show quoted text
> If you attempt to submit a job with invalid job argument XML with > helios_job_submit.pl, the command will print an error but submit the > job to Helios anyway: > > $ helios_job_submit.pl -v Helios::TestService > "<job><params><arg1>value1</arg1>" > Invalid job arguments: <job><params><arg1>value1</arg1> () > Jobid: 84 > > The helios_job_info command confirms the job was submitted with > invalid job argument XML: > > $ helios_job_info --jobid=84 -a -l > Jobid: 84 > Jobtype: Helios::TestService > Submit Time: Fri Sep 12 18:51:21 2014 > Run After: Fri Sep 12 18:51:21 2014 > Locked Until: > Priority: > > Args: > <job><params><arg1>value1</arg1>