Skip to content

Commit

Permalink
Merge pull request #216 from opaduchak/fix/ENG-7085
Browse files Browse the repository at this point in the history
[ENG-7085] Fix owncloud url validation issue for the migration script
  • Loading branch information
adlius authored Jan 29, 2025
2 parents efab2ba + 592bba8 commit bc0afc0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def check_fields(self, osf_account: ExternalAccount, fields: list[str]):

def get_api_base_url(self, external_service, osf_account):
if external_service.wb_key == "owncloud":
return f"{osf_account.profile_url.removesuffix('/')}/remote.php/dav/files/{osf_account.display_name}/"
return f"{osf_account.profile_url.removesuffix('/')}/remote.php/dav/files/{quote_plus(osf_account.display_name)}/"
elif external_service.wb_key == "gitlab":
return f"{osf_account.oauth_secret.removesuffix('/')}"
elif external_service.wb_key == "dataverse":
Expand Down

0 comments on commit bc0afc0

Please sign in to comment.