Paxurl 289

Fix and tests for remote repository mirrors with authentication enabled.