Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEclipse feature/plugin integrity validation
https://www.eclipse.org/forums/index.php/mv/msg/162011/512175/#msg_512175
I was wondering if there is any way or functionality, headless to verify that all the bundles/plugins/features of a given Eclipse installation are valid.
The definition of valid is:
-Contains all the files that are expected to be there.
-The files have not been tampered or modified in any matter.
-The content as a whole has a checksum that is verified against.
So for example if by some situation, a file is deleted by an antivirus or other process or mistake, running a simple command like "eclipse -verifyIntegrity" will give a very good diagnostic of corrupted features/plugins, registry and so on.
It goes in the direction of diagnostics and perhaps self-repair.
So maybe Eclipse can repair itself on that level.
Any thoughts on that?
Cheers,
Igor]]>Igor Jacy Lino Campista2010-02-04T10:05:10-00:00Re: Eclipse feature/plugin integrity validation
https://www.eclipse.org/forums/index.php/mv/msg/162011/512280/#msg_512280
The facilities are there to check the integrity/validity of the installed features and bundles so a tool like that should not be hard to implement. It could use the service org.eclipse.osgi.signedcontent.SignedContentFactory and check get the SignedContent for each bundle and feature File. It could then use the SignedContent to check the validity of each signed bundle/feature File.
There is also an option to verify bundle content as it is loaded at runtime. This is similar to how secure class loaders in java verify signed jars at runtime. See the runtime osgi.signedcontent.support=runtime option in help. This only checks that the signed resources you are loading are not corrupted as they are loaded. It does not cause a full scan of every resource in your installation.
HTH
Tom.]]>Thomas Watson2010-02-04T14:59:41-00:00Re: Eclipse feature/plugin integrity validation
https://www.eclipse.org/forums/index.php/mv/msg/162011/512464/#msg_512464
Thanks for the reply, very informative indeed, I will mention that to another project which may be interested.