-
Notifications
You must be signed in to change notification settings - Fork 189
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
PGP signature incorrectly generated for feature if the ID & version also match a bundle #1261
Milestone
Comments
Kummallinen
added a commit
to Kummallinen/eclipse-tycho
that referenced
this issue
Aug 10, 2022
Kummallinen
added a commit
to Kummallinen/eclipse-tycho
that referenced
this issue
Aug 11, 2022
In some cases (e.g. org.eclipse.rcp) a bundle & feature can have the same ID & version. To avoid generate an invalid sigurature in theses cases check the artifact classifier before checking if the jar exists in plugins/ As Platform does check signatures on feature this could be enhanced to correctly PGP sign features in future
Kummallinen
added a commit
to Kummallinen/eclipse-tycho
that referenced
this issue
Aug 15, 2022
In some cases (e.g. org.eclipse.rcp) a bundle & feature can have the same ID & version. To avoid generate an invalid sigurature in theses cases check the artifact classifier before checking if the jar exists in plugins/ As Platform does check signatures on feature this could be enhanced to correctly PGP sign features in future
Kummallinen
added a commit
to Kummallinen/eclipse-tycho
that referenced
this issue
Aug 16, 2022
Kummallinen
added a commit
to Kummallinen/eclipse-tycho
that referenced
this issue
Aug 22, 2022
In some cases (e.g. org.eclipse.rcp) a bundle & feature can have the same ID & version. To avoid generate an invalid sigurature in theses cases check the artifact classifier before checking if the jar exists in plugins/ As Platform does check signatures on feature this could be enhanced to correctly PGP sign features in future
mickaelistria
pushed a commit
that referenced
this issue
Aug 22, 2022
In some cases (e.g. org.eclipse.rcp) a bundle & feature can have the same ID & version. To avoid generate an invalid sigurature in theses cases check the artifact classifier before checking if the jar exists in plugins/ As Platform does check signatures on feature this could be enhanced to correctly PGP sign features in future
Thanks @Kummallinen ! |
laeubi
pushed a commit
to Kummallinen/eclipse-tycho
that referenced
this issue
May 18, 2023
laeubi
pushed a commit
to Kummallinen/eclipse-tycho
that referenced
this issue
Jan 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using tycho-gpg-plugin on a repository containing a feature with the same ID & version as a bundle, for example org.eclipse.rcp, a PGP signature for the bundle is attached to the feature. This results in the p2 repository being unusable as the signature check on the feature fails on installation.
Looks like the problematic code is here:
tycho/tycho-gpg-plugin/src/main/java/org/eclipse/tycho/gpg/SignRepositoryArtifactsMojo.java
Line 123 in d9efa1a
I guess it should be checking the artifact type attribute rather than just checking for the presence of a matching file in "plugins"
I've only been able to test with Tycho 2.7.1 due to bugs preventing me from using later versions, but the code is unchanged so I assume it still happens.
The text was updated successfully, but these errors were encountered: