I have had my issues flying with guns but nothing like some of the above!! Yikes!! Most trouble I have had recently was departing Windhoek, got into a snarl with the officious lady at the departure gate about the stupid customs forms. I could have avoided it easily enough but my mouth kept going after my brain said shut the hell up. We avoided arrest anyway, lol. I should probably change my name if I go again....
I was taught what sounds like a good way to to deal with those kinds of people while I was in Argentina. Reportedly, the country was so rife with petty official nonsense that the locals found a way to deal with it. The idea was "you're the boss". The person who is behaving that way obviously needs to have control over others. Just let them have their control and feel good about themselves then go on to your good life and let her get back to her miserable existence. Apparently, by choosing to let them be the boss for the brief time, you get less pissed about it since it is your choice to manipulate the person rather than you giving in to the person.
I'll let you know if it works when I get a chance to try it.