Skip to main content
summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-02-08Bug 530754 - Removes OrderedProperties constructor which creates an infinite ↵I20180211-2000I20180210-1500I20180209-2000I20180208-2000Lars Vogel1-10/+0
loop Change-Id: Ia5a96262ab0e4db0028a4b75c204a7d2a305817d Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-02-08Bug 529908 - Update xz-java 1.8Alexander Kurtakov1-0/+1
Touch p2.core feature. Change-Id: If68fe6741b6bbab7a0458116c6236faf533886ec Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-07Bug 423715 - Encapsulate checks performed during MD5Verifier creationI20180207-2000Mykola Nikishov3-21/+43
As a side-effect, this decouples RawMirrorRequest and SimpleArtifactRepository from MD5Verifier. Change-Id: I8e5f50a3fd6b21006a42e115858d98aa07f90df5 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-02-04Bug 423715 - Check MD5Verifier's status before using itMykola Nikishov2-11/+18
Add MD5Verifier to processing steps only if it had been initialized properly. During construction, MD5Verifier catches NoSuchAlgorithmException in a way that requires caller to check the actual status with getStatus().isOK(). If not properly constructed, MD5Verifier's write(int) and close() will throw NPE later on. This change may be considered as an API breaking: before, using verifier that has not been properly constructed, client will get NPE. After this change, the actual problem will be hidden as client will not see such invalid verifier at all. On the other hand, this should never happen because every JRE must support MD5 MessageDigest implementation (which is the only implementation used by p2 as of now). Change-Id: Ic24f9f6caaa219233715998d74bfc478a5310247 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-02-01Bug 530470 - Restored complex version range match expressionsI20180206-2000I20180206-0315I20180205-2000I20180204-2000I20180203-1500I20180202-2000I20180202-0315I20180201-2325I20180201-2000Todor Boev2-26/+98
- Removed the use of the match (~=) operator against a VersionRange object and the use of a single pre-built expression. - Restored the use of comparison operators against Version objects and the use of multiple pre-built expressions for all version range possibilities. - This is a partial revert of Bug 528494 Change-Id: I353ca42c25111ca2f1ed8d7be5166e872b2e57bd Signed-off-by: Todor Boev <rinsvind@gmail.com>
2018-01-31Bug 423715 - Add SHA256 to p2 metadata publishingI20180201-0200I20180131-2000Mykola Nikishov1-4/+12
Extract method to add checksum verifier to processing steps Change-Id: Id3dccedc687afee6faf97a66d21873e98a52717a Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-01-31Bug 530535 - Move away of deprecated Class.newInstanceAlexander Kurtakov9-69/+200
Deprecated in Java 9 due to propagating exceptions instead of being properly checked at compile time. The replacement Constructor.newInstance has always been around. Switched frameworkadmin bundles to use Eclipse default formatter as the one defined prior to that was line breaking at 800. Change-Id: Ia0cab2a80c288115c319ba3c1378d6b6fa20fbe7 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-30Bug 530526 - Don't use deprecated Number children constructorsAlexander Kurtakov12-29/+29
Deprecated in Java 9 but the replacment methods are here for long time. Change-Id: I645d66492831a95d27f61bc443c8896d73440579 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-30Bug 530486 - Remove useless thrown exceptions.I20180130-2000Alexander Kurtakov9-31/+51
Change-Id: Ieb5178a2eecbeaab88afd5e00bc3806bc615c7ae Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-29Bug 518031 - Throw exception if unable to create a secured XML factoryMykola Nikishov8-46/+38
Secured XML factory must be either successfully created or fail in an obvious way. Do not hide actual problem by catching an exception and let the caller to decide what to do with it. Change-Id: I8f3c6f29d2874dbb0f4952d1322150923582f642 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-01-28Bug 530396 - fixed compiler warningI20180129-2000I20180129-0605I20180129-0540Andrey Loskutov1-1/+1
Change-Id: I0c80c6315cb1ca1e8e91649cf5f3a0c880b6cc0b Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2018-01-26Reuse existing ctorI20180128-2000I20180127-1500I20180127-0150I20180126-2040Mykola Nikishov1-14/+2
Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-01-26Bug 530398 - Remove unused code for compatibility with old updateAlexander Kurtakov4-28/+6
Change-Id: I6b852cbd3c54475f1065558d2e3b4b180353d109 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-26Bug 530396 - Move UI code to lambdasAlexander Kurtakov44-1435/+795
Change-Id: I92c7b5c6cbde04280da91a9ee617495ff0381a73 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-23Bug 530150 - Move JREAction default profile to Java 9S4_8_0_M5I20180124-2000I20180124-0800I20180123-2000I20180123-1010I20180123-0800Alexander Kurtakov3-11/+16
People not specifying EE will get some sane default, Java 6 is quire rare nowadays I would say. The version here sould be the maximum compatible profile so a.jre.javase installed allow installing bundles requiring this max profile. Change-Id: I96dfb0c900441c1bf9eccc8994a7425f456ccff7 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-22Revert "Revert "Bug 528387 - Dedicated xml elements for genericI20180122-2000Alexander Kurtakov27-755/+1315
requirements"" This reverts commit 0e3caa9359428dcb20c1dc3a2c580fff64777d3d. Change-Id: Ifafe2feedb963b90f54a19b2e08a49d3b18d475a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-22Revert "Bug 528387 - Dedicated xml elements for generic requirements"Thomas Watson27-1315/+755
This reverts commit a7a99e1fa49938a8f62d44d5c443d38981afeace.
2018-01-19Bug 497094 - If a bundle has no symbolic name a NullPointerException canI20180122-0800I20180121-2000I20180121-0800I20180120-1500I20180120-0800I20180119-2000Thomas Watson1-1/+1
happen in ConfigApplier.refreshPackages Change-Id: I39271ba32f2d10b71cb4a3cc24c0554c41e3173d Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2018-01-19Remove non-javadoc in DirectorTask.Alexander Kurtakov1-4/+0
Change-Id: I58e39480fea478b27c34308bc75e4ac23073bffb Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-19Cleanup RemoveIUTask.Alexander Kurtakov1-11/+6
* Remove useless throws declaration. * Stop using deprecated methods. Change-Id: If16f2246f596e8f9fabc90ac7bfa2d6c0edba4cd Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-16Bug 528387 - Dedicated xml elements for generic requirementsI20180119-0110I20180118-2000I20180117-2000Todor Boev27-755/+1315
- Renamed IProvidedCapability.getAttributes() to getProperties(). This is in sync with other parts of p2 that use "properties" for such data. E.g. the IU properties. - Extended content.xml read/write with a new serialization format for requirements with the "requiredProperties" element. It is used to build an IRequirement that has a standard match expression that applies an LDAP filter to the capability properties. It was not possible to extend the existing "required" element in a way that will make old p2 builds ignore the extended version. - Extended the content.xml read/write shared properties handling logic with "type" attribute. Older p2 builds will ignore it and use strings. Also the "type" attribute only appears in the "properties" extension of "provides" which will be ignored by old p2 builds to begin with. - Some additional cleanup to the content.xml read/write - Increased the current content.xml format version from 1.1.0 to 1.2.0. Old p2 builds declare compatibility with [1.0.0, 2). - Made the handling of the property types supported by a capability safer. E.g. unknown types are converted to Strings. E.g. ProvidedCapability verifies that only supported types are used. - Made the handling of generic requirements reflect the real semantics. E.g. with correct handling of the resolution:=optional|mandatory flag rather than to declare everything optional to avoid breakages in older p2 builds. This is possible because the "requiredProperties" element is completely ignored by older builds. E.g. now if an extender or service is missing provisioning will fail as it is supposed to. - Added factory methods to MetadataFactory for LDAP based requirements. - Added a planner test for LDAP requirements - Cleaned up the AutomatedDirectorTest - Cleaned up some LDAP matching test cases. Change-Id: Ifff77b3ea4c9cea33fd236ed101b1f33c173891d Signed-off-by: Todor Boev <rinsvind@gmail.com>
2018-01-11Bug 529684 - Failures in testDefaultJavaProfile and testOSGiMinI20180116-2000I20180115-2000I20180114-2000I20180113-1500I20180112-2000I20180111-2000Thomas Watson1-3/+3
Change-Id: I03d36472ad57aa8f5a68d8e719a906e7c29efec8 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2018-01-05Fix unnecessary else clause warnings.I20180111-0530I20180110-2000I20180110-0100I20180109-2000I20180108-2000I20180107-2000I20180106-1500I20180105-2000Alexander Kurtakov4-13/+9
Change-Id: I516845d1732386a34d3078aa111cbd5b306b76c5 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-05Remove no longer needed api_filters.Alexander Kurtakov5-366/+1
Change-Id: Ibd6002caa96314af9986a1491b8e1557105dcc1c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-03Bug 529078 - Add header Automatic-Module-Name for Java 9I20180104-2000I20180104-0030I20180103-2000Karsten Thoms56-4/+58
Increment versions for Eclipse 4.8 Photon Change-Id: I678108c1f5afa895be26040184cd8c21e83a8a0e Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-02Fix warnings in p2.tests.I20180103-0140I20180102-2215I20180102-2000Alexander Kurtakov2-9/+11
Useless throws and instanceof checks. Change-Id: I104e88433c551512e68329b4648b8038d9ccd146 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-12-15Remove MaxPermSize from test.xml file.I20180101-2000I20171231-2000I20171230-1500I20171229-2000I20171228-2000I20171227-2000I20171226-2000I20171225-2000I20171224-2000I20171223-1500I20171222-2000I20171221-2000I20171220-2000I20171219-2000I20171218-2000I20171217-2000I20171216-1500I20171215-2000Alexander Kurtakov1-1/+1
Deprecated and ignored, let's reduce the noise in the log. Change-Id: I151dc01143426532b5b54e33b61d68f4fa69395d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-12-15Revert "Revert "Bug 528494 - Using the match operator for RequiredCapability""I20171215-0930I20171215-0215Alexander Kurtakov12-261/+358
This reverts commit 07c80afa6a12b3170e1b6b1dd5b7dadc775a501e. Revert the revert - issue is with multiple layers of features they need manual touching. Change-Id: I3b4b8f2d64ed02d79ffd7bd9c7c5b85b45f8bd21
2017-12-15Revert "Bug 528494 - Using the match operator for RequiredCapability"I20171215-0120Alexander Kurtakov12-358/+261
This reverts commit 72c083ed10a1cca83f00befbefc279af09779df0. To ensure that today's build failure is not caused by this change. Change-Id: I3e874183b62a3f6456afa00426f9efb230639b49
2017-12-13Bug 528494 - Using the match operator for RequiredCapabilityI20171214-2000Todor Boev12-261/+358
- Fixed the BundlesAction conversion of open ended OSGi version ranges to agree with the P2 open ended version ranges. - Fixed the publisher tests to rely less on IRequiredCapability Change-Id: Iaf1232bfe361ed4d6bb448cc0b210ddfe120569b Signed-off-by: Todor Boev <rinsvind@gmail.com>
2017-12-12Bug 528408 - Extract the IRequirement impl from RequiredCapabilityI20171214-0120I20171213-2000I20171212-2000Todor Boev15-362/+514
- Fix p2 codebase to use MetadataFactory instead of new RequiredCapabiilty - Work around the implicit restriction that IRequiredCapability must always have maxCard > 1. This is due to the serialization format that does not support maxCard == 0 since it only has optional and multiple flags. Change-Id: Ia8f2c9abd4aee553020018032a22784f1af3b3ba Signed-off-by: Todor Boev <rinsvind@gmail.com>
2017-11-28Bug 527783 - Entries in error log: org.eclipse.update.configurator -S4_8_0_M4I20171211-2000I20171210-2000I20171209-1500I20171209-1020I20171208-2000I20171206-2000I20171206-0800I20171205-2000I20171205-0800I20171205-0250I20171205-0030I20171204-2000I20171204-0850I20171204-0830I20171204-0530I20171203-2000I20171203-0800I20171202-1500I20171202-0800I20171201-2000I20171201-0600I20171201-0345I20171130-2100I20171130-2000I20171129-2000I20171128-2000Alexander Kurtakov1-1/+7
Could not install bundle... Restore update.configurator reconciler disabling in ConfigCUsAction. It was removed with commit a85029f8ce86497b570c955d84fb60f6324bdd20. Change-Id: I8a64dd6ed8c34208372721c05f0dd63ee3097495 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-11-22Bug 527379 - Remove references to update.configuratorI20171128-0100I20171127-2000I20171126-2000I20171125-1500I20171124-2000I20171123-2000I20171122-2000Karsten Thoms13-43/+17
Change-Id: Iaba644ee46cb1adaad9c9d7359cceacf847d01fa Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-11-21Bug 525550 - The EquinoxFwAdminImpl component is never deactivatedI20171121-2000Todor Boev1-1/+1
Change-Id: Ia28792ed9bc2e196ae23f9176bb6deb67973ef9f Signed-off-by: Todor Boev <rinsvind@gmail.com>
2017-11-15Bug 527309 - Move p2.tests.ui to Java 8I20171121-0020I20171120-2225I20171120-2000I20171119-2000I20171118-1500I20171117-2000I20171116-2000I20171115-2000Alexander Kurtakov36-250/+271
* Bump BREE. * Enable more warnings. * Update minor version. * Generify. * Add missing Override/Deprecate annotations. * Try-with-resources. Change-Id: Ib552796cc41bf978877264fd32078f5c936b774d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-11-15Bug 527249 - Remove referrences to update.coreAlexander Kurtakov2-2/+2
Bump p2.tests.ui version. Change-Id: Idac6885c5d7e62aefe0d18bfa65e611172cce517 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-11-14Bug 527249 - Remove references to update.coreI20171115-0115I20171115-0025I20171114-2000Karsten Thoms6-31/+13
Change-Id: I3608729ecc53373e5632ea03a13ebe3e7c3d2dad Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-10-25Bug 526473 - Add "Uninstall as search term to the preferencesI20171113-2000I20171112-2000I20171111-1500I20171111-0410I20171111-0155I20171110-2000I20171109-2000I20171108-2000I20171107-2000I20171106-2000I20171106-0630I20171105-2000I20171104-2025I20171104-1500I20171103-2000I20171103-1105I20171103-0715I20171103-0405Lars Vogel1-1/+1
Change-Id: I253a6aa2f54056fa69af4a79a8c02e37cc92962b Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2017-10-18Bug 505808 - Read platform filters in category.xmlS4_8_0_M3aS4_8_0_M3I20171102-2000I20171101-2000I20171031-2000I20171030-2000I20171030-0400I20171029-2000I20171028-1500I20171027-2340I20171027-2000I20171025-2000I20171025-0800I20171024-2000I20171024-0800I20171023-2000I20171023-0800I20171022-2000I20171022-0800I20171021-1500I20171020-2000I20171019-2000I20171018-2000Mickael Istria1-1/+14
Change-Id: I3efae8b14bde7a1cbd148b430e7a7fcbf659cf3e Signed-off-by: Mickael Istria <mistria@redhat.com>
2017-10-13Revert "Bug 506432 - [ui] p2 install dialog shouldn't be modal "I20171017-2000I20171017-0515I20171016-2000I20171015-2000I20171015-0655I20171014-1500I20171013-2000Thomas Watson1-4/+2
This reverts commit c032cd7c1538834686a9f16c203a9094084631d8.
2017-10-13Revert "Bug 506432 - [ui] p2 install dialog shouldn't be modal "Thomas Watson1-1/+1
This reverts commit e5c4235323ad43dfa5aa3aaffa6527de329f994b.
2017-10-13Revert "Bug 506432 - [ui] p2 install dialog shouldn't be modal"Thomas Watson1-12/+1
This reverts commit ec0e89de420e1c0c3bce490799a7eba44338b294.
2017-10-13Bug 525969 - Use shorter text in restart dialog in line with MicrosoftLars Vogel1-2/+1
design guidelines / material design Change-Id: I0733e93e7d5893b22f59d74bd098c4922d47eabf Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2017-10-13Bug 525773 Set lower version on org.eclipse.equinox.p2.metadataKarsten Thoms9-10/+10
Bundles use new API method VersionRange#create(String) which was introduced in version 2.4.0 Also set exported version of package org.eclipse.equinox.p2.metadata in bundle org.eclipse.equinox.p2.metadata Change-Id: I9c8044935b01811acf6b865f8a6701bd5fc50cb3 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-10-11Fix warnings in ui.importexport.I20171012-2000I20171011-2000Alexander Kurtakov2-19/+14
* Unnecessary else clauses. * Variables hiding. * Synthetic methods by using lambdas. Change-Id: Ibc6e456ff22313e95c2000ab26b0b439f74c6332 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-10-11Remove deprecated -XX:MaxPermSize from replication launch config.Alexander Kurtakov1-1/+1
Change-Id: I965cc1150909bfcaff4e5a8a7594b1a8ae027960 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-10-11Bug 520131 - "Add Repository" dialog should use verbsDavid Weiser3-2/+5
Change-Id: I15a6750e6351ddaa0948f878228529a834a17e0b Signed-off-by: David Weiser <david.weiser@vogella.com>
2017-10-10Bug 520638 - Error Contacting Site dialog should use verbs (Edit)I20171011-0305I20171010-2000David Weiser3-1/+6
Change-Id: Id7113cd7ea0e5c354f6c502f2fac9d7f914f1540 Signed-off-by: David Weiser <david.weiser@vogella.com>
2017-10-10Bug 525797 - Move updatechecker to Java 8Alexander Kurtakov6-20/+72
* Bump BREE * Bump minor version * Update warnings for newer Java versions. * Add missing Override annotations. * Remove redundant type arguments Change-Id: I2d1a0bcc5ebc8622628988f8441774253cd77e6a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-10-10Bug 525796 - Move transport.ecf to Java 8Alexander Kurtakov9-38/+74
* Bump BREE. * Bump minor version. * Enable warnings for newer Java versions. * Add missing Override annotations. * Lambda conversion. * Remove redundant type arguments. * Add missing NON-NLS Change-Id: Ib09042c1913e41fc46e0f7b85e29942b1835f75a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>

Back to the top