svn: Add support to basic subversion authentication in SvnRepo
Some subversion servers in the wild disabled anonymous access and require to authenticate using a read only user account, typically with credentials anonymous/anonymous.
So add support for basic authentication in the subversion loader, credentials must be provided in the repository URL as with basic HTTP authentication.
Such repository has been submitted to Save Code Now service: https://anonymous@svn.cryptool.org/CrypTool1/
Migrated from D8585 (view on Phabricator)
Merge request reports
Activity
Build is green
Patch application report for D8585 (id=30990)
Rebasing onto 651e2964...
Current branch diff-target is up to date.
Changes applied before test
commit 2247374a63c8437c2fc40a0d3ac0eda8f2bae7a6 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Fri Sep 30 13:25:05 2022 +0200 svn: Add support to basic subversion authentication in SvnRepo Some subversion servers in the wild disabled anonymous access and require to authenticate using a read only user account, typically with credentials anonymous/anonymous. So add support for basic authentication in the subversion loader, credentials must be provided in the repository URL as with basic HTTP authentication.
See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/334/ for more details.
2136 textwrap.dedent( 2137 """ 2138 [general] 2139 2140 # Authentication realm of the repository. 2141 realm = test-repository 2142 password-db = passwd 2143 2144 # Deny all anonymous access 2145 anon-access = none 2146 2147 # Grant authenticated users read and write privileges 2148 auth-access = write 2149 """ 2150 ) 2151 ) Address @vlorentz comments.
Build is green
Patch application report for D8585 (id=30994)
Rebasing onto 651e2964...
Current branch diff-target is up to date.
Changes applied before test
commit 8e735c953ba594373dbcbed407ff1c2204ee8866 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Fri Sep 30 13:25:05 2022 +0200 svn: Add support to basic subversion authentication in SvnRepo Some subversion servers in the wild disabled anonymous access and require to authenticate using a read only user account, typically with credentials anonymous/anonymous. So add support for basic authentication in the subversion loader, credentials must be provided in the repository URL as with basic HTTP authentication.
See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/335/ for more details.