Commit Graph

54 Commits

Author SHA1 Message Date
Nebil Kisa
8bf1a0752a ATS-791: Update to T-Engines 2.3.1 (#1072) 2020-06-26 14:51:24 +01:00
Nebil Kisa
8dbdc4df83 ATS-779: Update T-Engines (T-Core) 2.3.0 (#1060) 2020-06-19 21:56:06 +01:00
Alan Davis
88e08d3397 Revert "Restore REPO-4334 Move metadata extraction into T-Engines (#1015)"
This reverts commit e9b52f9f50.
2020-06-18 10:45:53 +01:00
Alan Davis
e9b52f9f50 Restore REPO-4334 Move metadata extraction into T-Engines (#1015)
This reverts commit 3e3cb0b300.

# Conflicts:
#	pom.xml
2020-06-18 09:04:10 +01:00
Alan Davis
3e3cb0b300 Revert "REPO-4334 Move metadata extraction into T-Engines (#1015)"
This reverts commit 63ace3abd8.
2020-06-17 00:25:58 +01:00
Alan Davis
9fefc6ff90 Pick up T-Engine 2.3.0 2020-06-16 20:57:01 +01:00
Alan Davis
9795fc3787 Pick up upstream projects and T-Engine 2.2.3 2020-06-16 18:16:37 +01:00
Alan Davis
8bf4331450 REPO-5188 SourceEncoding should not be used to select transforms. Get… (#1023)
- SourceEncoding should not be used to select transforms. 
- Removed the targetEncoding too as it is just the default value in the LocalTransform case and never supplied in the ATS call.
- Use T-Engine 2.2.2 which is compatible with this change
2020-06-06 07:42:45 +01:00
David Edwards
7156c1eacf ATS-743 Bump T-engines to 2.2.1 (#983) 2020-05-05 12:34:04 +01:00
Alan Davis
dd89a61aa2 Dummy change to try and force a build of master as a result of a commit. 2020-04-30 12:34:14 +01:00
antoniojfelix
79275a7e88 REPO-4915 - Keycloak upgrade to 9.0.3 (#962) 2020-04-28 11:38:07 +01:00
Alan Davis
7747c14dd3 Use version 2.2.0 of T-Engines
(cherry picked from commit 6ce6afa1c3)
2020-04-25 10:55:07 +01:00
Alan Davis
1b3098e613 Pick up T-Engine 2.2.0-A5 2020-04-24 08:39:43 +01:00
Alan Davis
ea3e7c85e2 Remove version from white source jar 2020-04-21 00:10:44 +01:00
Alan Davis
23690187cc REPO-5079,ATS-707: Use all-in-one T-Engine and fix tests (#943) 2020-04-20 23:43:21 +01:00
antoniojfelix
55dcb58d53 Updated the WhiteSource agent path (temporary solution, see REPO-4974) (#856) 2020-03-05 13:22:17 +00:00
kristian
ae7e3fe39e Revert "MNT-18497: Implement linkedNodeToJson logic"
This reverts commit 2835d684
2020-03-05 11:07:15 +00:00
kristian
2835d684d8 MNT-18497: Implement linkedNodeToJson logic 2020-03-05 10:48:58 +00:00
alandavis
2af1a96211 REPO-4791 If possible, use Local transforms where Legacy transforms are called.
The objective of this PR is to replace all the ContentService calls related to transforms with calls to the SynchronousTransformClient that switches between Local and Legacy transforms. This will allow us to remove the Legacy transforms at some point and also take advantage of the T-Engines which can be scaled.

- Introduced a ContentTransformService interface to hold all the ContentService calls related to transforms and an implementation class ContentTransformServiceAdaptor as a super class of ContentServiceImpl. The Adaptor provides code to allow the SynchronousTransformClient to be called. As a result any external custom code that uses these methods will be able to take advantage of Local or Legacy transforms.
- The transform code originally in ContentServiceImpl has been moved to ContentTransformServiceImpl, which is a super class of the LegacySynchronousTransformClient.
- All calls in the repository have been replaced with calls to SynchronousTransformClient. There are still a few calls to these methods in ContentServiceImplTest and ArchiveContentTransformerTest that have not been changes as they test Legacy transform code.
- The asynchronous LocalTransformClient now uses the SynchronousTransformClient.
- Bug fix to the TransformationOptionsConverter as it was found that the page number being used for images was wrong. Legacy transformers start at page 1, where as Local and ImageMagick itself start at 0.
- Added a conversion to the new transform option (Map<String,String) in TransformationOptionsConverter, as some of the ContentTransformServiceAdaptor methods need to wrap a Local transformer in a Legacy transformer, so that it may be returned.
- A number of existing tests were passing because the wrong exception was being thrown. When the Local  transformer was used this became more obvious as the tests would fail.
- To avoid other test failing the Local Transform registry is loaded on start up rather than waiting for it to be scheduled, as a few milliseconds needed to read the config was till too large for the test to run and fail. A similar approach had been taken before with tests.
2019-11-29 22:13:43 +00:00
Ancuta Morarasu
60ddccdf17 Revert back dev branch in travis 2019-11-27 14:29:19 +02:00
kristian
9a28db46a5 REPO-4792: use fix branch version for unit tests 2019-11-26 10:48:52 +00:00
Andreea Nechifor
c6a6b59ee6 MNT-21009 : Revert travis for master. 2019-11-26 12:07:00 +02:00
anechifor
6438f0b595 MNT-21009 : Sandboxed arbitrary Code Execution (#657)
* MNT-21009 :  Sandboxed  arbitrary Code Execution

* MNT-21009: added basic code java for javascrrict security check.

* MNT-21009 : added release for MNT-21009

* [maven-release-plugin][skip ci] prepare release alfresco-repository-MNT-21009

* [maven-release-plugin][skip ci] prepare for next development iteration

* MNT-21009: added sandboxNativeObject in case of calling getClass using reflection.

* [maven-release-plugin][skip ci] prepare release alfresco-repository-MNT-21009

* MNT-21009 : changes after review.
2019-11-26 11:32:45 +02:00
alandavis
56b6371302 REPO-4697/REPO-4701 Async transforms for Solr (#643)
* REPO-4698 Add asynchronous transform method to RenditionService2
* remove extra method transformXX
* Remove extra tmp code
* comment update
* Added tests to RenditionService2Test for transform
* sync client for Solr api (#646)
* Added SynchronousTransformClient so both local and legacy transforms can be used in deprecated code like the V0 Solr rest api
* Refactor TransformClients so they look similar
* Added SynchronousTransformClient so both local and legacy transforms can be used in deprecated code like the V0 Solr rest api
* Refactor TransformClients so they look similar
* Undo trial removal of disable transform registry in a test class
transform method needs to access the selected transform in the same Thread.
* Switching should check return value rather than for an exception.
* remove extra code that does nothing from test.
* Use contentService.transform(reader, writer, options) to allow for failover to a lower priority legacy transform
* Add tests for SynchronousTransformClients
* Added TransformRequest model, TransformRequestConsumer, TransformRequestProcessor
* Added StubTransformReplyProvider to implement TransformReplyProvider.
* Admin Console 'Support' Transform Test operations broken
* Switched over to using synchronousTransformClient as the error was on the reply from the ATS as it did not know what to do with the rendition as the test source node was deleted by that time. Not really that much of a bug after all. Fixed anyway.
* Admin Console 'Support' Transform Test operations broken
  Consistent use of synchronousTransformClient rather than transformClient sometimes
2019-11-07 15:04:55 +02:00
Alan Davis
6eea7004d9 Pick up 2.1.0-RC3 T-Engines [no-release]
(cherry picked from commit 763a047e17)
2019-10-10 06:56:15 +01:00
Alex Mukha
9ca074c09b Cleanup maven cache before committing to Travis (#632) [no-release] 2019-10-09 10:54:30 +01:00
anechifor
70caf08f01 Revert sourcecleare integration. 2019-10-08 11:47:11 +03:00
anechifor
f19f849bc3 Enable veracode sourceclear
Enable veracode for software Composition Analysis.
2019-10-08 10:01:06 +03:00
Alan Davis
ce4f86207d Pick up T-Engine version 2.1.0-RC2 2019-09-20 14:35:27 +01:00
CezarLeahu
3225f63f94 REPO-4639 Content conversion failed using Tika (#587)
The Tika T-Engine was not being called by the Transform Service or Local transforms, because the sub-transform name was required.

Moved common classes (with repo) to alfresco-transform-model so that it can be used by the T-Engines to work out which sub transformer to use. InT also performed a refactor on these classes (alfresco-transform-model 1.0.2.7). Also includes changes to legacy transformers so that they don't pass the sub transformer name any more.
2019-09-12 21:49:17 +01:00
Andrei Zapodeanu
31fb18ad8d Fix/repo 4463 postgres 11 master (#549)
* REPO-4463 Enable testing with Postgres 11
2019-08-06 15:53:12 +03:00
Andrei Zapodeanu
fe6ea7c1e8 Revert "Merge b6df6f6110 into d881066d35ecadfc536a4794aed13620a37ef096"
This reverts commit bb21ae1c0d, reversing
changes made to d881066d35.
2019-07-24 18:57:09 +03:00
Andrei Zapodeanu
b6df6f6110 REPO-4463 Enable testing with Postgres 11 -- added parameters 2019-07-24 18:19:31 +03:00
Andrei Zapodeanu
de5c4fa97c REPO-4463 Enable testing with Postgres 11 -- added SNAPSHOT 2019-07-24 17:34:57 +03:00
Andrei Zapodeanu
0bcab88adf REPO-4463 Enable testing with Postgres 11 -- prepare for private build 2019-07-24 16:59:21 +03:00
Andrei Zapodeanu
9d0ed3ed20 REPO-4463 Enable testing with Postgres 11 -- use 11.4 2019-07-24 15:32:07 +03:00
Andrei Zapodeanu
08d6247d67 first commit 2019-07-24 10:49:26 +03:00
Cristian Turlica
192253b575 REPO-4530: Update supported PostgreSQL version to 10.9 (#526) 2019-07-18 11:39:34 +03:00
Alan Davis
bac1352ba0 Pick up 2.1.0-EA4 T-Engines 2019-07-17 17:17:12 +01:00
Alex Mukha
6a7398b927 Revert "Remove "quiet" flag in relese for debugging" [skip-ci]
This reverts commit be96ef0329.
2019-07-08 13:23:00 +01:00
Alex Mukha
be96ef0329 Remove "quiet" flag in relese for debugging 2019-07-03 11:10:51 +01:00
Alex Mukha
56640b6837 Add release stage in Travis (#507) 2019-07-03 09:44:58 +01:00
Alex Mukha
a88e0a88c6 Disable whitesource on HF branches 2019-06-28 15:48:13 +01:00
Alex Mukha
fa1ebb1aef Update Travis build agent to Xenial (#505) 2019-06-28 11:13:11 +01:00
Alan Davis
175820b0b7 Pick up T-Engine versions 2.1.0-EA3 2019-06-26 16:30:40 +01:00
Alexandru-Eusebiu Epure
c25de05760 Feature/local transform (#495) 2019-06-26 16:01:09 +01:00
Andrei Zapodeanu
f07837a3eb REPO-4296 Update docker and helm charts to use new ActiveMQ images (#425) 2019-04-25 15:06:01 +03:00
Alex Mukha
90d0386705 Limit WhiteSource scan to support branches or master 2019-04-12 19:07:39 +01:00
Alex Mukha
5ad0672bd3 Changed the old whitesource fs agent to unified 2019-04-12 15:17:48 +01:00
Alex Mukha
f1318c1ea4 Avoid unnecessary travis runs 2019-04-05 00:32:22 +01:00