Bug with SNAPIN
Well, going directly to the point, when I create a snapin, I associate it to a computer and then delete it, he continues, like a ghost, linked to the computer.
I use FOG 6323
Ubuntu Server 14.04
Found, confirmed, and fixed plus a little.
Snapin associations weren’t being deleted for whatever reason, so I’ve added code to ensure it will do so now.
To fix the systems that currently believe it’s already broken, we do the same thing.
I check the associations, check the valid ID’s, and delete associations that are no longer valid when compared to the two primary tables.
mp12 last edited by
@Tom-Elliott also having some “Ghostsnapins”.
I could replicate the error by creating a snapin, add the snapin to a host and then delete the snapin by marking the checkbox and push "delete all selected snapins?"
It seems that the snapin is deleted but still associated to the host (mysql table snapinAssoc). I removed the row in the table snapinAssoc and it’s done.
By the way. The delete button next to the edit button seems to work fine.
@danilopinotti how are you deleting the snapin? Are you completely removing through snapin page?
I’m confused, what’s the actual Snapin general information look like?
I tried to give an example in the database. Is like the snapin was deleted but the row in database remains.
In general, I delete a snapin from the system and it continues. Look the print. “- (3)” and “- (4)” is deleted snapins
@danilopinotti I’m confused, what’s the actual Snapin general information look like?
If I click to run all snap-ins from the computer where it was linked, it loads that, but with all the attributes blank, as if erase all information of this snapin but not the registration line.
What do you mean by “he continues, like a ghost, linked to the computer”?