DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
720 stars 254 forks source link

import-contest with username:password in URL fails when .netrc exists #2390

Closed vmcj closed 6 months ago

vmcj commented 6 months ago

Description of the problem

Assume import-contest as import-contest https://admin:pass@example together with an .netrc (whatever value), we fail although the credentials are fine.

meisterT commented 6 months ago

This could be fixed by using urlparse and then explicitly passing basic auth tokens to the request. This takes precedence over .netrc.