Subject: | Subsequent bug update failes with missing bug ID |
Having simple code that adds a comment and then sets a flag on the sema
bug or vice versa, fails on submitting second request while bug ID is
discarded by previous bug update. E.g.:
$bug->add_comment($scm_request) or die "Submission failed: $@\n";
$bug->set_flag('fedora-cvs' => '?') or die "Setting flag failed: $@\n";
fails inside set_flag:
Must set either id or alias! at blib/lib//Fedora/Bugzilla/Bug.pm line 220
Fedora::Bugzilla::Bug::_build_id('Fedora::Bugzilla::Bug=HASH(0x7f4f1d88e338)')
called at accessor id defined at blib/lib//Fedora/Bugzilla/Bug.pm line 201
Fedora::Bugzilla::Bug::id('Fedora::Bugzilla::Bug=HASH(0x7f4f1d88e338)')
called at blib/lib//Fedora/Bugzilla/Bug.pm line 679
Fedora::Bugzilla::Bug::set_flags('Fedora::Bugzilla::Bug=HASH(0x7f4f1d88e338)',
'fedora-cvs', '?') called at blib/lib//Fedora/Bugzilla/Bug.pm line 690
Fedora::Bugzilla::Bug::set_flag('Fedora::Bugzilla::Bug=HASH(0x7f4f1d88e338)',
'fedora-cvs', '?') called at /home/petr/redhat/perl/review/scmrequest
line 210