Commit Graph

2239 Commits

Author SHA1 Message Date
Roxana Lucana-Ghetu
3b0540a19b Merge branch 'feature-2.4/RM-3285' into 'release/V2.4'
Feature 2.4/rm 3285

Added check not to be able to put null in cache, for nodes that are not records and don't have a filePlan.
Added unit test for it.

See merge request !128
2016-04-15 13:44:57 +01:00
Roxana Lucanu
dbd8304293 Changed class not to extend anymore BaseUnitTest class 2016-04-15 15:38:09 +03:00
Roxana Lucanu
fe0d6a543b RM-3285 - added null check for adding in cache 2016-04-15 13:34:30 +03:00
Silviu Dinuta
78a78017ab Merge branch 'feature-2.4/RM-3233_NonElectronicRecordsCanNotHavePropertiesChangedThroughRulesInUnfiledRecords' into 'release/V2.4'
Feature 2.4/rm 3233 non electronic records can not have properties changed through rules in unfiled records

When setting a foreground rule to change one properties for files that enter to a folder from Unfiled Records, when trying to create a nonElectronic record sometimes because it was very hard to reproduce this issue, SetPropertyValueActionExecuter is executed before adding the Record aspect from RecordsManagementContainerType.onCreateChildAssociation() and that's why it fails when checking UpdateProperties capability.

When creating "rma:nonElectronicDocument" document formprocessor is used and at some point updateNode from node service is used to update the properties. Therefore I made sure that each time when udating "rma:nonElectronicDocument" node the Record aspect is added if not present.

See merge request !124
2016-04-15 09:23:29 +01:00
Roxana Lucana-Ghetu
70b8bb0e65 Merge branch 'feature-2.4/RM-2925_noOptionToDeleteDestroyedRecordFolder' into 'release/V2.4'
Feature 2.4/rm 2925 no option to delete destroyed record folder

RM-2925 - No option to delete destroyed record folder (which maintain record metadata after destroy)

Made Delete action available for destroyed record folder, added unit test class.

See merge request !92
2016-04-15 09:18:39 +01:00
Silviu Dinuta
617db115b3 Changed NonElectronicRecortTypeUnitTest 2016-04-15 11:09:32 +03:00
Silviu Dinuta
6b44bea297 Changed NonElectronicRecordTypeUnitTest 2016-04-15 10:41:53 +03:00
Ana Bozianu
bb86b23cb4 Merge branch 'feature-2.4/RM-3283_OutlookIntegrationEmailWithAttachments' into 'release/V2.4'
Feature 2.4/rm 3283 outlook integration email with attachments

RM-3283 - Outlook Integration:Emails cannot be added to Unfiled Records (having a rule set) using Alfresco Outlook Integration

When adding emails with attachments in alfresco a hidden folder of type wpsmail-v2:attachment-folder (subtype of cm:folder) is added to hold the attachment files. When such an email is added in Unfilled Records container the RecordsManagementContainerType.onCreateChildAssociation policy is fired which transforms any subtype of folder into a record folder. When the rule tries to file this folder in another record folder we get an exception from trying to add a record folder in another record folder.

To fix this issue I added an extra check to avoid applying the conversion rule on hidden nodes. I also added a unit test for both hidden and non hidden folders.

See merge request !123
2016-04-14 17:39:08 +01:00
Silviu Dinuta
8c3c02aca5 Added unit tests for NonElectronicRecordType and fixed typo 2016-04-14 18:54:41 +03:00
Silviu Dinuta
14bf20dcef Added @author and @since for the class 2016-04-14 15:24:30 +03:00
Ana Bozianu
b0b1a19b48 RM-3283 - added comment to explain change 2016-04-14 14:25:29 +03:00
Ana Bozianu
ec85454dcd RM-3283 - added missing file header 2016-04-14 12:25:25 +03:00
Silviu Dinuta
8fe2973507 Added NonElectronicRecordType class to make sure that Record aspect is
added before entering in UpdatePropertiesPolicy for nonElectronic
documents
2016-04-14 12:06:39 +03:00
Ana Bozianu
896398c1ff RM-3283 - added extra check for hidden aspect + unit test 2016-04-14 11:28:21 +03:00
Tom Page
96bae15727 Merge release/V2.3 into release/V2.4.
Conflicts:
	rm-community/rm-community-share/source/web/rm/components/console/rm-audit.js
	rm-community/rm-community-share/source/web/rm/components/console/rm-user-rights.js
2016-04-13 10:15:05 +01:00
Tom Page
0b041e4824 Merge release/V2.3.0.x into V2.3. 2016-04-13 10:10:10 +01:00
Tom Page
fd6ba15eac Update version to 2.3.0.4-SNAPSHOT. 2016-04-13 09:07:57 +01:00
Tom Page
a36354820f Update version to 2.3.0.3. 2016-04-13 09:06:16 +01:00
Ana Bozianu
de7718bb22 Merge branch 'feature-2.4/RM-3216_RegressionIMAP' into 'release/V2.4'
Feature 2.4/rm 3216 regression imap

