Hi Pascal,
it's a month ago but I'm still not able to solve this problem. No matter what I
do my UIService is ignored by P2 thus the "...untrusted content..."-dialog
still appears and blocks my headless application. Looking at the P2 sources I
noticed that P2 retrieves the UIServices asking the ProvisioningAgent which has
an internal Service-Map rather than the OSGi service registry.
UIServices serviceUI = (UIServices)
agent.getService(UIServices.SERVICE_NAME);
This is a bit confusing. Do I have to override the UIService within the
ProvisioningAgent so that my service is used rather than the original one?
Eugen
>>
>>
>> Am 05.01.2011 um 14:40 schrieb Pascal Rapicault:
>>
>>> This dialog results from the execution of the checkTrust phase that is
>>> responsible for checking the signatures of everything being installed.
>>> There are two ways to get rid of it:
>>> 1) When the engine is invoked, specify a phase set that does not include
>>> the checktrust phase
>>> IEngine#perform(IPPlan, IPhaseSet, IProgressMonitor)
>>> see PhaseSetFactory#createDefaultPhaseSetExcludin()
>>> This will cause the signature check to not be performed and thus no
>>> dialog will be opened
>>>
>>> 2) Register a different UIServices service to replace the default one that
>>> prompts (ValidationDialogServiceUI).
>>> In this case the signature verification is still performed by then
>>> engine but the user is not prompted since your code would not do that.
>>>
>>>
>>> On 2011-01-05, at 8:02 AM, Eugen Reiswich wrote:
>>>
>>>> Hi folks,
>>>>
>>>> we are working on a P2 based installation app for headless RCP
>>>> applications. So far P2 works fine but sometimes the installation process
>>>> blocks because P2 opens a dialog with some security warnings (see
>>>> attachment). As we are developing a headless RCP application there is no
>>>> one who can confirm or cancel this dialog.
>>>>
>>>> Is there any possibility to avoid this dialog?
>>>>
>>>> Cheers,
>>>> Eugen
>>>>
>>>>
>>>> <p2_security_warning.png>_______________________________________________
>>>> p2-dev mailing list
>>>> [email protected]
>>>> https://dev.eclipse.org/mailman/listinfo/p2-dev
>>>
>>> _______________________________________________
>>> p2-dev mailing list
>>> [email protected]
>>> https://dev.eclipse.org/mailman/listinfo/p2-dev
>>
>> _______________________________________________
>> p2-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/p2-dev
>
> _______________________________________________
> p2-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev