current release has a signature for com.sun.jna.5.13.0.v20230812-1000.jar that is not valid? #1502
Replies: 6 comments 9 replies
-
I'm not sure what it means to "export a target file to a local disk". It's clearly a jar here: It's full of native libraries so it will tend to get unpack to access those. |
Beta Was this translation helpful? Give feedback.
-
weird it is not extracted with a previous eclipse (in that export i just see it purely as a jar, so i guess something changed in the manifest? (i can have a look) what i mean with export is, that in the target file editor there on the right side of the "Set as Active Platform" a button "Export" This is because so many times (before we did this) we have problems that if 1 site is down that suddenly eclipse thinks it can't resolve the target and you just can't develop anymore.. But now suddenly we do that same export (with our new target file pointing to the 4.29 eclipse site |
Beta Was this translation helpful? Give feedback.
-
manifest files are pretty similar i think it is just rewritten a bit (it has a bit more chars per line) so i guess that it now tries to extract it is something of p2 or equinox that now sees the Bundle-NativeCode: attribute and thinks let me extract it. But extracting would be fine, that is not directly a problem (just a difference) the difference is that for some reason the signature that it generated in the p2 site? is not what it expects. |
Beta Was this translation helpful? Give feedback.
-
I believe it gets unzipped because of the touchpoint instruction: So it's just following instructions. Even looking in my shared bundle pool, it's a folder there too, and there are quite a number of bundles that are folders: I don't think you can generally expect to turn an artifact pool into an update site except by using the p2 publisher. The described problem (poor offline behavior) is why I very much prefer to use targlets where resolution support rollback: https://wiki.eclipse.org/Oomph_Targlets Note that the artifact is not jar signed, but rather only PGP signed: And I expect that PGPSignatureVerifier cannot verify the PGP signature of a folder. So I don't think anything is wrong, though certainly inconvenient... Perhaps you'd be better to mirror the repository to the local file system and use that mirror... The CBI p2 aggregator is also very handy for producing mirrors of compositions and subsets... |
Beta Was this translation helpful? Give feedback.
-
@jcompagner just curious, have you tried using a Directory Location instead? Then P2 won't try to verify anything and it should be even faster... |
Beta Was this translation helpful? Give feedback.
-
I've investigated further and have opened the following issue: In the end, PDE is just using p2, and it's simply not possible to PGP verify a folder's contents with the PGP signature associated with the original jar used to produce that folder so p2 should and must avoid that. |
Beta Was this translation helpful? Give feedback.
-
Hi,
not sure where this really belongs but when i have a target file and i export that target file to a local disk
Then the com.sun.jna is not in that target file, i tried to debug this through and the org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle() method
it tries to make a directory of that file (no idea why that is also) but i guess because something is wrong
then in the end when it wants to copy i get:
Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 Problems downloading artifact: osgi.bundle,com.sun.jna,5.13.0.v20230812-1000. children=[Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 The signature is invalid for current content]
and then the dir is also removed again..
in our previous release that is building on eclipse 2023.06 the com.sun.jna artifact is just a jar..
Beta Was this translation helpful? Give feedback.
All reactions