* Addressing JDK-8189366, JDK-8212114, JDK-8208487, changes to default legacy Locale ISO Code conversions and changes to JVM arguments to allow illegal reflective access
* ACS-3225: Folder Rules v1 REST API - Create Rule
* ACS-3225 Create one or more rules within a folder/rule set.
* ACS-3225 Update ExtendedRuleServiceImpl in AGS to match new interface.
* ACS-3225 Code review fixes.
Make RuleBuilder an inner class, add documentation to API and rename method to createRules.
Co-authored-by: Krystian Dabrowski <krystian.dabrowski@hyland.com>
Added tests for restApi with all 4 external endpoints kept track of (running-actions from v0 wasn't needed, as that only allows admin to run actions).
Unit tests added, 1 spring test to verify admin privilege check in AccessRestriction class.
Co-authored-by: mstrankowski <marcin.strankowski@hyland.com>
* Compression ratio based zip bomb protection
* Compression ratio based zip bomb protection
* ACS-3163 Add uncompressed bytes limit and tests
* ACS-3163 remove static fields
* remove duplicated code
* Use Null object for empty tracker
Co-authored-by: pzurek <Piotr.Zurek@hyland.com>
Implementing access restriction for actions
Updating copyrights of modified files
Moving core restriction processing to an AbstractBase class
PR Review fixes
Slight improvement for future extensibility
* ACS-3015 move ErrorProneAction code to test folder
* ACS-3015 remove old commented out code
* ACS-3015 fix context
* ACS-3015 fix context path
* ACS-3015 move test context to test resources
* ACS-3015 correct path to moved test context
* ACS-3015 fix context problem for TestCase tests
* ACS-3015 moved MockUserNotifier to test folder
Not much happens in class, check node, create version.
Added Beans including security interceptors, but VersionService has no restrictions and for node service all there is are a few checks, so it likely never was a security issue to begin with.
* ACS-2925: Elasticsearch - refactor DB switching to not use Solr-specific properties / debug log
- as per TP suggestion, thanks
- new generic query.* props
- query.cmis.queryConsistency
- query.fts.queryConsistency
- query.hybrid.enabled
- deprecate current solr.query.* props (eg. upgrade)
- solr.query.cmis.queryConsistency
- solr.query.fts.queryConsistency
- solr.query.hybrid.enabled
- another attempt using two inject properties (deprecated + new). See option C1 in ACS-2925
- also unrelated lic header change (LocalPipelineTransform.java) to fix build warning
* ACS-2850: fix for intermittent failure on expiryLock test
First issue was int rounding of '(expirationDate - new Date())/1000', which for really close values of timeout set and passed through lockInfo could be rounded down to 0. Replaced by a rounding up formula.
Second issue was treating timeout == 0 as timeout.infinite. WebDav Infinite timeout has it's own marker "-1", in case of 0, lock was automatically turned into infinite time lock, while it should be an exception instead as creating a lock for 0s timeout is a programming error - the lock would immediatelly be expired upon creation (perhaps even with a date in the past, seeing as the expiryDate is filled).
Changes made clarify the intent behind calling the method instead of obfuscating it by passing the int value through date operations
* MNT-22780 Remove properties if node has aspect
* MNT-22780 Add remove features test
* MNT-22780 Remove wildcard imports + fix test
* MNT-22780 Remove aspect when only node has aspect
* MNT-22780 Fix if statement
Added isSupported(CoreFunction function, String transformerName) and isSupported(CoreFunction function, LocalTransform transform) ready for work on the ACS-2493 & ACS-2494.
Cron rate changed to be every minute rather every 10 seconds on startup or error state
When a T-Engine/T-Router is down the log message now an ERROR rather than DEBUG
* 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)