Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-06-04Bug 563840 - POM and product version change for 4.17 releaseI20200606-0400I20200606-0050I20200605-2140I20200605-1500I20200605-1230I20200605-1200I20200605-1150I20200605-0950I20200605-0910I20200605-0720Sravan Kumar Lakkimsetti1-1/+1
Change-Id: I7556ef8613828ded9a89fb5e067185e68e1615c2 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
2020-04-06Bug 536106 - pack200 is being deprecated in java 11 and removed fromI20200408-0600I20200407-1800I20200407-1210I20200407-0120I20200406-1800Alexander Kurtakov3-4/+14
java 14 Fix Pack200ProcessorStep to still return OK if it's not enabled due to missing pack200 utilities. Disable some tests that rely on packed content. Adjust others as on Java 14 packed content is not downloaded thus results differ. Change-Id: I65f16d4ebbc41e20ed7d2486ea9109fffa439779 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-03-23Bug 561346 - NoSuchMethodError when built on Java 11 but run on Java 8I20200323-1800Mat Booth1-0/+11
Sets the "release" to 8 when building with JDK 9 or newer. Change-Id: Iecd8a934d4e48c2c674f223d3725d452e519f523 Signed-off-by: Mat Booth <mat.booth@redhat.com>
2020-03-06Bug 560872 - POM and product version change for 4.16 releaseY20200308-0520X20200306-1900I20200307-1800I20200307-1145Mat Booth1-1/+1
Change-Id: I4a7bad00022f400f5a467921e67551b11277f1ca Signed-off-by: Mat Booth <mat.booth@redhat.com>
2019-12-24Bug 558596 - The tests for read-only/canWrite have the undesirableY20200103-2350I20200104-0625I20200104-0600I20200103-1800I20200102-1800I20200101-1800I20191231-1800I20191230-1800I20191229-2200I20191229-1800I20191228-1800I20191227-1800I20191226-1800I20191225-1800Ed Merks1-8/+3
side-effect of changing File.lastModified Change-Id: I8b6389654dbbb03cfa08252c520f12b225a708c8 Signed-off-by: Ed Merks <ed.merks@gmail.com>
2019-12-11Use jdk 5 for-each loopI20191211-1805Carsten Hammer1-2/+2
Replace simple uses of Iterator with a corresponding for-loop. Also add missing braces on loops as necessary. Change-Id: I0b989291c6067ee9d1a966ac6bd9ac280cf8fad0 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
2019-12-11Version updates for 4.15 streamKarsten Thoms2-2/+2
Required for - https://git.eclipse.org/r/#/c/153080/ - https://git.eclipse.org/r/#/c/153081/ - https://git.eclipse.org/r/#/c/153082/ - https://git.eclipse.org/r/#/c/153083/ Change-Id: I37e7e2612bfd04b0f05f3e705efbcb726426c8f9 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-12-06Bug 553742 - POM and product version change for 4.15 releaseY20191208-2315I20191209-1110Niraj Modi1-1/+1
Change-Id: If2dbc6ab9c165c2fa39a0f6d5bbb600b444ec67a Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-10-15Remove not needed api_filters.Alexander Kurtakov1-11/+0
Change-Id: I7812b96eb29741c1e8b5aaccdcc4ffa972791dc0 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-14Use jdk 5 for-each loopCarsten Hammer3-13/+13
Replace simple uses of Iterator with a corresponding for-loop. Also add missing braces on loops as necessary. Change-Id: I044ba2ecb69c7c5e1f30b6c60f345078b2fa7b3b Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
2019-10-12Bug 471861 - The "eclipse.p2.max.threads" property has no effect forI20191013-1800I20191012-1800Ed Merks1-9/+11
values greater than four Update SimpleArtifactRepositoryTest.testMaximumThreads() to test for the modified expected behavior. I.e., that the repo can specify a maximum that must be respected, the user can specify a maximum that is respected if the repo doesn't specify a lower maximum, and if the user doesn't specify a maximum, it behaves the same way as if the user specified a maximum of 4. Change-Id: I64b80d04b982ef37e60cf07312084ffaaab7b05a Signed-off-by: Ed Merks <ed.merks@gmail.com>
2019-09-16Bug 512678 - avoid locking the UI via IP access to seed SecureRandomLars Vogel1-45/+3
with Random Also removes unsed getIPAddress method Change-Id: I68e123ae8da73bb32be457507fe8e7b919cdb3ae Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-09-16Version bump for 4.14Karsten Thoms2-2/+2
- org.eclipse.equinox.p2.sdk - org.eclipse.equinox.p2.rcp.feature - org.eclipse.equinox.p2.artifact.repository - org.eclipse.equinox.p2.user.ui - org.eclipse.equinox.p2.core.feature - org.eclipse.equinox.p2.extras.feature Required for - https://git.eclipse.org/r/#/c/148397 - https://git.eclipse.org/r/#/c/148462 - https://git.eclipse.org/r/#/c/148977/ Change-Id: I18b03a58fa21f772d603335f0c02de7320d29862 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-09-06Bug 550767 - POM and product version change for 4.14 releaseI20190909-0925Niraj Modi1-1/+1
Change-Id: I7175ecdf7fe0ed9b9a99c24870069f8a2a743491 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-08-15StringBuilder instead of StringBufferY20190822-0900Y20190819-0900S4_13_0_M3I20190823-0530I20190821-1800I20190821-0600I20190820-1800I20190820-0855I20190820-0600I20190819-2355I20190819-0600I20190818-1800I20190817-1800I20190816-1800I20190816-0155Lars Vogel5-10/+10
Change-Id: Ib28997e519ad672ca160776a20a65917fabb6a37 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-08-15Use for-each loop in Pack200ProcessorStepLars Vogel1-2/+2
Done by the save actions. Change-Id: Ic49c0dc336085c981fa974b46803c07d571e9117 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-07-16Remove useless non-javadoc comments.Alexander Kurtakov2-8/+10
Change-Id: I8344b55fde0515c8b64c576017a692108e4cadd7 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-07-08Bug 541781 - Support dynamically registered MessageDigest implementationsY20190715-2335Y20190715-0900I20190715-1800I20190714-1800I20190713-1800I20190713-1105I20190713-0230I20190712-1800Mykola Nikishov5-22/+54
Extend o.e.e.p2.artifact.repository.artifactChecksums extension point with attribute providerName to support custom MessageDigest implementations as per Java Security API. To get an instance of custom MessageDigest in ChecksumProducer's getMessageDigest(String, String), look for service object under java.security.Provider interface filtered by providerName property and pass it to java.security.MessageDigest's getInstance(String, Provider). Throws NoSuchProviderException if no such service was found. Bundle that contributes such implementation should register it with the Framework service registry under interface java.security.Provider. The registration properties of the service should contain property 'providerName' with value of type String as returned by implementation's java.security.Provider.getName(). The same value should be used for providerName attribute in artifactChecksums extension point. o.e.equinox.p2.artifact.checksums.bouncycastle bundle demonstrates how this works by adding support for Whirlpool and DSTU7564 message digests using the Bouncy Castle Crypto APIs [1]. It is not part of the distribution and used by unit tests only. [1] https://bouncycastle.org/ Change-Id: I0cfd06ceca6e1911d69bab09331399500a00dcee Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2019-07-01Convert to the generic IProvisioningAgent.getService()Alexander Kurtakov7-80/+94
Change-Id: If595ceb183461e5a9565d58ccd6a432291f2281b Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-06-26Enable save actions for p2.artifact.repository.Alexander Kurtakov1-6/+17
Let the IDE do more work for us. Change-Id: Ieaf6299cf02bbd128d3c3a360824e47da75d4dc9 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-06-11Move away of old non-managed _core jdt formatter.Alexander Kurtakov4-17/+124
It fails when formatting new constructs like try-with-resources. Move to the built-in Eclipse profile. Change-Id: Id71d9e38ba12c623cded4a067e9e6a69da991ea4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-06-07Bug 547907 - POM and product version change for 4.13 releaseI20190607-0725Niraj Modi1-1/+1
Change-Id: I8b25fc54e516b1507d951276c907ac26a7961e19 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-03-30Bug 545183 - When publishing, do not calculate MD5 twiceI20190403-1800I20190402-1800I20190401-1800I20190331-1800I20190330-1800Mykola Nikishov3-9/+2
Since [1], MD5 is contributed via artifactChecksums extension point and ChecksumProducer's produce(File, String) method should not explicitly request its generation. [1] e4b77e59e038d101733b37be47941c899a88d7d3 Change-Id: Ie1a5adb66e7af15d02710c3f586f462f31f89d8d Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2019-03-08Bug 545094 - POM and product version change for 4.12 releaseNiraj Modi1-1/+1
Change-Id: Ied84dbd6cc7e2c1b72bd072e8286604586c28e72 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-02-12Bug 544371 - Update user docs links to point to Java 11 contentY20190213-2200Y20190213-0305I20190215-1800I20190215-0630I20190215-0055I20190214-1800I20190213-1800I20190212-1800Alexander Kurtakov1-1/+2
Link to JCA 11 guide in p2 extension point. Change-Id: I3bc547ff51fc5bbdf14daaa117e4577e464398df Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-01-21Remove unused parameter from SimpleArtifactRepository's private methodMykola Nikishov1-2/+2
Change-Id: I6fa74976a18dfc492aab8079c12efd30c551c664 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2019-01-14Bug 543047 - ChecksumVerifier should read checksum from processing step ↵Y20190116-2200I20190116-1800I20190115-1800I20190114-1800Mykola Nikishov1-11/+1
descriptor's data only Initially, ChecksumVerifier has been modeled after MD5Verifier which tries to read artifact descriptor's properties and falls back to processing step descriptor's data. But ChecksumVerifier actually never touches artifact descriptor and its properties: - ChecksumUtilities's getChecksumVerifiers is the only method to create instances of ChecksumVerifier - ChecksumUtilities's getChecksumVerifiers knows the property to read checksum from and stores its value into processing step descriptor's data This decouples ChecksumVerifier from artifact descriptor properties. Change-Id: I635f89d598df6a90a068220f0c1ba31bf603b45d Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2019-01-14Bug 543024 - Initialize ChecksumVerifier as ProcessingStepMykola Nikishov2-10/+25
According to ProcessingStep's javadoc, a processing step should be created in two steps: ProcessingStep step = new ProcessingStep(...); step.initialize(agent, processingStepDescriptor, artifactDescriptor) Only after initialization, the step is ready for linking with other steps or output streams. Let ChecksumVerifier follow this pattern. Change-Id: Ic4ff2aacb137b6bef8e616624b3d9797381f07fe Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2019-01-04Bug 536282 - Check whether processing step is availableY20190109-2200Y20190108-0410Y20190108-0135Y20190107-0850Y20190107-0505S4_11_0_M1I20190109-1800I20190109-0655I20190108-1800I20190108-0600I20190107-2050I20190107-1800I20190107-0600I20190106-1800I20190106-0600I20190106-0150I20190105-1800I20190105-0810I20190104-1800Alexander Kurtakov1-0/+11
Add version filter for the wrongly bumped minor version. Change-Id: I5ac167c324a30218bc4b086896e0f7674bd5a84a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-12-21Contribute MD5 via artifactChecksums extension point instead of MD5Verifier ↵Mykola Nikishov3-20/+19
processing step Since now, artifact checksums are verified exclusively by the combination of ChecksumVerifier processing step + contributions to artifactChecksums extension point. There are no more internal usages of MD5Verifier and it can be removed. But let it sit here for some time. ChecksumUtilitiesTest ensures that MD5 checksums from IArtifactDescriptor.ARTIFACT_MD5 and IArtifactDescriptor.DOWNLOAD_MD5 properties are still honored. Change-Id: Ib4bec48504c3b2f4296425f6d2e930e402b5b984 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-12-20Bug 536282 - Check whether processing step is availableI20181220-1800Mykola Nikishov5-12/+68
Extend ProcessingStep with isEnabled() method that checks if step's dependencies are available. ProcessingStepHandler's canProcess will ensure that all required processing steps are enabled and skip this check for optional processing steps. MirrorRequest's perform(IArtifactRepository, IProgressMonitor) method will skip optimized artifact if it can't be processed and chose canonical one. Pack200ProcessorStep's isEnabled() checks if 'unpack200' CLI utility is available by calling UnpackStep's canUnpack(). Change-Id: I048db3b833f6e0881cca06ad48be37ad6d17a0c9 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-12-07Bug 541822 - POM and product version change for 4.11 releaseY20181212-2200I20181214-0105I20181213-1800I20181212-1800I20181212-0230I20181211-1800I20181211-0230I20181210-1800I20181210-0755I20181210-0535Niraj Modi1-1/+1
Change-Id: I6cc635d174e4a5a814112b7573a7cab95959fb31 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2018-11-19Close HTML tag in artifactChecksums.exsdY20181121-2200S4_10_0_M3I20181121-1800I20181121-0910I20181121-0600I20181120-1800I20181120-0600I20181119-2315I20181119-1800Mykola Nikishov1-1/+1
Change-Id: I77151f11c944c5642b7a2e5cb0e5f898628dab08 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-11-06Bug 531166 - Prevent NPE on artifact download when URI scheme is null.I20181112-1800I20181112-0435I20181112-0320I20181109-0350I20181108-1800Roland Grunberg1-1/+1
Under certain circumstances, the mirror resolution requests return just the absolute file path for a resource with no scheme or host specified. (eg. /path/to/resource). This causes an NPE when getScheme() is called and used for comparison. Change-Id: Ic64323b44a9a1df7fad3a09da2f07a0a3d1a5a10 Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2018-11-06Make MessageDigestProcessingStep's methods finalY20181107-2200I20181107-1800I20181107-0200I20181106-1800Mykola Nikishov1-4/+2
Methods write(int) and close() of this internal non-API class are not meant to be modified by subclasses. Change-Id: I9253d0f5f4ec3b8fe14f5466e78146b40b3d212a Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-10-13Revert "[RFC] Bug 536282 - Check whether processing step is available"I20181017-1800I20181016-1800I20181015-1800I20181015-0255I20181014-2350I20181014-1800I20181013-1800Mickael Istria3-22/+3
This reverts commit 7f2938951c1f39a7707a06259116aee3d9339f58. Change-Id: I93f8f1f8ce2583a8d241ea7ed7201286bfeea9bb
2018-10-12[RFC] Bug 536282 - Check whether processing step is availableI20181012-1800Mykola Nikishov3-3/+22
Change-Id: I6a625d3fe89ca63a4b176f4fef18f07f9ba4d103 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-10-09Simplify ChecksumUtilities' getLegacyMd5Verifier(String)Mykola Nikishov1-14/+2
In ChecksumUtilities' getChecksumVerifiers, if artifact descriptor has ARTIFACT_MD5 or DOWNLOAD_MD5 properties, ChecksumHelper's getChecksums will populate checksums map with MD5 checksum. It makes no sense to duplicate logic from ChecksumHelper's getLegacyMd5Checksum in getLegacyMd5Verifier method, let it operate on MD5 checksum value directly. Change-Id: I867c1d0e11ec245eb07708553f265bde422d07f8 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-10-05Reuse ChecksumHelper.MD5 constantI20181008-0600Mykola Nikishov2-7/+7
Change-Id: Ic011655240f2772e9356ab5a17e8a54eb3700236 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-10-04Bug 536326 - Bump versionMickael Istria2-2/+2
Change-Id: Icf815e4895dfdae0345b3a2cd19cd1a35d051929 Signed-off-by: Mickael Istria <mistria@redhat.com>
2018-10-03Bug 536326 - Report ARTIFACT_PROCESSING_ERROR from pack200 processing stepMykola Nikishov1-3/+7
When Pack200ProcessorStep fails to unpack artifact, it reports MirrorRequest.ARTIFACT_PROCESSING_ERROR. Since b26ae58972e96118b4f9e4496438fc218e5ab2d0, processing step must return MirrorRequest.ARTIFACT_PROCESSING_ERROR to report non-transport artifact errors and instruct SimpleArtifactRepository's downloadArtifact(IArtifactDescriptor, OutputStream, IProgressMonitor) via artifactError(IStatus) method to stop retrying. This fixes failing MirrorRequestTest's testFailToCanonicalWithMirrors() from the previous commit. Bug: 377976 Change-Id: Ib0c3316915044d115408a91a45a590266a63e8b6 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-09-04Bug 538531 - POM version change for 4.10 releaseY20180905-2200I20180910-0310I20180907-0855I20180907-0715I20180907-0650I20180907-0400I20180906-1400I20180906-0005I20180905-1305I20180905-0410Sravan Kumar Lakkimsetti1-1/+1
Change-Id: I926c2afdfc2e32a627aec616130e33bb25629a42 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
2018-08-22Bug 535802 - Update p2 EPL-2.0 for its plug-ins - Part 1Lars Vogel42-126/+252
Change-Id: I5d8231e4070987a258d03a475ea69046263ea6b3 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-08-22Adds linebreak before the EPL 1.0 licenceLars Vogel4-4/+8
Change-Id: Ic1638772d5f58d4567a83b519ecd885b80f5602b Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-08-22Fixes incorrectly formated EPL 1.0 license headerI20180822-0800Lars Vogel4-4/+8
Change-Id: I6337f0a9e32e7eb71ba6e368137e180a456bb8da Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-08-20Bug 530393 - EPL 2.0 for exsd in equinox.p2I20180821-2000I20180821-0800Lars Vogel3-10/+18
This updates the exsd definitions to EPL 2.0. Regex expression used below, manually fixed: bundles/org.eclipse.equinox.p2.artifact.repository/schema/artifactChecksums.exsd bundles/org.eclipse.equinox.p2.discovery.compatibility/schema/connectorDiscovery.exsd git checkout master git reset --hard origin/master git pull find . -type f -name "*.exsd" -exec sed -i -E 's/http:\/\/www.eclipse.org\/legal\/epl-v10.html\&quot;\&gt;http:\/\/www.eclipse.org\/legal\/epl-v10.html\&lt;\/a\&gt;/https:\/\/www.eclipse.org\/legal\/epl-2.0\&quot;\&gt;https:\/\/www.eclipse.org\/legal\/epl-v20.html\&lt;\/a\&gt;\/\n\nSPDX-License-Identifier: EPL-2.0/' {} + find . -type f -name "*.exsd" | xargs sed -i 's/Eclipse Public License v1.0/Eclipse Public License 2.0/g' find . -type f -name "*.exsd" -exec sed -i -E 's/([[:blank:]]*[^[:blank:]])*([[:blank:]]*)(All rights reserved. )/\1\n\1\2/' {} + Change-Id: I01eb54895c4bcbb7cc1988fc176b2da984944e09 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-06-26Fix typo in MirrorSelector's initMirrors(IProgressMonitor) javadocY20180705-0105I20180704-2000I20180704-0805I20180704-0605I20180704-0545I20180703-2000I20180702-2000I20180702-0435I20180701-2000I20180630-1500I20180629-2000Mykola Nikishov1-1/+1
Change-Id: Ibbc6da645c2b547971c79f75bda7871d44c2b253 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-06-14Nothing to return from MirrorSelector's initMirrors methodY20180628-0525I20180629-0420I20180629-0400I20180628-2000I20180628-0230I20180627-2020I20180627-2000I20180625-1545I20180621-2000I20180618-0800I20180615-0655I20180615-0300I20180614-2045I20180614-2000Mykola Nikishov1-4/+3
Change-Id: I5c469e350b720d167333ad7142d3fa5275236877 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-06-13Refactor internal MirrorSelector's computeMirrors(String, IProgressMonitor)Mykola Nikishov1-11/+15
Change-Id: I88ceb0b4f5f076b4ba00cfeccc1a0b2c567c9fdb Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-06-13Refactor internal MirrorSelector's computeMirrors(String, IProgressMonitor)Mykola Nikishov1-10/+14
Change-Id: I427769a505ef055d3ea5df6481f5bb3546d787de Signed-off-by: Mykola Nikishov <mn@mn.com.ua>

Back to the top