Commit Graph

5254 Commits

Author SHA1 Message Date
Ana Bozianu
b75281d2fb RM-3216 - removed verify statements as extendedImapServiceImpl is not a mock 2016-04-11 15:46:42 +03:00
gbroadbent
8af6e498da ITALIAN: Updated files as per EN bundle rev-2016-04-08 2016-04-11 12:05:42 +01:00
Tom Page
a83da7d1c4 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
f3caa528f9 RM-3216 - added header to test file 2016-04-11 12:27:19 +03:00
David Webster
d3db151180 Merge branch 'release/V2.4' 2016-04-08 14:07:09 +01:00
Ana Bozianu
a48e690ad3 RM-3216 - added unit test 2016-04-08 14:46:14 +03:00
David Webster
fae7036fc6 L10N: Update path to ensure all localisation files are found 2016-04-07 17:10:15 +01:00
Ana Bozianu
6935c5ea36 RM-3216 - extended IMAP service and corrected method 2016-04-07 16:06:29 +03:00
Roxana Lucanu
bc5f60c5a0 RM-2925 - changed test type for delete action 2016-04-07 10:02:03 +03:00
Roxana Lucanu
8de82a81df RM-3030 - renamed variable and changed comment 2016-04-06 17:52:38 +03:00
Roxana Lucanu
e6d1757a3a RM-3030 - added filePlan aspect for every thumbnail from renditions 2016-04-06 16:49:42 +03:00
Roy Wetherall
c59d9d00c9 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
dc526e4a48 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
Ana Bozianu
c162075eb6 Merge release/V2.4 into master 2016-04-04 09:55:10 +03:00
Roy Wetherall
77078d3445 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
8e13464ad8 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
3be929afae RM-2967 - added exists, null and empty checks to solve the problems 2016-04-01 19:02:29 +03:00
Silviu Dinuta
da5df7efbb RM-3077 : Used runAsSystem to obtain disposition instructions,
recordCategory and
categoryId
2016-04-01 12:40:41 +03:00
Roxana Lucanu
28541c9cae removed comments 2016-04-01 09:21:21 +03:00
Tuna Aksoy
996a28836c Merge branch 'release/V2.4'
Conflicts:
	rm-community/rm-community-share/pom.xml
	rm-enterprise/rm-enterprise-share/pom.xml
