Commit Graph

807 Commits

Author SHA1 Message Date
Tuna Aksoy
ca5316b6e2 RM-3993 (Exceptions thrown when concurrently creating identical folder structure) 2016-09-20 00:54:14 +01:00
Silviu Dinuta
d3628be26b RM-3996: added unit tests and fixed the bug with infinite loop when
batchsize=0
2016-09-15 14:04:06 +03:00
Silviu Dinuta
7d7d10768d RM-3906: set maxProcessedRecords to batchsize value if it is not set
from the request
2016-09-14 10:32:42 +03:00
Silviu Dinuta
9b5e311936 RM-3960: did most of the review mentioned improvements 2016-09-13 21:12:15 +03:00
Silviu Dinuta
194e075cc6 RM-3906: Implemented webscript 2016-09-13 15:58:43 +03:00
Roy Wetherall
f9ef2cd585 RM-3074: Initial refactoring of the extended security service implementation
RM-3074: Added root group and zones

* added root inplace group, created on start-up if not already there
* all groups created in RM zone
* fixed up file plan permission unit test and removed ignore from test
suite
* removed delimeters from groups names to keep length to a min

RM-3074: Find groups and handle clashes

* refactor how existing groups are found
* name with index
* handle hash clahses

RM-3074: Add exact group match

* ensure that hash match is backed up with exact match
* fill out JDoc

RM-3074: unit testing of extended security service impl

RM-3074: groups assigned to RM roles, not authorities

* IPR groups are now assigned to RM roles rather than the individual
authorities
* more unit tests

RM-3074: Remove unnecessary files

RM-3074: review comments

RM-3074: Refactor so read and write groups are reused independantly based on review comments

RM-3074: Inplace move no longer needs to modify extended security

* inplace move no longer needs to store and reset extended security
* no need to clear extended security when assoc is removed
* a couple of extra checks to inplace move integration test

RM-3074: place common logic to get readers and writers of a node in one place

* added getReadersAndWriters method to extended permission service
* refactored calling services, consolidating code into one location
* extended unit test

Note: getFullAuthenticatedUser has been removed from writers list as it
makes no logical sense since you must be a writer in order to perform
these operations in the first place.

RM-3074: Rename set/remove methods on extended security interface

* create deprecated service interface to tidy things up
* create set method and deprecate exisiting
* crate remove method and deprecate exisiting
* remove deprecation warnings in code

RM-3074: missing file

Change in project structure

RM-3074: Rename getReader and getWriter methods

RM-3074: Unit test for records with renditions

RM-3074: Integration Tests, including BDT test helpers to simplify code

RM-3074: Integration tests

* including fix for ghosted records being visible in collab sites

Add completeEvent method

RM-3074: Review comments

RM-3074: Contributor didn't get write in-place access as expected

* owner derived from cm:creator was not added to writer list
* fully authenticated user in base test was being set incorrectly
* transaction executed outside authentication in BDT classes

RM-3074: missing file

RM-3074: Fixup community integration tests

RM-3074: Fixed failing test

RM-3074: Test group reuse

RM-3074: Deleted creators cause failures when declaring records

RM-3074: Fix unit tests

RM-3074: Remove extended security when a record is copied

Add AlfMock to help backport unit tests

RM-3074: Compile tests with 1.8

RM-3074: Fix integration test

RM-3074: Fix integration tests
2016-09-09 14:00:38 +10: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
Alan Davis
b3f8635fdd Merged RM 2.3 to trunk RM 2.3.0.x
112691 abozianu: MNT-14728 : CLONE for HF - RM: Not all files are found when searching for a keyword using advanced search.
      - partial workaround (the elements can be scrolled down but the total result number is still wrong)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3.0.x@112697 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-09-23 13:18:46 +00:00
Tuna Aksoy
db1ec1fae2 RM-1981 (Cant reject the record that has any version records)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@98191 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-26 21:13:55 +00:00
Tuna Aksoy
f212d67b58 RM-1980 (Can't delete version record if it is the last version of the document)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@98190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-26 21:10:51 +00:00
Roy Wetherall
0834d4961c RM-1959: User can add/remove relationship to/from record he has read-only permissions for
* integration tests
 * small fix to service implementation



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97950 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-25 04:17:54 +00:00
Roy Wetherall
af6f894ed0 Prevent incompatiable disposition schedules from being linked together
* the unpredicatable behaviour was caused by this incompatibility and the resulting uncertaintity over which level of dispostion would 'win'
  * RM-1963: It is not possible to cut off record scheduled for cut off if it's linked to a folder with disposition schedule with cut off step set on folder.
  * RM-1962: The disposition schedule steps are not working as expected on a record linked to a folder with disposition schedule on it's own.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97948 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-25 00:25:33 +00:00
Roy Wetherall
890dd9417c RM-1956: Create record capability allows user to edit metadata and copy category/folder /record
* fixes issue relating to filing records with only CreateRecord capability



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-24 21:38:10 +00:00
Roy Wetherall
a3c738dd04 Missed update .. fix build.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97789 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-24 00:18:26 +00:00
Roy Wetherall
fc3fb36a3b Attempt to fix failing Unit Tests that are passing locally.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-24 00:07:08 +00:00
Roy Wetherall
ca1f697f45 RM-1972: Methods with invalid policy are granted access
* invalid policy defintions now throw exception .. previously they just granted!
  * invalid capability definitions now throw exception .. previously they abstained with no message
  * reference to RM.Write removed and replaced with RM.Create or more appropriate permission check
  * adjustments to hold capabilities since they wheren't being exercised as we thought
  * ManageAccessRights no longer checks for frozen .. you should be able to manage the permissions of an object if it's frozen and you have the capability
  * Unit tests for new code and adjustments
  * Tweaks to existing integration tests where required



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-23 23:02:09 +00:00
Tuna Aksoy
8ed56c8d91 RM-1956 (Create record capability allows user to edit metadata and copy category/folder /record)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97718 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-22 14:11:17 +00:00
Alexandru Balan
cc7243370e Merged BRANCHES/V2.2 to BRANCHES/V2.3:
97533: RM-1586 - server-side fix for legacy custom property names that might contain spaces

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97600 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-20 14:18:54 +00:00
Ana Bozianu
35c21d9916 RM-1914 : "Related Record Transferred To Inactive Storage" is not completed automatically
- Merged revision 97301 from /DEV/BUGFIXING/V2.3-2015_02_17



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97461 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-19 10:45:21 +00:00
Alexandru Balan
8e41805436 Merged BRANCHES/V2.2 to BRANCHES/V2.3:
97444: RM-1586 Restricted the custom metadata property names to alphanumeric and a few special characters
   97026: RM-1660 Fixed NPE exception on schema upgrade Also fixed transaction type for the capabilities schema update.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97447 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-19 08:59:00 +00:00
Tuna Aksoy
97be4d6b31 RM-1956 (Create record capability allows user to edit metadata and copy category/folder /record)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97433 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-19 00:10:11 +00:00
Tuna Aksoy
cf4d9ae04b RM-1942 (Hold creator can't view the hold he has created)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-17 17:20:18 +00:00
Tuna Aksoy
ff2a49595a Removed unused constant
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-17 09:26:09 +00:00
Roy Wetherall
9837209add After reject, version record indicator still present
* Relates to RM-1776: Can't upload new recorded version to rejected document that has recorded versions



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-17 05:12:16 +00:00
Roy Wetherall
d1ba1372a8 Further subdue exception that contains no useful information and is prevelant during auditing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97189 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-17 04:34:45 +00:00
Roy Wetherall
6817585c22 Audit related errors seen on console that had no side effect cleaned up
* discovered whilst testing RM-1835



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97109 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-16 03:10:25 +00:00
Roy Wetherall
552359138e RM-1864: New version is created when "Declare as version record"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-16 02:08:54 +00:00
Tuna Aksoy
2ee573c5ba RM-1862 (Reference to rejected record is remaining)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97058 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-13 17:09:46 +00:00
Alexandru Balan
7ebc0dcdd3 RM-1660 Fixed NPE exception on schema upgrade
Also fixed transaction type for the capabilities schema update.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.2@97026 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-13 13:14:12 +00:00
Tuna Aksoy
d95022a239 RM-1800 (Transfers are not displayed for non-rm-admin users)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-12 23:21:42 +00:00
Tuna Aksoy
798d7f7cb9 RM-1644 (Possible to create "report" records and copy records without Create Record capability)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96905 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-12 11:08:43 +00:00
Tuna Aksoy
3ed8b6791b RM-1903 (Can't manage permissions without "Manage Access Controls" capability)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96823 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-11 13:38:10 +00:00
Tuna Aksoy
976b95a20e RM-1867 (Reject rule works incorrect if set up in File Plan)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96754 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-10 15:54:29 +00:00
Neil McErlean
e82595b298 Probable fix for RM-1886.
It's not clear to me what the correct code is in this method, but I've changed what's there by comparing it to the AssociationRef-typed method below it. My changes seem reasonable. Probably needs review.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96724 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-10 14:40:09 +00:00
Roy Wetherall
69d5c44957 RM-1887: Unfiled record behaves as not unfiled after move
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96631 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-09 22:33:33 +00:00
Tuna Aksoy
0f22865d57 RM-1904 (SubCategory moved to root have inheritance on)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96580 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-09 17:28:14 +00:00
Tuna Aksoy
3657d5af96 RM-1867 (Reject rule works incorrect if set up in File Plan)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96524 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-09 10:17:39 +00:00
Ana Bozianu
aee8114b78 Merged revision(s) 96306 from modules/recordsmanagement/DEV/BUGFIXING/HEAD-2014_12_09:
RM-1738 : Details page information is not shown for user with no permissions on parent folder
   - ran the check against the parent as system


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96362 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-06 08:00:14 +00:00
Ana Bozianu
f80e8b5cbc RM-1871 : Merged revision(s) 94472 from /DEV/BUGFIXING/HEAD-2014_12_09
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96064 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-04 14:29:36 +00:00
Tuna Aksoy
aa94fe0209 RM-1800 (Transfers are not displayed for non-rm-admin users)
* Reverted the changes from r94481

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-02 18:38:27 +00:00
Tuna Aksoy
68625d9051 RM-1867 (Reject rule works incorrect if set up in File Plan)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95746 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-02 18:17:26 +00:00
Tuna Aksoy
1b54651c6e RM-1835 (Error is generated when giving access on a list to a user)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95742 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-02-02 17:32:11 +00:00
Tuna Aksoy
b1a6035e4e RM-1879 (Audit: Delete object event displays wrong path for different browser languages other than English)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95689 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-31 23:16:56 +00:00
Tuna Aksoy
9b9ae58b05 RM-1879 (Audit: Delete object event displays wrong path for different browser languages other than English)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95688 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-31 22:34:19 +00:00
Tuna Aksoy
65698b90cc RM-1878 (Audit: Create person event displays a wrong text and link)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95684 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-31 21:57:02 +00:00
Tuna Aksoy
0388519daf RM-1851 (Audit: the "Role" for "Declare as version record" is not displayed)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95095 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-31 15:57:28 +00:00
Tuna Aksoy
c9cbd99f5e RM-1800 (Transfers are not displayed for non-rm-admin users)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@94481 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-30 17:27:49 +00:00
Neil McErlean
749a0fb239 Code fix for RM-1821. The fix is to strip RM-related aspects from all renditions of a rejected node, as was previously done only for the node itself.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@94473 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-30 16:35:51 +00:00
Ana Bozianu
c8159fce15 RM-1738 : Details page information is not shown for user with no permissions on parent folder
- fixed compilation error



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@94460 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-30 13:49:59 +00:00
Ana Bozianu
e3dfeea6c3 RM-1738 Merged revisions 94050-94454 from DEV to V2.3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@94455 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-01-30 13:29:28 +00:00