Looking at the screenshot it is s1914? not suppramcy1?
Anyway. Yes, your observation is correct, the other player probably has share map with your enemy, and is preventing you from capturing the capital. So either make him move away or declare war and take out his troops by force.
I dont think this is a bug, rather a feature.