Closed VladimirDe closed 3 months ago
replacing : with %3A does not help, error remains the same
Hi @VladimirDe thanks for opening an issue. I spent some time investigating this issue, and ultimately I have to label it as an enhancement request. The colons in the path fragment are definitely the sticking point, and it's not something we can surgically fix without impacting a lot of other formats. There are countless yum repositories that do not use colons in their path structure that we can properly support. This one will require careful investment to add support for, we'll need to gauge interest first before we start.
Certainly you are right - the most of yum repositories do not have semicolon inside url path. But if some (which you need) has it - it would be a problem. And what is difference between yum and raw proxy repositories ? I suppose only metadata processing...
thank you very much for your work I would like to inform that also pkgs.k8s.io move to an url that include ":". This repo own all the kubernetes stuff :( If you have a work around rather than use hosted i will enjoy it
It's possible use mirror e.g. https://mirror.yandex.ru/mirrors/pkgs.k8s.io/core/stable/ instead of https://pkgs.k8s.io/ But property "distibution" left empty in this case ?
nexus-kubernetes.sls:
nexus:
repos:
proxy:
ubuntu-kubernetes:
repo_type: apt
remote_url: https://mirror.yandex.ru/mirrors/pkgs.k8s.io/core/stable/
distribution: ./
strictContentTypeValidation: false
blob_store: deb
policyNames:
'""'
I'm happy to say that this issue is fixed in next week's release of 3.71.0 - you can now successfully proxy pkgs.k8s.io directly in that version (it will be mentioned as NEXUS-42529 in the release notes).
Issue https://github.com/sonatype/nexus-public/issues/205 (currently closed) relates to raw repository. But if you try to reproduce it on yum proxy repository - you will get almost the same error: as long as ":" is included in the first-level path name, you will definitely get a 400 error Steps to reproduce:
2024-02-14 10:01:16,981+0300 WARN [qtp1836931861-638] admin org.sonatype.nexus.repository.yum.orient.internal.proxy.OrientYumProxyFacetImpl - Unable to resolve url. Reason: Illegal character in scheme name at index 0: core:/stable:/v1.28/rpm/repodata/repomd.xml.key
Nexus version: 3.65.0-02