2016-03-31 15:29:35 +01:00
Roxana Lucanu
448a6a66ea RM-2925 - made Delete action available for destroyed record folder, added unit test class 2016-03-31 10:44:57 +03:00
Tuna Aksoy
1aecba721e RM-3229 (Repo AMP contains unwanted libraries) 2016-03-30 20:12:39 +01:00
Roy Wetherall
645d80edcb Consolidate pluginExecution sections in root POM 2016-03-30 09:57:54 +11:00
Roy Wetherall
20a7a01760 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
Roy Wetherall
d3662ae95f RM-3114 - Integration tests 2016-03-30 09:32:28 +11:00
Roy Wetherall
08e2ae4042 RM-3114: Prevent access to custom map before it is ready
- remove public init method from AdministrationService
- make admin service impl ordered listener, always goes last
- protect execution of service behaviours until custom map init'ed
2016-03-29 13:09:56 +11:00
Ana Bozianu
3a64d7d19d Merge release/V2.4 into master 2016-03-24 14:39:40 +02:00
Roy Wetherall
69db6fc3dd Update release version to 2.2.1.5 2016-03-24 18:30:52 +11:00
Ana Bozianu
5c8d4eec36 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
49d91d9f79 RM-3148: Patch unit test 2016-03-24 13:35:23 +11:00
Roy Wetherall
2a6b2f0751 RM-3148 - File Plan containers rule inheritance patch implementation 2016-03-24 13:07:56 +11:00
Roy Wetherall
491923ef38 Adjust POM's so plugin execution errors are masked in Eclipse 2016-03-24 12:24:07 +11:00
Ana Bozianu
426d782923 RM-3000 - fixed issue for setPropertyValue, executeScript and sendEmail and added unit test 2016-03-23 13:03:34 +02:00
Tuna Aksoy
aadcb24b25 Merge branch 'release/V2.4' 2016-03-23 08:19:43 +00:00
Tuna Aksoy
28ca3ace3a Removed .gitattributes file as it was causing problems. 2016-03-23 08:18:51 +00:00
Tuna Aksoy
3059d1f74a Removed .gitattributes 2016-03-23 08:15:53 +00:00
Tuna Aksoy
40abcf09fb .gitattributes config for binary files 2016-03-23 08:13:12 +00:00
Tuna Aksoy
d6c40f00bd Merge branch 'release/V2.4'
Conflicts:
	rm-community/rm-community-share/pom.xml
	rm-enterprise/rm-enterprise-repo/pom.xml
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/caveat-context.xml
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_de.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_es.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_fr.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_it.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_ja.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_nb.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_nl.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_pt_BR.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_ru.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content_zh_CN.properties
	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/model/caveatModel.xml
	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/caveat/dao/CaveatDAOFromJSONBootstrap.java
	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/caveat/model/CaveatModel.java
	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/caveat/scheme/CaveatGroup.java
	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/caveat/scheme/CaveatMark.java
	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/caveat/scheme/CaveatUtils.java
	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/classification/ContentClassificationServiceImpl.java
	rm-enterprise/rm-enterprise-repo/src/main/properties/local/alfresco-global.properties
	rm-enterprise/rm-enterprise-repo/src/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/caveat/CaveatsBootstrapTest.java
	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/caveat/dao/CaveatDAOFromJSONBootstrapUnitTest.java
	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationSchemeServiceImplUnitTest.java
	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/classification/ContentClassificationServiceImplUnitTest.java
	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/script/caveat/CaveatGroupsGetUnitTest.java
	rm-enterprise/rm-enterprise-share/pom.xml
2016-03-22 22:53:24 +00:00
Tuna Aksoy
39e051e812 Merge branch 'feature-2.4/crlf' into release/V2.4 2016-03-22 07:52:34 +00:00
David Webster
4cbe7b9bfb Update README to point to ide-config 2016-03-21 15:53:34 +00:00
David Webster
0d0d1d740d Add IntelliJ code formatting settings to project 2016-03-21 12:03:27 +00:00
Tuna Aksoy
920daf0679 Added IDE config files 2016-03-21 10:55:06 +00:00
Jean-Pierre Huynh
76b947b534 BDE-548:
- Modified pom to use the maven-release-plugin
- Disable doclint
- Removed the explicit call to maven-source-plugin. The source jars will be created by the maven-release-plugin
2016-03-18 16:01:54 +00:00
David Webster
283e4bb1d2 CRLF: Update following review. Remove explicit binary types and trust Git to work it out on its own 2016-03-16 14:45:32 +00:00
David Webster
8130c6392d Configure CRLF line endings for whole repo
(cherry picked from commit 5f594edd19e37e0c6a838104c80d0da93943c428)
(cherry picked from commit d179e44f7cba552554be5aa3bf30c5eec20dd2e5)
2016-03-16 14:42:00 +00:00
Kristijan Conkas
ddff079bbc Merge remote-tracking branch 'origin/master' into feature/RM-2718_ViewCaveatMarks 2016-03-16 13:44:55 +00:00
Tuna Aksoy
99de1973f4 RM-3132 (Update license headers) 2016-03-16 10:40:33 +00:00
Tuna Aksoy
78bcf02aa7 Merge branch 'release/V2.4' 2016-03-16 10:32:35 +00:00
Tuna Aksoy
8b9734d873 RM-3132 (Update license headers) 2016-03-16 10:26:58 +00:00
Kristijan Conkas
d9762b5f96 Merge remote-tracking branch 'origin/master' into feature/RM-2718_ViewCaveatMarks 2016-03-15 17:43:36 +00:00