I am creating an RCP-based product on Eclipse, and I encounter a problem when, when I try to use the built-in user interface p2 to install updates for the product, I get an error message in the dialog "There are not enough access privileges to apply this update."
I was debugging in Eclipse and found that the βroot causeβ is the p2.profile file with xml, which includes this snippet:
<iuProperties id='com.datical.db.ui.product' version='1.33.0.201412032223'> <properties size='4'> <property name='org.eclipse.equinox.p2.internal.inclusion.rules' value='STRICT'/> <property name='org.eclipse.equinox.p2.type.root' value='true'/> <property name='org.eclipse.equinox.p2.type.lock' value='3'/> <property name='org.eclipse.equinox.p2.base' value='true'/> </properties> </iuProperties>
The corresponding line corresponds to the line <property name='org.eclipse.equinox.p2.type.lock' value='3'/>
I'm not sure what I'm doing wrong. I think that I should have something bad in defining a product or defining my function or in my installation process that calls this line.
When I look at the Eclipse code (our target environment is 3.7 / Indigo), I see the profile being written inside org.eclipse.equinox.internal.p2.engine:SurrogateProfileHandler:addSharedProfileBaseIUs (which is private static.) This is called from SurrogateProfileHandler:createProfile
The product p2 repository is built using tycho plugins version 0.15.
source share