Closed hassanakbar4 closed 14 years ago
@henrik@levkowetz.com changed owner from olau@iola.com
to olau@iola.dk
@olau@iola.dk commented
I think there are three things in here:
Area acronym not being set correctly. The code copies the area from the group on the document but I guess this is only valid if that group is one of the groups you can choose between in the drop down. I think this was a left-over from the Perl code, albeit the details there are probably a little bit different. In any case, I couldn't find a document in ID Exists that actually has an active area as group, so I've changed it so that when adding a document, you always get the drop down with the area acronym (committed in revision 2499).
The weird ballot id. This is a left-over from the Perl code, it pregenerates the id as the next in sequence without actually adding the ballot. I'm not sure why one would not just leave it as null, then fix it when adding a ballot (it has possibly something to do with the multi-document documents), but I have retained the behaviour for backwards compatibility. The ballot isn't actually created until needed. It seems a bit fragile, but OTOH it worked for the old code. I left a comment in the code about it.
The spurious agenda removed comment. Simple type bug, apart from the spurious comment, it shouldn't have had any effect. I've fixed it now in revision (2500).
@henrik@levkowetz.com changed status from new
to closed
@henrik@levkowetz.com set resolution to fixed
@henrik@levkowetz.com commented
Fixed in e830e64e7d1a5fd4e96aa27fcb5414dba421e5b4:
Merged d8d50bd4d5d39e10d4d2b865d5541ea3f6c173af from olau@. Fixes issue #369.
resolution_fixed
type_defect
| by henrik@levkowetz.comAn IDInternal entry with a bad value for the area, and with a value for a new ballot (sequentially the next ballot ID) where the ballot was not created, recently appeared and caused 500 errors (Area matching the query not found).
Here's the stack trace which occurred when running the script which generates the all_id2.txt file:
The following database queries show part of the situation, and the repair actions taken on the database; following that there's a description from Cindy of which steps were taken on this document, which may have lead up to this situation.
mysql command trace:
Cindy's description:
Issue migrated from trac:369 at 2021-12-13 14:50:30 +0500