Long-standing competing claims of territory are the root of tensions that broke into open combat between the countries in late July