RM-3274 - Error creating bean with name 'imapServiceBootstrap'

I added an invalid authentication util bean reference to the extended IMAP service and the setter was missing.

See merge request !117
2016-04-13 07:30:16 +01:00
Roxana Lucana-Ghetu
ea1dac281f Merge branch 'feature-2.4/RM-3030_PreviewNotAvailableDeclaredRecord' into 'release/V2.4'
Feature 2.4/rm 3030 preview not available declared record

RM-3030 - The documents declared as records in their Details page don't have the preview available afterwards.

I've noticed different behavior when doing steps in different order: if the file is declared as record before navigating to document details page, the error doesn't reproduce; if document details page is accessed first and after declare the file as record,  there is an Access Denied exception.
In the first case the node for preview has the File Plan aspect, in the second one it doesn't.

See merge request !105
2016-04-12 14:10:39 +01:00
Ana Bozianu
b2005355e3 RM-3274 - fixed invalid AuthenticationUtil bean refference 2016-04-12 14:59:02 +03:00
gbroadbent
b208cf0c7c DUTCH: Fixed reverted "workflow" term" files as per EN bundle rev-2016-04-08 2016-04-12 10:46:58 +01:00
Roy Wetherall
61cf94ab36 Merge branch 'feature-2.4/RM-3266_ForegroundRejectActionInUnfiledRecordsNotWorking' into 'release/V2.4'
Feature 2.4/rm 3266 foreground reject action in unfiled records not working

RM-3266 - Documents get into a "hybrid" state when the Unfiled records inherited from File Plan rule rejects declared records.

If we run the reject rule in foreground it will run in the same transaction with create-record. **CreateRecordAction** will move the file to RM site and add all the RM aspects to it (including rma:filePlanComponent) then **RejectAction** will move the file back to the collaboration site and remove all the RM aspects from it. Because the two actions run in the same transaction **FilePlanComponentAspect.onAddAspect** will run at the end of the transaction to set the property rma:rootNodeRef and apply the rma:filePlanComponent aspect on all the renditions. By setting the property rma:rootNodeRef the **rma:filePlanComponent** is added back on the node.

When listing the files in the community site these nodes match the rmDocLibRecord template becuse they have **rma:filePlanComponent** aspect but we fail to list them because they are not records. The rejected files should match rmDocLibRejectedRecord template.

I added an extra check in the onAddAspect method to make sure we don't add back RM properties if the aspect rma:filePlanComponent has been removed in the same transaction it has been added.

Another solution that worked is changing the notification frequency of the onAddAspect method from **NotificationFrequency.TRANSACTION_COMMIT** to **NotificationFrequency.EVERY_EVENT** but I think it will affect the performance a lot more.

See merge request !113
2016-04-11 19:38:14 +01:00
Ana Bozianu
bc44f9b49e RM-3266 - added an extra check when invoking onAddAspect 2016-04-11 20:04:26 +03:00
Ana Bozianu
7fd469a2e2 RM-3216 - removed verify statements as extendedImapServiceImpl is not a mock 2016-04-11 15:46:42 +03:00
gbroadbent
b32784f5ea ITALIAN: Updated files as per EN bundle rev-2016-04-08 2016-04-11 12:05:42 +01:00
Tom Page
8d326b858c Merge branch 'feature-2.4/RM-3216_ListRMFilesInIMAP' into 'release/V2.4'
Feature 2.4/rm 3216 list rm files in imap

RM-3216 - IMAP:Emails messages not available after adding a file and declaring as record

The problem is in Alfresco core in the method getPathFromSites from ImapServiceImpl. When declaring a file as a record the node becomes an Inplace Record and the primary parent becomes the Unfiled Records folder. The IMAP service tries to get the record path relative to the site so it goes recursively to the primary parent and checks if it reached the site node with the following condition:
```java
if (nodeService.getType(ref).equals(SiteModel.TYPE_SITE))
```

As the RM site is of type rma:rmsite this clause will fail and the method goes up to the root node which doesn't have any parent and we get a NullPointerException. The if condition should be:
```java
if (dictionaryService.isSubClass(nodeService.getType(ref), SiteModel.TYPE_SITE))
```

This is why no RM folder is listed trough IMAP.

To fix the issue I extended ImapServiceImpl and overwrote the method that needed to be fixed.

