Commit Graph

2124 Commits

Author SHA1 Message Date
Roy Wetherall
a46ecda122 Ensure license header does not appear before import statements in JS files. 2016-03-02 11:59:19 +11:00
Roy Wetherall
f333f57086 update POM config to fix issues on Bamboo 2016-03-02 10:38:33 +11:00
Roy Wetherall
6e3b987948 Updated README with information on how to refresh license headers 2016-03-02 10:25:43 +11:00
Roy Wetherall
7d358e9662 Added enterprise header, target to enterprise projects and headers to enterprise source. 2016-03-01 13:45:32 +11:00
Roy Wetherall
2515ade37c 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
9aac935880 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
be365f98ba Add managed license headers to community projects for java, js and ftl source files. 2016-03-01 13:06:00 +11:00
Roy Wetherall
5059bd7cec Remove old license headers 2016-03-01 12:53:30 +11:00
Roy Wetherall
4cd3a82391 Extended configuration to cover share community, added file exclusions. 2016-03-01 11:35:28 +11:00
Roy Wetherall
201d542c1a Added update header plugin to community repo 2016-03-01 10:58:56 +11:00
Roy Wetherall
10b3e028e2 Added update-file-header goal 2016-02-29 15:11:07 +11:00
Ana Bozianu
c2117b22f3 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
Ana Bozianu
a54f1d0284 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
dd38661ede 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
e3580af85d 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
0f8f199f82 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
9091ab29c9 Merge release/V2.3 into release/V2.4. 2016-02-18 09:29:01 +00:00
Tom Page
a01875164e 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
4008b34356 Merge release/V2.3.0.x into V2.3. 2016-02-18 08:25:03 +00:00
Tom Page
2ae091e95f Update version to 2.3.0.3-SNAPSHOT. 2016-02-18 08:16:49 +00:00
Tom Page
d929120a82 Update version to 2.3.0.2. 2016-02-18 07:35:28 +00:00
Tom Page
bb98f3c962 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
68e322248d 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
a4d58e5fce RM-2968 Update disposition query used to find nodes to cutoff or retain. 2016-02-17 10:50:05 +00:00
Tom Page
8e6bc4b904 Update version to 2.3.0.2-SNAPSHOT. 2016-02-17 10:36:53 +00:00
Tom Page
a334b7967a 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
f68c039490 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
Tuna Aksoy
1dab98b654 RM-2709 (The Add Relationship dialog is not displayed properly and is unusable on Alfresco 5.1) 2016-02-09 20:13:28 +00:00
Ana Bozianu
d24ec3eaf6 Merge branch 'feature-2.4/RM-2947_FixChemistryDependency' into 'release/V2.4'
Feature 2.4/rm 2947 fix chemistry dependency

Fix recent failing UI tests that have the message "java.lang.NoSuchMethodError:
org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory.createCmisBrowserBinding"
This cherry picks the fix which I accidentally committed to master rather than release/V2.4.

See merge request !29
2016-02-09 08:26:08 +00:00
Tom Page
fbd032b753 RM-2947 Remove unnecessary chemistry dependency.
This dependency is provided by the dataprep librarywhich also provides
the implementation. Both should be version 0.10.0 or 0.11.0, but we
were taking 0.10.0 of one and 0.11.0 of the other. This should fix the
NoSuchMethodErrors we were seeing.

(cherry picked from commit 9d510a46c9)
2016-02-08 15:34:36 +00:00
Tom Page
b9adb397ab Convert rm-automation pom file to have windows line endings. 2016-02-08 15:33:41 +00:00
Tuna Aksoy
7ab6f72c1d RM-2944 (Make RM UI Test builds predictable) 2016-02-07 17:49:22 +00:00
Tuna Aksoy
cf1637141c Replaced the deprecated parameter "tasks" with "target" for the maven-antrun-plugin 2016-02-05 23:38:07 +00:00
Tuna Aksoy
4dbc79219f Tided up the pom files (Defined the versions for plugins so that we don't need to specify them in every pom file and we can use the same version in all submodules) 2016-02-05 22:21:36 +00:00
Tuna Aksoy
8a32f37cfa Changed the way how property values are maintained in module.properties. 2016-02-04 23:11:02 +00:00
David Webster
5c9c2335f8 Update localisation properties file so we can translate 2.4 2016-02-03 10:41:23 +00:00
Tuna Aksoy
cf6fd7f6b2 Sonar build was failing because of missing master.db.url when using another DB other than H2 2016-02-01 07:41:03 +00:00
Tuna Aksoy
402fc1b831 RM-2940 (Create parent pom.xml file above rm-community and rm-enterprise) 2016-01-31 20:11:15 +00:00
Tom Page
470952f8ad Merge master into RM-2616_CaveatMarksComparator.
Unit test fixes required to get validation working with NodeService
storage.

Also fixed compiler errors in Eclipse caused by use of inferred generics
in asSerialisableList (I'm not sure this was strictly needed to get the
merged code to work, but it stopped Eclipse from complaining).
2016-01-25 16:35:13 +00:00
Tom Page
9153f1c4ed Merge master into RM-2616_VariousRefactoring.
Adding persistance of unmarked mark, along with display label keys and
description keys.
2016-01-25 13:54:14 +00:00
Tuna Aksoy
14d0cd6eea Fixed warnings 2016-01-24 17:28:05 +00:00
Tuna Aksoy
3100b867ad Remove alfresco-global.properties from the test jar file 2016-01-24 15:19:04 +00:00
Tuna Aksoy
10b90b5a5b RM-2950 (Update rm-community to use same maven sdk as enterprise) 2016-01-23 23:25:07 +00:00
Neil McErlean
7c1568e24d Merge branch 'feature/RM-2587_CaveatMarkingService' into 'master'
Feature/rm 2587 caveat marking service

RM-2587, RM-2833 and RM-2834. Initial implementation of the `CaveatMarkingService` along with some unit tests. (Work in progress)
Mark persistence for NodeRefs, along with mark clearance and some mark retrieval.

See merge request !16
2016-01-22 11:18:00 +00:00
nmcerlean
f12e9f867a Merge branch 'master' into RM-2587_CaveatMarkingService 2016-01-22 10:42:03 +00:00
Tom Page
5187ef1b76 Synchronise RM-2616_VariousRefactoring with RM-2587_CaveatMarkingService.
Incorporate the latest changes to the CaveatMarkingService while maintaining
the unmarked mark functionality.
2016-01-22 10:40:52 +00:00
nmcerlean
c00f1d9fc0 RM-2587, RM-2833 and RM-2834. Applying changes in reponse to Tom's review comments. Thanks Tom. 2016-01-21 11:45:29 +00:00
Tom Page
0a8801f234 Merge master into RM-2616_CaveatMarksComparator.
Prepare branch for CaveatMarkComparator.
2016-01-20 09:34:07 +00:00
nmcerlean
b1d8bcc16b Fixing a compiler error as javac isn't able to infer a generic type when I thought it could. 2016-01-12 12:17:07 +00:00
nmcerlean
578ff64b23 Additional helper method in CollectionUtils to ease dealing with Serializable collections. 2016-01-12 10:36:05 +00:00