Palestine is not a state and has never gone to war as a state.
All Israel's wars have been with surrounding Arab dictatorships.
At the beginning of World War I, Germany was a constitutional monarchy in which political parties were limited to the legislative arena. They could control neither the government nor the military. In no sense a democracy.
"Is it true that no two democracies have ever gone to war with each other? "
" Exceptions to the democratic peace can be explained away and largely prove the rule. " Steven Curtis, School of International Studies Coventry University
He calls it the rule of democratic peace. No a wacky idea of mine but a respected and accepted rule of history and philosophy.
"To find an example of war between democracies we must go back to the Peloponnesian War. Athens's attack on Syracuse refutes the hypothesis, yet it is questionable whether the Athenians knew that Syracuse possessed a democratic polity or whether the rule of democratic peace applies to ancient warlike republics."