Commit Graph

117 Commits

Author SHA1 Message Date
alandavis
c7d219ee23 ACS-247 Query accelerator
Relax permissions (restricted in error) as they are needed in alfresco-enterprise-repo
2021-01-12 07:40:18 +00:00
Alan Davis
8fcaa7febb ACS-247 Query accelerator (#234)
Provides hook points for the query accelerator in alfresco-enterprise-repo.

In addition to these, it also includes temporary code to add timing headers to REST API calls. These will be removed as part of REPO-5376.

Commits mainly by Bruno and Nana. Merging from old projects and changes from master by Alan.
2021-01-11 11:31:36 +00:00
Eugenio Romano
facbef9ca9 Decrease log severity (#144) 2021-01-11 12:51:01 +02:00
Nicolas Barithel
a6fce739b6 MNT-21968 : Cannot use some document names if Smart Folders feature is enabled
MNT-21968 : Cannot use some document names if Smart Folders feature is enabled
   - catch NumberFormatException on parseInt
   - test case "v00Draft.pdf"
2021-01-11 12:23:30 +02:00
Alan Davis
04d699cf86 REPO-5191 Bug: T-Engine should provide mapping rather than the repo. (#227)
Bug found while reviewing documents on how to create a custom metadata extractor. The original refactor had left the repo doing the mapping. It should have been passing the fully qualified repo properties to the T-Engine to do the mapping.

Linked to:
    Alfresco/acs-packaging#1826
    Alfresco/alfresco-transform-core#316
2021-01-07 11:56:42 +00:00
Alan Davis
5d2c83c14b REPO-5203 Remove legacy transformers (#181)
Now that the T-Engines provide parity with in process legacy transforms and metadata extract, the legacy transform code is now being removed. This will allow the documentation to be greatly simplified and a number of libraries to be removed.

Custom legacy transforms need to be moved to T-Engines. ACS 6 still provides a version where both may be run in parallel. New versions of the document transform engine (DTE) and media management (MM) are planned for ACS 7.
2021-01-03 13:20:22 +00:00
Denis Ungureanu
f786f4ffaf ACS-1033 : Spring upgrade to 5.3.2 (#213)
- Update test as per 5de549d7d4
- before spring 5.3.0, AbstractFallbackSQLExceptionTranslator was translating org.postgresql.util.PSQLException as UncategorizedSQLException - now it returns null (ref. e9cded560d (diff-c6aa1c6a4b11e8a722808e945c4c5b6ef471c42871c7ce830554dde81ad7f2c2L89))

Co-authored-by: CezarLeahu <35226487+CezarLeahu@users.noreply.github.com>
2020-12-23 12:21:03 +02:00
Adina Ababei
3891306459 ACS-1041 Fixed intermittent test failure - events2 (#208) 2020-12-16 15:23:55 +02:00
evasques
1b2c5d4c37 MNT-22040 Copying nodes that contain sys:pendingFixAcl aspect (#188)
* MNT-22040 - Copying nodes that contain sys:pendingFixAcl aspect
* Increased coverage of unit tests
* Added public method removePendingAclAspect
* Changed the job to use the removePendingAclAspect method instead of
repeating the same set of operations twice
* Changed method setFixedAcls to use sharedAclToReplace property of node
if it has the pendingFixAcl aspect applied instead of using the current
shared ACL to be replaced

* Added more tests and validations

* Fixed cuncurrency issues when updating parent and child at the same time, permissions triggered by a move on a node with a pending acl and permissions needeing to be reapplied on nodes that already have the pending acl aspect

* Increase the tree strcuture as sometimes we don't reach the timeout in tests

* code cleanup and formatting
2020-12-14 15:08:21 +00:00
Alan Davis
5d3a683915 ACS-978 Metadata extraction error extracting date from eml
Add extra data formats to std metadata extractors when the value is a String.
2020-12-05 15:28:03 +00:00
Angel Borroy
8da40d0d57 SEARCH-2589: Additional check for the SOLR 6 Tracking Bean. 2020-12-04 13:57:07 +01:00
Angel Borroy
9f2c10e6be SEARCH-2589: Check Solr6 subsystem doesn't include the ShardRegistry reference for Community 2020-12-04 13:13:35 +01:00
Angel Borroy
e949437be8 Merge pull request #193 from Alfresco/fix/SEARCH-2602_MissedInformationSearchPage
Fix/search 2602 missed information search page
2020-12-04 12:58:08 +01:00
Angel Borroy
64454ddc09 SEARCH-2602: Extract Strings to Constants. 2020-12-04 11:27:43 +01:00
Angel Borroy
908157bc01 SEARCH-2602: Mock test for Solr Summary report unmarshalling 2020-12-03 14:32:46 +01:00
Angel Borroy
796c887f1b SEARCH-2602: Fix JSON getString methods for values containing Number 2020-12-03 14:27:06 +01:00
Alan Davis
bfffcd3f61 ACS-960 Disable very frequent intermittent test failures (#187)
Part of Epic: ACS-959 Fix or suppress the content repository's intermittent test failures
2020-12-03 11:46:06 +00:00
Alan Davis
2d2b4357f9 ACS-976 Metadata extraction NPE thrown in multi-node cluster using ATS (#190)
* ACS-976 Metadata extraction NPE thrown in multi-node cluster using ATS

In a multi repo node cluster, it is possible one node requests a metadata extract via the ATS and
that another responds to it. In this case the responder needs to recreate the TransformRequest. In
this case the target mimetype was wrong, resulting in the TransformRequest being sent to the wrong
code which then through a NPE because there was no replyQueue specified on the TransformRequest.

* ACS-963 Investigate testSharedLinkCreateGetDelete failures

Modified date changes. It can change now as metadata extract is async
2020-12-03 09:38:12 +00:00
Angel Borroy
c595196343 SEARCH-2602: Fix JSON getString methods for values containing Number 2020-12-02 13:00:38 +01:00
Alan Davis
ea4e18d347 ACS-953 Unable to upgrade from ACS-7.0-M1 or ACS-7.0-M2 to ACS-7.0-A12 (#183)
* ACS-953 Unable to upgrade from ACS-7.0-M1 or ACS-7.0-M2 to ACS-7.0-A12

Now that we create internal releases of the form M.m.r-M9 (milestone), M.m.r-A9 (alpha) and M.m.r-RC9 (release candidate) during development and testing, we need to ensure we can upgrade from any of these to any other, as they may occur in any order and also to the final external release M.m.r. We also will allow a change from the final release back to an internal one for regression testing. The code within ModuleComponentHelper which calls this method, checks if it is the same version (0) and then if it is downgrading (> 0), so if they share the same M.m.r part matches AND is one of these formats, we return <0.
2020-11-30 19:54:21 +00:00
Alan Davis
ed4f353f9c ACS-938 metadata is not added when using Transform Service #176 2020-11-26 12:35:33 +00:00
Alan Davis
33f37731c7 REPO-5219 Allow AGS AMP to specify metadata extract mapping (REPO) (#169)
Added an optional extractMapping transform option to all metadata extractors to override the default one in the T-Engine.

In the case of the AGS AMP it extends the RFC822MetadataExtracter with its own class to specify a different set of document to system mappings. The class in the repo no longer does extractions, but is now used by the AsynchronousExtractor, which offloads extractions to T-Engines to obtain the mappings if it has been extended that are then passed to the T-Engine.
2020-11-19 17:04:52 +00:00
Jamal Kaabi-Mofrad
427777a048 ACS-778: Fixed IDS auth component by allowing other authentication components in the chain to have a go at authenticating the given user. 2020-11-17 21:31:30 +00:00
Cristian Turlica
f4f7698295 MNT-20250: Model updates not working for deployment in cluster (#37)
- added includeNewCheck to putAndCheckUpdate as a new optional parameter (default to false)
   - updated tests
2020-11-17 16:49:04 +02:00
Elia Porciani
7f3788225c [SEARCH-2533] (#158)
removed evenType class
2020-11-17 13:04:50 +01:00
Alan Davis
1b06e80448 Merge remote-tracking branch 'origin/master' 2020-11-16 15:00:58 +00:00
Eugenio Romano
963c874247 Merge pull request #120 from Alfresco/dev-dhrn-ACS-777
[ACS-777] Email notification for digital workspace
2020-11-16 09:24:26 +00:00
Alan Davis
032d23c76d REPO-5195 Handle AGS usage of RFC822MetadataExtracter
Put class back for now
2020-11-16 08:29:29 +00:00
Alan Davis
d70790f0c2 REPO-5190 Remove Metadata Extractors that are been offloaded in 7.0.0 (#148)
Removed all the Extractors that now exist in the T-Engines:

    JodConnverterMetadataExtracter
    TikaPoweredMetadataExtracter – the abstract base class used by other extractors
    -- MailMetadataExtracter
    -- PoiMetadataExtracter
    -- TikaAutoMetadataExtracter
    -- MP3MetadataExtracter
    -- TikaSpringConfiguredMetadataExtracter - removed as it required Spring config and would run in process
    -- PdfBoxMetadataExtracter
    -- OpenDocumentMetadataExtracter
    -- OfficeMetadataExtracter
    -- DWGMetadataExtracter
    HtmlMetadataExtracter
    RFC822MetadataExtracter

XmlMetadataExtracter and XPathMetadataExtracter still exist but don't provide any extraction out of the box. The reason they still exist is to support custom transforms (in AMPs) to extract from XML. There are no XML extractors in the T-Engines at the moment, but that is where the custom transformer code really should be moved.

    There are new tests to ensure the async transforms take place as expected.
    Additionally many of the existing tests still exist (those not related to a specific extractor). Some of these have been modified to reflect that the extract is now async and to no longer check the modified value has not changed (it is now expected to change).
    There are also a number of new metadata extract smoke tests that ensure that a selected subset of extracts are supported by the OOTB T-Engines.
2020-11-12 14:08:04 +00:00
dhrn
c34cd336e0 Update repository.properties 2020-11-12 11:29:55 +05:30
dhrn
297d1242a5 Merge branch 'master' into dev-dhrn-ACS-777 2020-11-12 11:28:51 +05:30
dhrn
b61f409566 * fixed email review 2020-11-12 11:15:13 +05:30
Alan Davis
cca20b3b18 REPO-5208 Metadata extract: overwritePolicy, enableStringTagging and carryAspectProperties tests (#116)
* REPO-5208 Addition of extra async metadata extract tests for overriding policy, tag extractio and carryAspectProperties

Main author: Adina Ababei <adina.ababei@ness.com>
Testing of tagging modified by Alan Davis to pass when Solr is not running.
2020-11-11 15:29:08 +00:00
Angel Borroy
62a4d4a026 Merge pull request #139 from Alfresco/feature/SEARCH-2532_PermissionEvents
SEARCH-2532: Add Permission Update events to be generated from alfres…
2020-11-11 12:06:22 +01:00
dhrn
ab4cd605a7 * Email Ux changes 2020-11-09 18:37:03 +05:30
Angel Borroy
e172719d17 SEARCH-2532: Add Permission Update events to be generated from alfresco-enterprise-repo project. 2020-11-09 13:18:54 +01:00
Chris Shields
27d5e144a9 REPO-5209: Prevent creation of node updated event when property added and removed in same transaction (#113) 2020-11-09 11:34:53 +00:00
Andrei Ciubotaru
e20eedc49a Merge pull request #135 from Alfresco/feature/OPSEXP-492_add_ansible_deployment_method
OPSEXP-492: Add ANSIBLE deployment method
2020-11-09 11:05:53 +02:00
Andrei Ciubotaru
a80400d240 Added ANSIBLE as an option for deployment method 2020-11-06 08:03:12 +02:00
evasques
acac23f29a MNT-21967 - ClassCastException when using CMIS query with SCORE() function (#128)
* Added missing validation before if columnName is the expected column
before normalizing value to float, in case the column is Score
2020-11-05 19:19:14 +00:00
dhrn
b00da84e6a fixed comments 2020-11-05 18:56:52 +05:30
dhrn
014f0cd024 fixed comments 2020-11-05 18:48:22 +05:30
Gloria Camino
0f21f71cff LOC-264 - fixes to punctuation in JAPANESE and SIMP CHINESE (#122)
Fixes to double-byte punctuation
2020-11-04 17:05:32 +00:00
dhrn
6ccc4136ed Test added 2020-11-04 22:05:27 +05:30
dhrn
ea0e226389 * minor changes 2020-11-04 20:23:28 +05:30
dhrn
33b43ba93f * minor changes 2020-11-04 12:19:58 +05:30
dhrn
73081e43e5 * test added 2020-11-04 11:43:50 +05:30
dhrn
d9de437e68 * minor changes 2020-11-03 21:20:11 +05:30
dhrn
2933d45eff [ACS-777] Email notification for digital workspace 2020-11-03 15:03:43 +05:30
Alan Davis
b894bd95d2 REPO-4334 Base changes for metadata extraction to T-Engines (#114)
Addition of support of async metadata extraction via T-Engines.
Still needs support for RM to control what is extracted in emails.
Still includes OOTB metadata extractors. To be removed.
Still needs removal of legacy transformers and 3rd party libraries they use.
2020-10-31 08:54:07 +00:00