Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320261 - Unable to install standalone bundle via p2 provinstall command
Summary: Unable to install standalone bundle via p2 provinstall command
Status: CLOSED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 09:50 EDT by Katya Stoycheva CLA
Modified: 2019-09-16 14:56 EDT (History)
3 users (show)

See Also:


Attachments
provinstall command enhanced to install standalone bundle (24.33 KB, patch)
2010-07-19 09:54 EDT, Katya Stoycheva CLA
no flags Details | Diff
provApplyChangesCommand (8.87 KB, patch)
2010-12-10 05:43 EST, Katya Stoycheva CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Katya Stoycheva CLA 2010-07-19 09:50:40 EDT
Build Identifier: I20100406-1034

Currently it's impossible to install via p2 a standalone bundle. A repository should be built around the bundle and it should added to the list of known repositories before using p2 provinstall command. The process is too heavy and could be significantly shortened if provinstall command creates by itself a temporary repository containing the "standalone" bundle.
For test purposes it would be useful if it's possible to install non-signed bundles - for example with option that could switch on/off trust validation. 


Reproducible: Always

Steps to Reproduce:
If the bundle is installed via standard install command, it will disappear after restart.
Comment 1 Katya Stoycheva CLA 2010-07-19 09:54:20 EDT
Created attachment 174616 [details]
provinstall command enhanced to install standalone bundle

provapplychanges command added to console bundle in order to be possible to apply changes runtime (to write newly installed bundle into corresponding bundles.info file)
-disableCheckTrust option added to be able to install non-signed bundles
Comment 2 Katya Stoycheva CLA 2010-12-10 05:43:45 EST
Created attachment 184934 [details]
provApplyChangesCommand

_provapplychanges command added to apply configuration at runtime. 
Optional dependency to org.eclipse.equinox.internal.provisional.configurator.Configurator
Declarative services and simple configurator bundles should be available and started
Comment 3 Anthony Dahanne CLA 2010-12-10 11:13:26 EST
Hello !
I successfully applied patch 184934.
What is the difference between using this new _provapplychanges and the old confapply available in org.eclipse.equinox.internal.simpleconfigurator.console.ConfiguratorCommandProvider ?
It looks like they both call org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration()

Thanks
Comment 4 Katya Stoycheva CLA 2010-12-13 02:57:54 EST
Yes, the implementation is almost the same - the reason to introduce a new command is mainly usability. If the user doesn't know how different p2 components work together, it's very hard to find the Configurator command - that's why it didn't come to my mind when I was reading your mail. But during the discussion with you I started to think that usability aspect could be covered by other means. 
What do you think would help more: 
- provinstall documentation which notes that applychanges command should be invoked in order to see your changes at runtime;
- applychanges to be implied in provinstall command;
- if you have other option to propose? 
Thanks.
Comment 5 Anthony Dahanne CLA 2010-12-14 16:13:47 EST
Hello,
I think that we could keep the provapplychanges command the same way it is; maybe just documenting the command saying it is (almost) an alias to the confapply command.
Thanks !
Comment 6 Eclipse Genie CLA 2019-09-16 14:56:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.