Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading asc files to YUM repositories no longer possible #402

Open
jeanmichelfischer opened this issue Jun 4, 2024 · 4 comments
Open
Assignees
Labels

Comments

@jeanmichelfischer
Copy link

We would like to sign hosted YUM repositories, as described for example for the YUM proxy repositories in the documentation.

To do this, we uploaded the repomd.xml.asc files (manually/via the API). However, in the latest versions of Nexus3 it is no longer possible to upload .asc files.

This means that signing is no longer possible. Is there a solution to this, or are we missing something?

The error message, if you try to upload asc-files, is:
Unsupported assetKind: REPOMD_ASC

Screenshot

@nblair
Copy link
Contributor

nblair commented Jun 4, 2024

Hi @jeanmichelfischer - thanks for opening an issue. Can you provide some more detail about which version you used when this type of asset was supported?

@nblair nblair added question and removed pending labels Jun 4, 2024
@jeanmichelfischer
Copy link
Author

jeanmichelfischer commented Jun 5, 2024

Hi @nblair - I can only track it down to it was working at Version OSS 3.29.0-02 and not working from Version OSS 3.49.0-02 anymore. This might not be the exact versions when it stopped working, but it might be a hint.

@jeanmichelfischer
Copy link
Author

Here is a Log snippet:

2024-05-31 18:57:04,462+0000 INFO [qtp1877013011-4897] restapi org.sonatype.nexus.repository.upload.internal.OrientUploadManagerImpl - Uploading component with parameters: repository="x_internal_test" format="yum" directory="/repodata" 2024-05-31 18:57:04,463+0000 INFO [qtp1877013011-4897] restapi org.sonatype.nexus.repository.upload.internal.OrientUploadManagerImpl - Asset with parameters: file="repomd.xml.asc" filename="repomd.xml.asc" 2024-05-31 18:57:04,475+0000 WARN [qtp1877013011-4897] restapi org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID f866d49e-40f9-4c0a-9751-a93d78b090ba) Unexpected exception: java.lang.IllegalArgumentException: Unsupported assetKind: REPOMD_ASC java.lang.IllegalArgumentException: Unsupported assetKind: REPOMD_ASC at org.sonatype.nexus.repository.yum.orient.internal.hosted.OrientYumHostedFacetImpl.upload(OrientYumHostedFacetImpl.java:128) at org.sonatype.nexus.repository.yum.orient.internal.upload.OrientYumUploadHandler.handle(OrientYumUploadHandler.java:103) at org.sonatype.nexus.repository.upload.internal.OrientUploadManagerImpl.handle(OrientUploadManagerImpl.java:110) at org.sonatype.nexus.repository.rest.internal.resources.ComponentsResource.uploadComponent(ComponentsResource.java:260)

@gfelot
Copy link

gfelot commented Jun 12, 2024

Hi !
Same issue with a brand new install of the last version nexus-3.69.0-02-java11-unix.
Anyone on this issue ?

EDIT :
FInally it seems if I create a group linked to my repository I have a .asc file already in the group and I'm able to upload a need .rpm with the pgp signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants