Problem:
Unable to sync repository due to trailing slash
Expected outcome:
Successfully sync LINBIT repository
Foreman and Proxy versions:
Foreman: 3.6.1
Ruby: ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
Puppet: 7.24.0
Foreman and Proxy plugin versions:
foreman-tasks 7.2.1
foreman_ansible 11.2.0
foreman_azure_rm 2.2.9
foreman_google 1.0.3
foreman_hooks 0.3.17
foreman_remote_execution 9.1.0
foreman_setup 8.0.1
foreman_webhooks 3.0.5
katello 4.8.1
Distribution and version:
Red Hat Enterprise Linux 8.8
Other relevant data:
LINBIT insists on the trailing slash in their repository URL:
https://packages.linbit.com/yum/rhel9/drbd-9/x86_64/Packages/
However, trying to sync the repository, the slash is stripped and I get the following error:
403, message='Forbidden', url=URL('https://packages.linbit.com/yum/rhel9/drbd-9/x86_64')
I’ve tried to work around this issue by using hammer, but no luck:
:~$ hammer repository synchronize --id 2569 --organization-id 1 --source-url="https://packages.linbit.com/yum/rhel9/drbd-9/x86_64/"
[.....................................................................................................................] [100%]
No content added.
Waiting to start.
--------------------------------
Error: 403, message='Forbidden', url=URL('https://packages.linbit.com/yum/rhel9/drbd-9/x86_64')
Is there, by any chance, an option that I don’t know about to change the sync behaviour?
Thanks!