I don't think this is a bug. Trades routes from other players planets can only be established once. You can only have one each of your ships trade with planet A and B from an ally, but they can both bring resources to planet Z, controlled by you.