https://sourceforge.net/apps/trac/sourceforge/ticket/25002
He,
Some body générerate a lot of ticket without content :
https://sourceforge.net/p/multicardipx800/tickets/Thanks
Thomas
I seem to remember something similar happening to the allura project itself a while back. Can we fix this up for the user somehow?
Another project with the same issue:
https://sourceforge.net/apps/trac/sourceforge/ticket/25302
https://sourceforge.net/p/libpninx/tickets/
So far I've found that they are not created via the web, I haven't found a huge number of form submissions or API access in our access logs.
This did happen once before to allura (see [#1877] although no details given) and appears to have occurred a few times to several projects. Run something like
db.ticket.find({ticket_num:100000})
for more projects affected.The tickets do have created_date and reported_by_id fields populated. Looking at two projects, they do seem to be created one after another over the course of many hours. They all have the same creator too (within a project). For one project I looked at, the creator was the same as the previous valid ticket. That was not true for another project I looked at.
I think the next step is to see if there is any place in our code that an unusual scenario could cause lots of tickets to be created in a loop. IIRC we didn't have a good ticket_num sequencing logic - it was spread into model code & controller code. I think we cleaned it up, but there may be cruft left behind that runs incorrectly in a certain situation.
Related
Tickets:
#1877We should also check the timestamps for all the affected projects; if all the tickets are old perhaps the problem does not exist any more and we just need to remove the invalid tickets. Cleanup should also include resetting the ticket sequence counter (not sure if we should if some valid high-numbered tickets have already been created)
forge-classic:cj/3978
Why forge-classic and not the allura repo?
I figured it was more of a site maintenance tool than something that belongs as a part of the core of Allura. It doesn't really make much difference where it lives.
Fixed errors from last-minute "cleanup"
Need to run:
FYI, that list was determined by this mongo command: