Commit Graph

2199 Commits

Author SHA1 Message Date
Roy Wetherall
59bf1cf1a0 Review feedback. 2016-03-07 11:06:43 +11:00
Ana Bozianu
76ba8de108 Merge branch 'feature-2.4/RM-2770_CannotValidateCaveatConfigIfContentStoreEncrypted' into 'release/V2.4'
Feature 2.4/rm 2770 cannot validate caveat config if content store encrypted

RM-2770 - List of Values: Unable to grant access to a values (Transfer Location/Supplemental)
   - run check on transaction commit when the encryption key will also be stored

See merge request !53
2016-03-04 15:13:21 +00:00
Tom Page
18b3e62255 RM-3110 Upgrade to Alfresco 5.1.
This will currently break local builds, but should fix Bamboo builds.
Local builds should start to pass again once 5.1 has been released.
2016-03-04 08:21:03 +00:00
Tom Page
bbf737db64 Revert "Trying to fix builds."
This reverts commit b1c18bb2bf.
2016-03-04 08:20:45 +00:00
Roy Wetherall
95610f4bfc Add missing headers 2016-03-04 10:16:19 +11:00
Roy Wetherall
509ae8e8d6 Merge branch 'release/V2.4' of gitlab.alfresco.com:records-management/records-management into RM-2969_UpdateLicenseHeaders 2016-03-04 09:05:15 +11:00
Roy Wetherall
25a6e9a6b7 Change automation project license to Enterprise following review discusions 2016-03-04 09:04:48 +11:00
Roy Wetherall
ea350e988c Improve configuration of license plugin in POMs 2016-03-04 08:59:15 +11:00
onechiforescu
b1c18bb2bf Trying to fix builds. 2016-03-03 22:00:41 +02:00
Tom Page
c91e71821f Merge branch 'feature-2.4/RM-3099_UpgradeDataprep' into 'release/V2.4'
Feature 2.4/rm 3099 upgrade dataprep

See merge request !55
2016-03-03 16:59:49 +00:00
Ana Bozianu
c8bdafe3b4 RM-2770 - run check on transaction commit when the encryption key will also be stored 2016-03-03 18:17:17 +02:00
Tom Page
c71c602a7d RM-3099 Upgrade data prep library to 1.8.
This should fix the Activiti error seen when inviting users to a site.
2016-03-03 11:20:26 +00:00
Roy Wetherall
cc5444bff2 Fix build failure 2016-03-03 14:50:24 +11:00
Roy Wetherall
1a68115166 Merge branch 'feature-2.4/RM-2700_CommunityOnEnterprise' into 'release/V2.4'
Feature 2.4/rm 2700 community on enterprise

Added module compatibility component that inspects the installed core and rm modules and determines if there is an incompatibility or not.

The application context is closed if there is an issue and an error logged/reported.

