Tom Page
38bff5dc82
ACS-3651 Add unit tests for node exists and read permission.
2022-10-13 15:01:41 +01:00
Tom Page
9b8b1bbbe6
ACS-3651 Validate node pameters.
2022-10-13 14:05:12 +01:00
Maciej Pichura
1759364b50
ACS-3723, ACS-3724, ACS-3725 move rules V1 API to private space ( #1495 )
...
* ACS-3723: Moving endpoints to private API path.
* ACS-3723: Fixes to E2E tests and some other parts.
* ACS-3723: Removing unnecessary imports.
2022-10-13 12:38:44 +02:00
Aleksandra Onych
59ab7e9458
ACS-3635 Alfresco WebDAV CSRF - allowInsecurePOSTMethod flag ( #1488 )
2022-10-11 15:05:48 +02:00
Piotr Żurek
aae87ebffd
PRODSEC-6550 Fix CSRF in the WebScript console Refresh Scripts form ( #1483 )
2022-10-11 12:05:35 +02:00
George Evangelopoulos
6bcf33d672
ACS-3616: fix exception type for missing node id ( #1457 )
...
* ACS-3616: fix exception type for missing node id
* ACS-3616: fix exception handling for missing node id
* ACS-3616: update javadoc, add a constructor for the exception
2022-10-10 21:52:19 +03:00
Maciej Pichura
307eaff896
ACS-3649, ACS-3650 Action validation mechanism + validations against Action Definitions ( #1481 )
...
* ACS-3572: Action constraints endpoint + logic + unit tests.
* ACS-3572: Action constraints endpoint + logic + unit tests.
* ACS-3572: Action constraints endpoint fixes.
* ACS-3572: Cleanup after removal of GET all Action constraints.
* ACS-3572: Fixing formatting in tests.
* ACS-3572: Loosening V1 constraints restrictions for aspects, types and properties.
* ACS-3649: Action validators - constraints.
* ACS-3649: Action validators - constraints.
* ACS-3649: Action validators - constraints.
* ACS-3572: Adding validation for extra paramater.
* ACS-3649: Small refactors and fixes.
* ACS-3649: Validations against action definition.
* ACS-3649: Adding @Experimental annotation.
* ACS-3649: Fixes/refactoring after code review.
* ACS-3649: Removing ignored test
2022-10-10 17:13:51 +02:00
Tom Page
86761bd408
Merge pull request #1478 from Alfresco/feature/ACS-3615_AllowNullParams
...
ACS-3615 Allow actions in rules without any params.
2022-10-10 09:29:29 +01:00
Maciej Pichura
4d6b4c2ecf
ACS-3572 V1 API for action constraints ( #1469 )
...
* ACS-3572: Action constraints endpoint + logic + unit tests.
* ACS-3572: Action constraints endpoint + logic + unit tests.
* ACS-3572: Action constraints endpoint fixes.
* ACS-3572: Cleanup after removal of GET all Action constraints.
* ACS-3572: Fixing formatting in tests.
* ACS-3572: Loosening V1 constraints restrictions for aspects, types and properties.
* ACS-3572: Removing unnecessary code.
* ACS-3572: Removing unnecessary field.
* ACS-3572: Removing unnecessary field - fixing the tests.
* ACS-3572: Renaming the endpoint and fixing license headers.
* ACS-3572: Fixing license headers.
* ACS-3572: Fixing tas-restapi dependency version.
* ACS-3649: Bumping tes-restapi version.
* ACS-3649: Bumping tes-restapi version.
2022-10-10 10:14:47 +02:00
Tom Page
ad96f85251
ACS-3615 Allow actions in rules without any params.
2022-10-07 16:37:08 +01:00
krdabrowski
7ac48f8a99
ACS-3687: Execute rules API: Remove field "isEachInheritedRuleExecuted" ( #1476 )
...
* ACS-3620: E2Es - API for manual triggering rules on a folder
2022-10-07 17:01:08 +02:00
Tom Page
855e2522f2
ACS-3657 Allow returning partial list of rule sets.
...
If a user does not have access to a rule set applied to a node then it will be
excluded from the results, but the user will be able to see the list of other
rule sets.
Also add E2E tests for permissions when viewing rule sets.
2022-10-07 13:03:37 +01:00
Tom Page
89e8f7ff66
Merge master into ACS-3630_PrivateActionTests.
2022-10-05 16:09:29 +01:00
Tom Page
440f0568e3
ACS-3291 Permission checks when linking and unlinking to rule sets.
2022-10-05 14:22:37 +01:00
krdabrowski
67f7fff0b7
ACS-3525: API for manual triggering rules on a folder ( #1458 )
...
* ACS-3525: API for manual triggering rules on a folder
2022-10-05 12:19:49 +02:00
Tom Page
1a08480f22
ACS-3630 E2E tests for creating and updating rules with private actions.
...
Ensure that 403 Forbidden is returned rather than 500 Internal Server Error.
2022-10-05 09:13:01 +01:00
Tom Page
5e82555269
ACS-3605 Fix reference in unit test.
2022-10-04 16:21:23 +01:00
Tom Page
3682ddf652
ACS-3605 Add limit to maximum size of optional linkedToBy field.
2022-10-04 15:54:31 +01:00
Tom Page
c5c6b45f17
Merge pull request #1462 from Alfresco/feature/ACS-3377_UpdateRuleOrder
...
ACS-3377 Update rule order.
2022-10-04 09:16:30 +01:00
Tom Page
f707906943
ACS-3377 Fix review comments.
2022-10-03 15:40:52 +01:00
Tom Page
af7e9f97aa
ACS-3376 Simplify method of obtaining rule ids.
2022-10-03 15:28:00 +01:00
Tom Page
e9105f0f0c
ACS-3377 Update rule order.
2022-10-03 10:04:07 +01:00
Tom Page
a93dd27674
ACS-3376 GET rule order within rule set.
2022-09-29 15:21:35 +01:00
George Evangelopoulos
91e2421d7c
ACS-3291: Support for unlinking rule sets ( #1421 )
...
* ACS-3291: Support for unlinking rule sets
* ACS-3291: add unit tests and edge case exceptions
* ACS-3291: add support for -default- ruleSetId
Co-authored-by: Tom Page <tpage-alfresco@users.noreply.github.com >
2022-09-27 18:45:55 +03:00
Maciej Pichura
4bc36ae18d
ACS-3510 Rule mappers refactor pt3 ( #1438 )
...
* ACS-3510: Rule mappers refactor pt3 (presumably final)
* ACS-3510: Rule mappers refactor pt3 - fixes after master merge.
* ACS-3510: Fixing error script conversion, adding some logging.
2022-09-27 15:24:39 +02:00
Tom Page
8c556eeaca
ACS-3359 Rename boolean rule fields. ( #1436 )
...
* ACS-3359 Rename boolean rule fields.
* ACS-3359 Re-add unused import.
This has started to be used on master now.
* ACS-3359 Fix E2E test.
The isShared field is requested and comes back correctly as false.
2022-09-26 15:43:13 +01:00
Sara
0aa4b5de9c
Feature/acs 3555 add custom embedded workflow license code ( #1432 )
...
* ACS-3555 Add license code for custom embedded workflow
* ACS-3555 remove unused import
* ACS-3560 Discovery API for custom embedded workflow license
* ACS-3560 fix compilation error
* use default method
* restore discovery api
2022-09-26 11:04:26 +01:00
Sara
dc5404b8c2
Revert "Feature/acs 3560 discovery api for custom embedded workflow license ( #1423 )" ( #1429 )
...
This reverts commit 541bf63d80
.
2022-09-23 13:27:56 +01:00
tiagosalvado10
125b35e11c
[MNT-21638] Script task execution ( #1210 )
...
* [MNT-21638] Script task execution based on workflow deloyment category. Javadoc. Unit tests.
2022-09-23 13:24:49 +01:00
Sara
541bf63d80
Feature/acs 3560 discovery api for custom embedded workflow license ( #1423 )
...
* ACS-3555 Add license code for custom embedded workflow
* ACS-3555 remove unused import
* ACS-3560 Discovery API for custom embedded workflow license
* ACS-3560 fix compilation error
2022-09-22 11:19:18 +01:00
Maciej Pichura
9c8f98c12f
ACS-3509 Rule mappers refactor pt2 ( #1428 )
...
* ACS-3509: Fixes and refactors for rule mappers pt 2.
* ACS-3509: Rule Condition mappings refactor + tests.
2022-09-22 08:10:59 +02:00
Tom Page
e0d52f98ae
ACS-3366 Add support for isLinkedTo to GET rule sets. ( #1427 )
...
* ACS-3364 Add permission handling to linkedToBy.
* ACS-3366 Add support for isLinkedTo to GET rule sets.
2022-09-21 15:18:41 +01:00
Tom Page
c4d432b136
ACS-3364 Add permission handling to linkedToBy. ( #1425 )
2022-09-21 15:18:30 +01:00
Tom Page
1c69cd2e61
ACS-3365 Add support for GET rule sets isInherited. ( #1415 )
2022-09-21 09:00:34 +01:00
Tom Page
d290c129bc
ACS-3364 Add support for linkedToBy field in GET rule sets. ( #1402 )
...
* ACS-3364 Update TAS REST API for linkedTo field.
* ACS-3364 TAS test for linkedToBy field.
* ACS-3364 Implementation for linkedToBy field.
2022-09-20 08:09:29 +01:00
Maciej Pichura
d24baf9ecd
ACS-3354 Rule mappers pt1 (simple condition mapper) ( #1388 )
...
* ACS-3363: Add rule simple condition mapping layer - part 1.
* ACS-3363: Add rule simple condition mapping layer - part 1 - fixes and cleanup.
* ACS-3354: Fixes and refactors for rule mappers pt 1.
2022-09-19 12:42:26 +02:00
George Evangelopoulos
c11b951e57
Update javadoc to clarify variable use ( #1397 )
2022-09-16 16:12:38 +03:00
Tom Page
ac1a77156e
ACS-3363 Support inheritedBy in GET rule sets. ( #1387 )
...
* ACS-3363 E2E test for inheritedBy.
* ACS-3363 Support optional inheritedBy field in GET rule sets.
* ACS-3363 Update to new version of TAS REST API.
* ACS-3363 Remove user from private site before calling method under test.
2022-09-16 11:06:17 +01:00
Maciej Pichura
772109d629
ACS-3429: Better fitting exceptions on POST rule with actions ( #1376 )
...
* ACS-3429: Better fitting exceptions on POST rule with actions when missing or invalid fields.
* ACS-3429: Fixing and adding tests
2022-09-15 10:35:32 +02:00
Alan Davis
64955658fc
HXENG-64 refactor ATS
...
* Pick refactored t-core 3.0.0 and t-service 2.0.0.
* Use new package names from t-model
* Fix up a few test failures due to incomplete t-config which is now checked.
2022-09-14 22:07:07 +01:00
Tom Page
b7d2d3bae9
ACS-3536 Omit actionContext for rules. ( #1383 )
...
* ACS-3536 Omit actionContext for rules.
It will always be set to 'Rule' anyway.
* ACS-3536 Stop setting actionContext in rules E2E tests.
Also add extra assertion for action params in new test.
2022-09-14 12:56:38 +01:00
tiagosalvado10
430d15f32d
[MNT-21901] Prevent update preferences concurrency errors ( #821 )
...
* [MNT-21901] Added PersistenceException to retry exceptions. Added validation to get retry cause
* [MNT-21901] Check exception message only if it is JavaScriptException
* [MNT-21901] Removed unit test from repository. Added new test on remote-api. Changed ExceptionStackUtil validation.
* [MNT-21901] Improved JavascriptException validation. Added exception delimiter to prevent accepting exceptions with the same partial name.
2022-09-13 16:40:23 +01:00
krdabrowski
4692d471a3
ACS-3430: POST support for conditions ( #1356 )
2022-09-13 11:32:29 +01:00
Tom Page
400b33c7eb
ACS-3489 Use specified rule set. ( #1373 )
...
* ACS-3280 Get inherited rule sets. [tas]
This needs to work the exact same way as get inherited rules.
* ACS-3280 Replace LinkedList with ArrayList.
* ACS-3280 Don't return duplicated rule sets when there are links.
* ACS-3489 E2E test for getting rules with inheritance.
* ACS-3489 Inherited rule sets are also associated with folders.
* ACS-3489 Fix test to contain expected values.
* ACS-3489 Ensure only rules from specified rule set are returned.
Add E2E test case for inherited links and fix unit tests.
* ACS-3489 Fix audit reference in RuleService.
2022-09-13 10:23:16 +01:00
George Evangelopoulos
fa04a7264f
ACS-3485: Change naming ( #1372 )
2022-09-12 20:33:24 +03:00
Tom Page
6e5d37067d
ACS-3531 Ignore testDownloadFileContent since it fails so frequently.
2022-09-12 18:07:18 +01:00
Tom Page
80ccf64df8
ACS-3280 Get inherited rule sets. [tas] ( #1323 )
...
* ACS-3280 Get inherited rule sets. [tas]
This needs to work the exact same way as get inherited rules.
* ACS-3280 Replace LinkedList with ArrayList.
* ACS-3280 Don't return duplicated rule sets when there are links.
2022-09-12 11:44:42 +01:00
Antonio Felix
8bc3b357cf
Fix/mnt 23190 queries to find users not returning results ( #1365 )
...
* MNT-23190 - Added "hint:useCQ" in order for the new users to appear on the results
2022-09-09 11:07:15 +01:00
Maciej Pichura
a568c87571
ACS-3429, ACS-3336: Rule action mappings (create), validations (update) - part 2 ( #1332 )
...
* ACS-3429, ACS-3336: Adding initial TAS tests for create rule with multiple actions, adding action parameters mappings and rule/action validations for rule update.
* ACS-3429: Removing duplicated assertion.
* ACS-3429: Changing NodeRef conversions to use only node id.
2022-08-25 12:46:42 +02:00
Kacper Magdziarz
3aac7be11c
MNT-23103 - Downloading a document replaces filename having space with + character ( #1327 )
...
* MNT-23103 Change encoder for content disposition filename to be consistent with RFC5987.
Add test covering filename encoding.
2022-08-24 15:59:11 +02:00