Item not found: Group[....] in "Mark extracts for retraction" wizard
The "Mark extracts for retraction" wizards fails with a "Item not found: Group[....]" message after entering a case number and clicking next.
It was a bit tricky to reproduce this since it depends on the permissions on the logged in user and if someone else with more permissions has been logged in and used certain wizards before or not.
The simplest way to reproduce is to restart the server and log in as a user with only
SCAN-B Lab permission. This should always cause the problem in the retraction wizard. The problem goes away if a user with
Administrator logs in an uses the same wizard. It may also go away after at least one YellowLabel specimen has been registered for the site in question.
The root cause seems to be the connection between Sites and Group items implemented as part of #891 . This causes some information to not load until a user with permission to access the group information was logged in. The information is then cached and can be used by any user.
The proper solution is to force Reggie to load the information when starting up as part of one of the services....
However, in this particular case in the retraction wizard we don't need the group information so it is probably easier to just fix this for now and then implement the proper fix if a similar issue pops up in the future....