*shrug*
I disagree.
And that just shows how ignorant you are of the military. COC is there for a reason in military, for better or worse. If Josh "stood up" against someone senior to him, not only is his own military career probably ruined,
it wouldn't solve the problem.
That person senior to him wouldn't get punished for his actions, and it would bring more attention to the gay person being humiliated by his crewmates - and not necessarily in a sympathetic manner. It would reinforce any beliefs of "well, we shouldn't have gay people in the military because they cause problems".
Command's way of handling problems is with authority and, if needed, subtlety. Those who go outside COC do not propser, do not change anything, do not solve problems.
Real life isn't like the movies. Sometimes you need to follow the law in order to get results instead of acting out of "instinct".