I disagree with your "some bad apples" analogy though. That would be easy to fix relative to the problem we have which is systemic. "Good" cops are in the exact same situation as the bad ones. Policing is required yet fundamentally causing the problems at the same time.
>> And if someone has a right not to be harassed, when doing their job in an office, why doesn't a cop, when doing their job on the street?
As stated in the article all 50 states already have laws on the books that prevent interference with police while doing their job. If you are in a public facing role like a police officer you most certainly do not have the right to being shielded from observation and interaction - that's a huge part of the job and probably part of the solution too.