Added isSupported(CoreFunction function, String transformerName) and isSupported(CoreFunction function, LocalTransform transform) ready for work on the ACS-2493 & ACS-2494.
* ACS-2391: StorageObjectProps - add version content specific endpoints
- GET /nodes/{nodeId}/versions/{versionId}/storage-info/{contentPropQName}
- POST /nodes/{nodeId}/versions/{versionId}/storage-info/{contentPropQName}/archive
- POST /nodes/{nodeId}/versions/{versionId}/storage-info/{contentPropQName}/archive-restore
- since versioned content nodes are not in default workspace://SpaceStore ...
- updated existing ContentStorageInfomation (and related tests) to handle nodeRef instead of nodeId
- also fixed REST framework for operation/property for 2nd-level relationship (inc extra fix, eg. for "revert" version regression)
- update based on PR feedback (thanks SA) - also update lic header to 2022 for new/changed Java files
- update based on PR feedback (thanks MP) - minor: rename local variable (and similarly across codebase)
* Added configuration to use child association index on version creation - disabled by default
* Added unit test to verify both cenarios
* Included configuration in AGS
* MNT-22715 - Document Version Issue - Unexpected: current version does not appear to be 1st version in the list
* Set association index on new version creation
* Unit test to verify the child assoc index is set on versions
* Set association index on new version creation on AGS create record from version
* ACS-2200: Java API for archive/archive-restore content + unit tests.
* Bump restapi from 1.64 to 1.65 (#795)
* Bump utility from 3.0.45 to 3.0.47 (#794)
* ACS-2200: Applying review comments.
* ACS-2200: Applying review comments.
* ACS-2200: Adding new unit test to suite.
* ACS-2200: Adding optional archive params to archive operation.
* Bump restapi from 1.64 to 1.65 (#795)
* Bump utility from 3.0.45 to 3.0.47 (#794)
* ACS-2200: Applying review comments.
* ACS-2200: Java API for archive/archive-restore content + unit tests.
Squashed some of the commit messages:
* ACS-2216: Resolving failing tests
* ACS-2216: Reformatting code
* ACS-2216: Adding David's suggestion
* ACS-2216: Set some methods to default as per David's comments
* ACS-2216: Added test for when propertyQName has no content
* ACS-2216: Replaced try catch with assertThrows
* ACS-2216: Added propertyQName to Auditable list
Co-authored-by: David Edwards <david.edwards@hyland.com>
* [MNT-21953] [MNT-22491] Clear rendition content data on content change. Prevent rendition from having contentHashCode without content
* [MNT-21953] [MNT-22491] Added tests
* [MNT-21953] [MNT-22491] Removed update content from test
* [MNT-21953] [MNT-22491] Improve log messages
* [MNT-21953] [MNT-22491] Changed Copyright year to 2021. Minor change in test comments.
* T-Engines config need to be combined in the same predefined order in the all-in-one transformer,
T-Router and the Content Repository with individual T-Engines.
* Restored the ability to register dynamic messages on bootstrap
* Added unit tests on bootstrap to verify if the dynamic messages are registered on bootstrap
* Added unit tests for the Repo Admin Console regarding registering dynamic messages and classpath files
* ACS-2147: Adding missing ContentStore implementation, switching some logging
to trace.
* ACS-2147: Renaming getObjectStorageProperties to getStorageProperties
* [maven-release-plugin][skip ci] prepare release 14.20
* [maven-release-plugin][skip ci] prepare for next development iteration
* Fix/mnt 21506 sanitation create people (#756)
* MNT-21506: sanitize username on nodeBrowser Repo
* [maven-release-plugin][skip ci] prepare release 14.21
* [maven-release-plugin][skip ci] prepare for next development iteration
* ACS-2148: Adding get StorageObjectProps to ContentService (#773)
* ACS-2148: Adding get StorageObjectProps to ContentService and implementation.
* ACS-2148: Adding propertyQName param to get storage property method.
* ACS-2148: Security config for added method.
* ACS-2148: Renaming getObjectStorageProperties to getStorageProperties
* ACS-2148: Javadoc fix
* ACS-2148: Fixing security context after method renaming.
* ACS-2148: ContentService with new method names.
* ACS-2147: Adding missing ContentStore implementation, switching some logging
to trace.
* ACS-2147: Renaming getObjectStorageProperties to getStorageProperties
* ACS-2148: ContentService with new method names.
* ACS-2148: Small fixes after code review.
* ACS-2147: initial idea for adding storage properties to ContentStore.
* ACS-2147: adding implementations to ContentStore children + some static analysis cleanup.
* ACS-2147: adding javadoc and small fixes to ObjectStorageProps.
* License header update
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* License header update
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* ACS-2147: initial idea for adding storage properties to ContentStore.
* ACS-2147: adding implementations to ContentStore children + some static analysis cleanup.
* ACS-2147: adding javadoc and small fixes to ObjectStorageProps.
* License header update
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* License header update
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* ACS-2147: Adding unit tests and changes after first round of code review.
* ACS-2147: initial idea for adding storage properties to ContentStore.
* ACS-2147: adding implementations to ContentStore children + some static analysis cleanup.
* ACS-2147: adding javadoc and small fixes to ObjectStorageProps.
* License header update
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* License header update
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* ACS-2147: Adding unit tests and changes after first round of code review.
* ACS-2147: adding implementations to ContentStore children + some static analysis cleanup.
* License header update
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* ACS-2147: Fixes after reverting some 'boy scout' refactor.
* ACS-2147: Rephrasing Alfresco-derived storage properties.
* ACS-2147: Reverting some 'boy scout' refactor.
* ACS-2147: Renaming enum values.
* ACS-2147: Removing wildcard import.
Co-authored-by: David Edwards <david.edwards@alfresco.com>
* ACS-2064 ContentStore.java to require mimetype
- Updates the ContentStore interface to also require a mimetype, deprecates old method signatures
- Original interface methods maintained so code should be backwards compatible
- Implementing classes updated to reflect changes
* Added alternative approach for DBQueryEngine to page through the entire query using "LIMIT" requests instead of result set streaming
* Use the alternative approach for MySql
Main change is the removal of code from CombinedConfig into alfresco-transform-model as CombinedTransformConfig.The Code within LocalCombinedConfig has now moved to CombinedConfig as there is only one type of config now.
* Bump alfresco-transform-model from 1.3.1.1 to 1.4.0
* Add logWarn method
* Content Service changes both ACS-1781 and 1782
* Ignore test temporarily
* ACS-1782 fix test
* ACS-1782 Test and service updates
* ACS-1781 Tests for Content Service and Store
* ACS-1782 disable rest api DAU
* ACS-1782 fix mocks in unit test
* ACS-1782 Fix integration test
* ACS-1781 Config set up and validation
* ACS-1781 Unit tests for config validation
* ACS-1865 Code tidy up
* ACS-1865 Updates from PR review
* ACS-1865 Updates from review
* Added validation to the ScriptActionExecuter class to enforce the existing constraints on parameter script-ref (Repo has the constraint to only allow scripts in Data Dictionary / Scripts and AGS has the constraint to only allow scripts in Data Dictionary / Records Management / Records Management Scripts") by validating if the given scriptRef is in the allowed valued of the constraint set on that param
* Added a new unit test for AGS to make sure that rmscript action still works as expected when the script is in the correct folder and fails when not
* Added new case in ActionServiceImpl2Test#testExecuteScript to assert that the transaction fails when we execute the action with an invalid script
* Moved test testActionResult from ActionServiceImplTest to class ActionServiceImpl2Test - Before it ran with a script not in Data Dictionary so with the added validation it started to fail. I moved the unit test do avoid duplicating the code to create the script in the correct location.
* period.getMillis() (joda lib) returns an int instead of a long, so on larger periods (like 30days) we get an error that the value cannot fit in an int
* Changed the validation to only calculate the remaining milliseconds in the edge case of the remaining days being zero (as both 23h before and 23h after correspond to 0 remaining days)
* Added a unit test that validates the usage 60 days up from the licence expiring to validate the problem stops occurring
Added a unit test that validates the usage 30 days after the licence expiring to cover all use cases
* MNT-21837 - License expires 23h earlier
* Original problem is that the remaining time to license expires is calculated in days (long, not double) and anything less then 24h computes to 0 days. The validation for license being valid is that the remaining days is more than zero.
* Added method calculateMs in DateUtil class to return the interval in ms considering 2 given dates and respective timezones
* Changed the validation to use the remaining milliseconds value instead of remaining days
* Added unit test where license expires 6 hours from now - repo is not supposed to enter read-only mode
* Added unit test where license expired 1 minute ago - repo is supposed to enter read-only mode
* Removed unused import
* Remove pdfbox jars as they should no longer be needed.
* Reintroduce tests that use Tika to 'guess' mimetypes as it was the tika parse that was pulling in the pdfbox libraries.
Classes that use Tika:
* HTMLRenderingEngine - removed as it is no longer used
* RemoteConnectorResponseImpl - called tika utility toByteArray so not using pdfbox
* TikaCharsetFinder - called to identify the charset not mimetype so not using pdfbox
* MimetypeMap - main use of Tika. Used to detect mimetypes. Might have been using pdfbox.
* 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>
* Changes made to correct the value of totalItems when performing a TMDQ
* Fixes after review
- Slight change was made to NodePermissionAssessor to log when permission
limits are exceeded
* Now pre-computing maxPermissionChecks value as per review suggestion