See merge request !49
2016-03-03 03:13:42 +00:00
Roy Wetherall
78fcda90a7 Use POM hierarchy to remove plugin configuration duplication 2016-03-03 13:07:19 +11:00
Roy Wetherall
9085014d54 Merge remote-tracking branch 'origin/release/v2.4' into feature/RM-2700_CommunityOnEnterprise 2016-03-03 11:16:11 +11:00
Roy Wetherall
18c618a919 Review feedback 2016-03-03 10:50:16 +11:00
Roy Wetherall
d165a43353 Refresh license headers to include changes to community license and module description 2016-03-03 10:38:37 +11:00
Roy Wetherall
4346d79cc9 Update to community license header 2016-03-03 10:29:23 +11:00
Roy Wetherall
9b2f975ed4 Ensure license header does not appear before import statements in JS files. 2016-03-02 11:59:19 +11:00
Roy Wetherall
9371461975 update POM config to fix issues on Bamboo 2016-03-02 10:38:33 +11:00
Roy Wetherall
a84922be19 Updated README with information on how to refresh license headers 2016-03-02 10:25:43 +11:00
Roy Wetherall
ba96f27ccc Added enterprise header, target to enterprise projects and headers to enterprise source. 2016-03-01 13:45:32 +11:00
Roy Wetherall
6b8851b201 Merge branch 'release/V2.4' of gitlab.alfresco.com:records-management/records-management into RM-2969_UpdateLicenseHeaders 2016-03-01 13:16:51 +11:00
Roy Wetherall
b6571f5e85 Add update license header goal to automation project and add community license to automation project source. 2016-03-01 13:16:05 +11:00
Roy Wetherall
412353c044 Add managed license headers to community projects for java, js and ftl source files. 2016-03-01 13:06:00 +11:00
Roy Wetherall
2bbdd7cd48 Remove old license headers 2016-03-01 12:53:30 +11:00
Roy Wetherall
ddc33b1fa4 Extended configuration to cover share community, added file exclusions. 2016-03-01 11:35:28 +11:00
Roy Wetherall
ac9ba4bb1c Added update header plugin to community repo 2016-03-01 10:58:56 +11:00
Roy Wetherall
c5be9defff Added update-file-header goal 2016-02-29 15:11:07 +11:00
Roy Wetherall
e5e5597efc Fixed issues with detecting correct license 2016-02-29 13:52:17 +11:00
Roy Wetherall
0f80b9f992 Unit test for module compatibility component 2016-02-26 11:51:08 +11:00
Ana Bozianu
cfc9c6988f RM-2994 : fixed issue
- issue title: Copy/Move/Link actions don't take place and errors are thrown when running rules that perform them.
   - regression caused by RM-2072 merged forward from v2.2
   - the retrying transaction helper was missing from copyTo, moveTo and linkTo beans and was causing NullPointerException
   - createOrResolvePath method calls getContext on a node created in the current transaction which is not visible in the new transaction and it throws a FileNotFoundException
      - solution: I moved the creation of the new transaction after the context was retrieved as the concurrency exception reported in RM-2072 was being caused by property updates
2016-02-25 19:37:14 +02:00
Roy Wetherall
1c3a369faa Use context refresh event to ensure handler is called 2016-02-25 12:02:13 +11:00
Roy Wetherall
e2421d514e Merge branch 'release/V2.4' of gitlab.alfresco.com:records-management/records-management into feature/RM-2700_CommunityOnEnterprise 2016-02-25 10:42:21 +11:00
Ana Bozianu
985c77ece6 Merge branch 'feature-2.4/RM-2937_RecordDestructionKeepingMetadata' into 'release/V2.4'
Feature 2.4/rm 2937 record destruction keeping metadata

RM-2937 - The destruction of records can not be completed if the metadata is set to be maintained after destruction.

The issue reproduces only if image magic is correctly installed. If the node to be destroyed has associated renditions cleaning the rendition's content is failing because there is no capability to allow the operation. This in a regression from 2.3 where method security was disabled for the class that was deleting the thumbnails.

The code has been refactored in 2.4 and the content cleaning is performed in a new class. ExtendedContentDestructionComoponent uses the NodeService interface which enforces method security. ExtendedContentDestructionComoponent  extends ContentDestructionComoponent from community which uses the nodeService implementation. I fixed it by using the implementation directly.

After fixing the issue I noticed the renditions nodes are not deleted which is a regression from 2.3 and there is no comment to specify this was intended so I deleted the rendition node.

I noticed that the method ContentDestructionComponent.destroyContent has the parameter includeRenditions which is not being used in the code. We are deleting the rendition even if this boolean is set to false. Should I fix it with this issue or should we raise another issue for this problem. Please advise.

See merge request !39
2016-02-23 09:54:52 +00:00
Ana Bozianu
2d473a865e Merge branch 'feature-2.4/RM-2996_UploadUnfiledReacordsWithRuleOnFilePlan' into 'release/V2.4'
Feature 2.4/rm 2996 upload unfiled reacords with rule on file plan

