Commit Graph

106 Commits

Author SHA1 Message Date
ramunteanu
d842399190 APPS-986: [AGS] Export of records with size> 4 MB fails (#511)
- Changed deleteTempFileOnClose to false as the temp file deletion is handled in BufferedResponse#writeResponse
2021-06-29 18:52:20 +03:00
Giovanni Fertuso
200be29303 [ACS-1715] Deprecate reset-password APIs (#558) 2021-06-28 12:24:54 +01:00
Gloria Camino
c97c001b82 LOC-312 FIXED - Updated UI in 16 languages including the AGS amps files in 5 new languages. Also a fix to l10n.properties to exclude the dictionary-model.properties from localisation. (#551)
Updated UI files in 15 languages
2021-06-22 11:23:34 +01:00
evasques
d7ec130756 MNT-20500 - Admin console breaks with serialised objects (#536)
* In node browser:
** Added macro convertToJSON to recursively parse hashes and enumerables
** Added attempt/recover in macros to handle errors and not break the page
** Changed the output of serialized objects to JSON format
* In both admin console and node browser:
** Adjusted consistency of the ouput when an error occurs
** Validate the depth of each hash. When we find a hash with over 1000 elements, we throw an error instead of displaying the object. Used the stop tag to effectively force an abort of the template processing preventing performance or security issues regarding very large objects.
2021-06-16 15:41:34 +01:00
Angel Borroy
f1a5425f62 SEARCH-2909 Return Http Status Code 501 (Not Implemented) in REST API… (#519)
* SEARCH-2909 Return Http Status Code 501 (Not Implemented) in REST API for invocations to Search Services that are not supported.

* SEARCH-2909 Refactor exception mapping to simplify QueryParserException.

* SEARCH-2909 Add unit tests for postQuery.

This includes a test for the status code replacement with unsupported operations.

* SEARCH-2909 Add new unit test file to test suite.

Also add copyright header to test class.

Co-authored-by: Tom Page <thomas.page@alfresco.com>
2021-06-11 16:03:55 +01:00
evasques
e4cdae71e1 MNT-22316 - Added pathInfo length validation before attempting substring (#487) 2021-05-24 13:11:17 +01:00
Alexandru-Cristian Balmus
905a590cda SHA-2478 : Some Share features stop working if a site has description = null (#463)
- Fixed some sites FTLs that failed due to site description being null
2021-05-16 23:33:04 +03:00
Bruno Bossola
8ecf27674b REPO-5630 Fix for intermittent failing test PeopleTest.testPagingAndSortingByFirstNameDesc (#461)
* Fix for failing test
* Fixes post review
2021-05-14 14:05:33 +01:00
Angel Borroy
20dd0efc6f Feature/search 2802 shared secret auth (#382)
* SEARCH-2802: Filter HTTP requests (now "none" and "secret" communication methods are available) from X509 Web Filter.

* SEARCH-2802: HttpClientFactory (for Repository and Search Services clients) support for Shared Secret communication.

* SEARCH-2802: Fix HttpClientFactory base unit tests.
2021-04-14 10:25:45 +02:00
evasques
ce62fb1da3 MNT-20500 - Admin console breaks with serialised objects (#291)
* Added macro convertToJSON to recursively parse hashes and enumerables
* Added attempt/recover in macros to handle errors and not break the page
* Changed the output of serialized objects to JSON format
2021-04-05 17:52:15 +01:00
Gloria Camino
40133c350e Fixed typo for CPUs in SPANISH (#342) 2021-03-09 18:24:23 +00:00
Stefan Kopf
fef8cc9256 ACS-1217 Additional option for SOLR to authenticate with a shared secret (#334)
Co-authored-by: Alex Mukha <alex.mukha@alfresco.com>
2021-03-04 18:49:49 +01:00
dhrn
5a4fbbe095 * fix random failing erors while calling aspect api (#313) 2021-02-26 08:18:47 +00:00
Alan Davis
e88aab47f7 REPO-5376 Query Accelerator Remove all temporary code (#308)
* REPO-5376 Remove all temporary code

* Remove DBStats, SingleTaskRestartableWatch
* Remove propertiesCache and aspectsCache from DBQueryEngine as they were marked as temporary

* Remove further temporary code

Co-authored-by: Nana Insaidoo <insaidoo.nana@yahoo.it>
2021-02-23 16:54:58 +00:00
dhrn
cf91e0afe0 [REPO-5552] more filtering capablities for aspect/type api (#301)
* * more filter implementation

* * aspect test case added

* * fixed coments and more test added

* * comments fixed

* * import and data fixed

* * removed unnecessary filter
2021-02-23 09:56:37 +00:00
Andrea Gazzarini
1ff90242b0 [SEARCH-2677] Extract SearchEngineResultSet and SearchEngineResultMetadata interfaces (#286)
* [SEARCH-2677] Extract SearchEngineResultSet and SearchEngineResultMetadata interfaces

* [SEARCH-2677] Scan the ResultSet decorator chain for a maximum of 3 nested levels
2021-02-19 12:09:40 +01:00
dhrn
4d73b11d12 show model in the aspect/type api (#285) 2021-02-15 11:29:23 +00:00
montgolfiere
3ad33034f1 MNT-14308: CMIS - optionally request rendition(s) when uploading docs - part 2 (#283)
* MNT-14308: CMIS - optionally request rendition(s) when uploading docs - part 2

- note: PublicApiAlfrescoCmisServiceFactory extends AlfrescoCmisServiceFactory and overrides getCmisServiceTarget
- hence, also ensure property (cmis.create.doc.request.renditions.set) is set for public rest api spring context

- note: set following log4j.properties: log4j.logger.org.alfresco.opencmis=info

* MNT-14308: CMIS - optionally request rendition(s) when uploading docs - part 2

- tweak info log to output property on init (since service currently instantiated on every call)

- note: set following log4j.properties: log4j.logger.org.alfresco.opencmis=info
2021-02-10 20:37:57 +00:00
Gloria Camino
fafdfa6945 LOC-282 - FIX pending languages (Czech, Polish and Danish) plus FR amends (#278) 2021-02-08 13:18:32 +00:00
dhrn
0211392ff6 Aspect and Type api implementation (#261)
* initial commit

* * added match filters

* api completed

* * removed unwanted changes

* fixed test

* * fix consistant naming of class

* fixed comments

* * fixed comments

* * aspects fixed

* * types added

* * fixed tes and minor improvemment

* * fixed comments
2021-02-05 09:55:22 +00:00
Nicolas Barithel
5cdade38a8 Fix MNT-21991 customizable personLookupProperties for REST API (#191)
* Fix MNT-21991 custom personLookupProperties

* Fix MNT-21991 test case for cm:owner
2021-02-02 10:36:52 -07:00
CezarLeahu
6ef30c46e9 ACS-1146 Replace *javax* dependencies with *jakarta* libraries (#254)
- group jakarta dependencies in the POMs
- define explicit version properties for the various jakarta APIs
- replace all *javax* libraries with their *jakarta* equivalent
- exclude all *javax* libraries brought in by our dependencies (they can't be handled through _dependencyManagement_ due to the different jar names)
- upgrade the *jakarta* libraries to the latest versions that still use the _javax_ package namespace
2021-01-26 13:33:35 +02:00
Gloria Camino
b3454b762c LOC-282 - Partial fix. 12 language bundles updated. (pending 3: DA, CZ and PL) (#241) 2021-01-14 14:34:17 +00:00
dependabot-preview[bot]
401833665e ACS-1125 : Bump json from 20200518 to 20201115 (#160)
* Bump json from 20200518 to 20201115

Bumps [json](https://github.com/douglascrockford/JSON-java) from 20200518 to 20201115.
- [Release notes](https://github.com/douglascrockford/JSON-java/releases)
- [Commits](https://github.com/douglascrockford/JSON-java/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* ACS-1125 : Fix failing tests after json upgrade

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: DenisGabriela <Denis.Ungureanu1@ness.com>
2021-01-12 22:43:39 +02:00
Denis Ungureanu
a9e54bd08c ACS-1043 : Camel upgrade to 3.7.0 (#235)
ACS-1043: Upgrade Camel version
2021-01-12 11:41:23 +02: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
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
Bogdan Ioan Gabor
c19c931cfa APPS-688: Fixed the issue by using System user instead of the admin user (#202) 2020-12-08 13:44:32 +02:00
Andreea Nechifor
95f04cbf34 Added check for String format. (#198) 2020-12-04 15:36:56 +02: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
Alexandru-Eusebiu Epure
09c2c95081 Merge pull request #149 from Alfresco/fix/MNT-22036_API_always_applies_versioning
MNT-22036 : REST API always applies versioning
  Add property boolean versioningEnabled
  Add versioningEnabled to node creation using multipart/form-data
  Add versioningEnabled to node creation using JSON
  Add unit tests for node creation using JSON.
2020-11-16 17:49:28 +02:00
Epure Alexandru-Eusebiu
1804f7943b MNT-22036 Add comment for versioningEnabled property updating mechanism. 2020-11-16 12:00:11 +02: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
Epure Alexandru-Eusebiu
53e87b347e format code. 2020-11-13 18:16:00 +02:00
Epure Alexandru-Eusebiu
5017b305fb MNT-22036 : REST API always applies versioning
Changed property String versioningState to boolean versioningEnabled
   Add versioningEnabled to node creation using JSON
  Add unit tests for node creation using JSON.
2020-11-13 17:02:28 +02:00
Epure Alexandru-Eusebiu
12f645a71c Correct typo versionstate to versioningstate. 2020-11-13 08:37:12 +02:00
Epure Alexandru-Eusebiu
fbb6f422cf MNT-22036 : REST API always applies versioning
Add versionState form-data property to POST nodes/{nodeId}/children multipart upload.
   Add versionState to MultiPartBuilder.
   Add tests for multipart upload
2020-11-12 18:17:02 +02: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
297d1242a5 Merge branch 'master' into dev-dhrn-ACS-777 2020-11-12 11:28:51 +05:30
tiagos
73b393a541 [MNT-22015] REST api does not update the primary path on new version upload 2020-11-10 12:46:00 +00:00
dhrn
0ef4a4c744 Update remote-api/src/main/java/org/alfresco/rest/api/impl/SiteMembershipRequestsImpl.java
Co-authored-by: Jamal Kaabi-Mofrad <jamalkm@users.noreply.github.com>
2020-11-06 18:01:55 +05:30
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
2933d45eff [ACS-777] Email notification for digital workspace 2020-11-03 15:03:43 +05:30
Elia Porciani
5618700d16 Feature/search 2446 (#90)
* [SEARCH-2446]
Changes for supporting ElasticSearchSearchService
2020-10-26 14:17:01 +01:00
Gloria Camino
1a0eda839e LOC-264 - Partial fix to this ticket improving UI terms in SV, DE, PL, ES and fixes to punctuation in French (#88)
Others languages to come
2020-10-21 17:31:42 +01:00
Alex Mukha
7ddb31d5e8 SEARCH-2454 Remove old lucene (#23)
This PR removes legacy Lucene code and dependency to the lucene 2.4.1 library.
The data type analysers were removed with an exception of the definitions in models (datadictionaryModel.xml and cmisModel.xml) to be backwards compatible with existing components (like older versions of Search Services) and to ensure the current old-style models can still work with repository and pass validation.
2020-10-19 14:15:27 +01:00