Fix SVN auth/HTTPS support with Subvertpy.
Review Request #10037 — Created June 24, 2018 and submitted
When using Subvertpy as an SCM backend, adding an HTTPS repository
requiring Basic authentication would fail showing:
A repository was not found at the specified path.Weirdly, when passing the `subvertpy.AUTH_PARAM_DEFAULT_*` constants to
`subvertpy.ra.Auth.auth.set_parameter()` instead of the corresponding
strings, it works.
Also, in `accept_ssl_certificate()` username/password were not passed.
- Created Docker container form easybe/alpine-reviewboard:wip
- Sucessfully added an SVN repository requiring HTTPS and Basic auth
Description | From | Last Updated |
---|---|---|
Can you add some whitespace to break this up a little? We generally include blank lines around blocks. Something like … |
david |
- Description:
-
When using Subvertpy as an SCM backend, adding an HTTPS repository
requiring Basic authentication would fail showing: A repository was not found at the specified path. Weirdly, when passing the `subvertpy.AUTH_PARAM_DEFAULT_*` constants to
`subvertpy.ra.Auth.auth.set_parameter()` instead of the corresponding strings, it works. ~ Also, in `accept_ssl_certificate()` username/password where not passed. ~ Also, in `accept_ssl_certificate()` username/password were not passed.
-
-
Can you add some whitespace to break this up a little? We generally include blank lines around blocks. Something like this:
... username = self.auth.get_parameter(AUTH_PARAM_DEFAULT_USERNAME) if username: auth.set_parameter(AUTH_PARAM_DEFAULT_USERNAME, B(username)) password = self.auth.get_parameter(AUTH_PARAM_DEFAULT_PASSWORD) if password: auth.set_parameter(AUTH_PARAM_DEFAULT_PASSWORD, B(password)) ...
- Change Summary:
-
Fix formatting
- Commit:
-
f3e00ec5b078829b0c16a8c81b8c7458e8dd67d8acd80cdc51ddcc2a57589edb7ce37eaad635d693
- Diff:
-
Revision 2 (+18 -3)