See merge request !107
2016-04-11 11:29:46 +01:00
Ana Bozianu
5717cbef6d RM-3216 - added header to test file 2016-04-11 12:27:19 +03:00
Ana Bozianu
1b359ad083 RM-3216 - added unit test 2016-04-08 14:46:14 +03:00
David Webster
dcaa78c309 L10N: Update path to ensure all localisation files are found 2016-04-07 17:10:15 +01:00
Ana Bozianu
f2b31e9d6c RM-3216 - extended IMAP service and corrected method 2016-04-07 16:06:29 +03:00
Roxana Lucanu
d67f403848 RM-2925 - changed test type for delete action 2016-04-07 10:02:03 +03:00
Roxana Lucanu
d5efeec830 RM-3030 - renamed variable and changed comment 2016-04-06 17:52:38 +03:00
Roxana Lucanu
1de1bcf5f4 RM-3030 - added filePlan aspect for every thumbnail from renditions 2016-04-06 16:49:42 +03:00
Roy Wetherall
6486923ca8 RM-3181, RM-3195: ensure JSON conversion component works when no file plan is found 2016-04-06 10:24:27 +10:00
Roy Wetherall
d5031599fa RM-3181 and RM-3195 - error accessing caveatConfig.json after modifications
Caveat config file had filePlanComponent applied, but wasn't contained
within a file plan.
2016-04-05 14:38:36 +10:00
Roy Wetherall
2858241aed Merge branch 'feature-2.4/RM-3077_LinkedAndCutOffRecordsPropertiesNotAvailableForUsersWithNoAccessToLinkedFolder' into 'release/V2.4'
Feature 2.4/rm 3077 linked and cut off records properties not available for users with no access to linked folder

Uses runAsSystem for obtaining instructions, recordCategory and categoryId in RecordsManagementNodeFormFilter.AddTransientProperties()

See merge request !94
2016-04-04 01:59:29 +01:00
Roy Wetherall
a3a9748e02 Merge branch 'feature-2.4/RM-2967_RMAuditErrorIfUserIsDeleted' into 'release/V2.4'
Feature 2.4/rm 2967 rm audit error if user is deleted

RM-2967 - The admin tools audit throws an error when trying to access full information if deleted users created/updated data.
   - Added exists check in RecordsManagementAuditServiceImpl.java to avoid the illegal argument exception.
   - Added an empty check in rm-audit.js to remove the "-" if the username is empty because if the user is deleted the text is "Create Person -"
   - Added a null check in AuditLogGet.java because if you delete the RM site and access the audit page you get a null pointer exception

While testing the issue I noticed that the Create Person audit entry appears only after the user is deleted. The audit event is created with immediate auditing on false which makes sense if we only want to audit users related to RM site. If the "Create Person" log appears only after the user was deleted there isn't a reason to try getting the username property at all from a node that we know it doesn't exist.

See merge request !95
2016-04-04 01:55:11 +01:00
Ana Bozianu
5487aa1773 RM-2967 - added exists, null and empty checks to solve the problems 2016-04-01 19:02:29 +03:00
Silviu Dinuta
9908fc0c3d RM-3077 : Used runAsSystem to obtain disposition instructions,
recordCategory and
categoryId
2016-04-01 12:40:41 +03:00
Roxana Lucanu
73580dc3ea removed comments 2016-04-01 09:21:21 +03:00
Roxana Lucanu
6bc52591ac RM-2925 - made Delete action available for destroyed record folder, added unit test class 2016-03-31 10:44:57 +03:00
Tuna Aksoy
0e3f27f4e2 RM-3229 (Repo AMP contains unwanted libraries) 2016-03-30 20:12:39 +01:00
Roy Wetherall
1844ecc199 Consolidate pluginExecution sections in root POM 2016-03-30 09:57:54 +11:00
Roy Wetherall
ad07c548ee Merge branch 'release/V2.4' of gitlab.alfresco.com:records-management/records-management into feature-2.4/RM-3148-RuleInheritancePatch 2016-03-30 09:44:33 +11:00
Ana Bozianu
b582b248d9 Merge branch 'feature-2.4/RM-3000_setPropertyValueInRMRulesNotWorking' into 'release/V2.4'
Feature 2.4/rm 3000 set property value in rm rules not working

RM-3000 - The set property value action can not be used in RM rules page.

Because the actions were not working as expected in other languages the mechanism has been changed to use localization in MNT-6350 and a caching mechanism has been implemented. So the getLocalizedParameterDefinitions is called only once at server startup. The actions in RM have been added before this change and we continued to implement getParameterDefintions.

The method getLocalizedParameterDefinitions which is protected calls addParameterDefinitions to build the results so I've overridden addParameterDefinitions to include the delegate's parameters for DelegateAction.

The actions executeScript and sendEmail were also affected by this change. I've added unit test to cover all 3 of them.

See merge request !81
2016-03-24 06:28:19 +00:00
Roy Wetherall
c745543b5f RM-3148: Patch unit test 2016-03-24 13:35:23 +11:00
Roy Wetherall
813d3dee13 RM-3148 - File Plan containers rule inheritance patch implementation 2016-03-24 13:07:56 +11:00
Roy Wetherall
90ed398624 Adjust POM's so plugin execution errors are masked in Eclipse 2016-03-24 12:24:07 +11:00
Ana Bozianu
33e90196de RM-3000 - fixed issue for setPropertyValue, executeScript and sendEmail and added unit test 2016-03-23 13:03:34 +02:00