RM-2996 - Files can not be uploaded in Unfiled Records if the File Plan has rules defined applying to sub-folders

The execution of rules as well as RM's RecordsManagementContainer.onCreateChildAssociation behavior fire before transaction commit and is unpredictable which one will run first. If the rule runs first the newly uploaded node doesn't have rma:filePlanComponent set at the time the method shouldRuleBeAppliedToNode executes. Calling recordService.isFiled(nodeRef)) will trigger capability check among which ViewRecordsCapability will check if the record has the rma:filePlanComponent aspect.

As a fix I ran the code from shouldRuleBeAppliedToNode method as system to avoid capability check.

I am aware the fix is a workaround but I think this is part of a bigger problem. The rules are fired before transaction commit and may conflict with other behaviors registered on transaction commit. However, we cannot add the aspect earlier in RM.

See merge request !37
2016-02-22 08:54:59 +00:00
Ana Bozianu
dbf123af83 RM-2937 - The destruction of records can not be completed if the metadata is set to be maintained after destruction.
- removed nodeService and eagerContentStoreCleaner from rm.contentDestructionComponent bean as they are already set on contentDestructionComponent
   - fixed the ignored boolean
2016-02-19 13:31:17 +02:00
Ana Bozianu
19b36d664f RM-2937 - The destruction of records can not be completed if the metadata is set to be maintained after destruction.
- ExtendedContentDestructionComoponent uses the NodeService interface which enforces capability check. ExtendedContentDestructionComoponent  extends ContentDestructionComoponent from community which uses the nodeService implementation. I fixed it by using the implementation directly.
   - After fixing the issue I noticed the renditions nodes are not deleted which is a regression from 2.3 and there is no comment to specify this was intended so I deleted the rendition node.
2016-02-18 12:18:00 +02:00
Tom Page
2bd1f7cdf9 Merge release/V2.3 into release/V2.4. 2016-02-18 09:29:01 +00:00
Tom Page
7c9e5f915f Merge release/V2.3 into release/V2.4.
Record only merge of RM-2709 (which is already fixed on V2.4 and above).
2016-02-18 09:21:02 +00:00
Tom Page
358555c332 Merge release/V2.3.0.x into V2.3. 2016-02-18 08:25:03 +00:00
Tom Page
9fb2189bea Update version to 2.3.0.3-SNAPSHOT. 2016-02-18 08:16:49 +00:00
Tom Page
0f2347e8ba Update version to 2.3.0.2. 2016-02-18 07:35:28 +00:00
Tom Page
8384ec47cf Merge branch 'feature-2.3/RM-2968_CutoffQuery' into 'release/V2.3.0.x'
Feature 2.3/rm 2968 cutoff query

See merge request !36
2016-02-18 07:30:41 +00:00
Ana Bozianu
3700a455c9 RM-2996 - Files can not be uploaded in Unfiled Records if the File Plan has rules defined applying to sub-folders.
- recordService.isFiled(nodeRef) fires capability check which conflicts with RM behavior so I run shouldRuleBeAppliedToNode code as system to skip capability check
   - this approach is a workaround
2016-02-17 15:37:19 +02:00
Tom Page
ca46be936e RM-2968 Update disposition query used to find nodes to cutoff or retain. 2016-02-17 10:50:05 +00:00
Tom Page
f67c5fe319 Update version to 2.3.0.2-SNAPSHOT. 2016-02-17 10:36:53 +00:00
Tom Page
dfe51239d1 Merge branch 'feature-2.4/FixBrowseListWait' into 'release/V2.4'
Feature 2.4/fix browse list wait

See merge request !31
2016-02-12 08:31:12 +00:00
Tom Page
77c9e656b9 Fix the BrowseList getItemCount call.
Previously, for the standard format of message "1 - 4 of 4", this was
returning 0 because the code was expecting three space separated values,
not five.
2016-02-11 11:39:55 +00:00