WeBWorK Main Forum

WW 2.4 "Assign to All Current Users" bug

WW 2.4 "Assign to All Current Users" bug

by Dennis Keeler -
Number of replies: 2
There may be a bug in the "Assign to All Current Users" functionality. I made a couple HW sets and automatically added myself as an assigned user. When I hit the "Assign to All Current Users," I get an error, presumably because I'm already assigned. Yet I used to do this all the time in 2.3.

As a work around, I can unassign myself, then hit the Assign to All button.

Here's the error:

Error messages

DBD::mysql::st execute failed: Duplicate entry 'keelerds-12pt1' for key 2 at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 329.

Call stack

The information below can help locate the source of the problem.

  • in WeBWorK::ContentGenerator::Instructor::assignSetToAllUsers called at line 58 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/UsersAssignedToSet.pm
  • in WeBWorK::ContentGenerator::Instructor::UsersAssignedToSet::initialize called at line 192 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::go called at line 353 of /opt/webwork/webwork2/lib/WeBWorK.pm



In reply to Dennis Keeler

Re: WW 2.4 "Assign to All Current Users" bug

by Dennis Keeler -
Oops, I forgot there was a Bugzilla, where I should have reported the bug. Sorry. But actually, it's already known:
http://bugs.webwork.rochester.edu/show_bug.cgi?id=1259
This bug first occurred for me in 2.4.
In reply to Dennis Keeler

Re: WW 2.4 "Assign to All Current Users" bug

by Sam Hathaway -
Hi Dennis,

Yes, this bug is known, and it slipped out since 2.4.0 was released in a hurry. I plan a minimal 2.4.1 release to fix this and a couple of other annoying bugs that didn't make it into 2.4.0. So sorry for the inconvenience. For now there is a workaround, but it is somewhat unsatisfying: use the checkboxes instead of the "Assign to All Current Users" button.
-sam