4705 Commits

Author SHA1 Message Date
Andrew Hind
8f4c7de052 Fix for ALF-19234 : An Editor (probably also Collaborator) can take ownership of a document (probably also folders)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55237 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-11 13:34:48 +00:00
Pavel Yurke
d11310cea9 ALF-19234 : An Editor (probably also Collaborator) can take ownership of a document (probably also folders)
- Reverted r55167 since it cuases a lot of unit test failure.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55233 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-11 12:53:53 +00:00
Steven Glover
a9ea9897c4 ALF-19234 "An Editor (probably also Collaborator) can take ownership of a document (probably also folders)" fix NPE in acl code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-10 15:50:26 +00:00
Pavel Yurke
57d00ec499 ALF-19173 pagination in cmis change log feed broken
1. In CMISConnector#getContentChanges() was changed newChangeLogToken formation.
2. In CMISTest was added testGetContentChanges() test.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-10 11:23:31 +00:00
Pavel Yurke
da112f3a33 Merged DEV to HEAD (4.2)
54623: ALF-19234: An Editor (probably also Collaborator) can take ownership of a document (probably also folders)
     - The new "ACL_ITEM" cad was implemented. Now we check TakeOwnership permission if cm:owner property is going to change when NodeService.addProperties(), NodeService.addAspect(), NodeService.setProperties(), NodeService.setProperty() methods were invoked. Also testTakeOwnershipPermission test was added to check if we can take document ownership through NodeService without appropriate permissions.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55167 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-10 10:11:58 +00:00
Andrew Hind
f89f2abff4 Fix for Bug ALF-19985 Metadata query performance - remove store join, make node id based -> better ordering and large result set performance (x2-x3)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55166 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-10 10:05:15 +00:00
Harpritt Kalsi
186b7f3431 MNT-10404: Runas problem in workflow when package contains versioned content due to versioning ignoring the runas user.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55164 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-10 09:45:29 +00:00
Matt Ward
57e814314c Merged from branch DEV/mward/head_cachefactory_conf to HEAD
54858: ALF-19668: Further cache configuration overrides
  54859: ALF-19668: added clustered cache types to properties, e.g. createLocalCache, createCache, createInvalidateRemovalCache.
  54867: ALF-19668: ClusterAwareCacheFactory now uses *.cluster.type properties to determine cache type.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55148 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-09 18:41:27 +00:00
Pavel Yurke
fce64e27a9 ALF-19924 IllegalStateException: Unauthenticated during upgrade from 3.4.X to HEAD build 1451
Run as System on bootstrap.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55144 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-09 16:23:55 +00:00
Andrew Hind
51cfadf277 Fix for ALF-19967 CMIS query broken with noindex search
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55135 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-09 14:26:31 +00:00
Pavel Yurke
338ededcb8 ALF-16257: CIFS: Collaborator/editor could not edit file on Mac Os Mountain Lion
For DoubleRenameShuffle scenario for Mac Lion files add moveAsSystem flag to allow Editor to edit files. Add unit tests.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-09 12:41:13 +00:00
Andrew Hind
a1fefd64ef Fix for ALF-19901 Metadata query CMIS QL queries need to do outer joins for "is null" and "order by"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-09 10:55:39 +00:00
Derek Hulley
df7349b6e3 Merged DEV to HEAD:
52797: Fixed ALF-19301 (CLOUD-1685): Unsafe usage of transactions around authenticationCache
   54967: Fix test after changes for ALF-19301: Unsafe usage of transactions around authenticationCache
   Merge: Note that the test changes were applied by using 'patch' because of the file relocation


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-08 22:21:11 +00:00
Derek Hulley
ec38064cbb Merged DEV to HEAD [ALF-19301, CLOUD-1685]:
52798: Replaced 'new Date()' with 'System.currentTimeMillis()' to avoid the Calendar initialization overhead


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55089 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-08 21:57:49 +00:00
Derek Hulley
f0372eca64 Added missing javadoc for JobLockService.releaseLock return value
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55088 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-08 21:53:14 +00:00
Alan Davis
17456b8100 Reverse the reverse merge now that the problem has been fixed on HEAD-BUG-FIX
55059: Fix Build: Reverse Merged
      << Think issue is just from 55012, but not taking the chance. Left the wrong commit r54935 on HEAD-BUG-FIX. I misread 54935 as 54635 >>
      55006: Merged HEAD-BUG-FIX to HEAD (4.2)
         54919: MNT-9571: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
            54377: MNT-9090 "CMIS: Integer overflow in properties": checks for overflow + tests
      55012: Merged HEAD-BUG-FIX to HEAD (4.2)
         54933: MNT-9574: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
            54635: Merged DEV to HEAD-QA (4.1.N)
               MNT-9089 : CMIS: Missing boundaries for integer and long values
                  - Adding default constrains for Integer and Long CMIS PropertyDefinitions. Adding Test.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55079 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-08 07:33:28 +00:00
Alan Davis
5a6bee26b8 Fix Build: Reverse Merged
<< Think issue is just from 55012, but not taking the chance. Left the wrong commit r54935 on HEAD-BUG-FIX. I misread 54935 as 54635 >>
   55006: Merged HEAD-BUG-FIX to HEAD (4.2)
      54919: MNT-9571: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
         54377: MNT-9090 "CMIS: Integer overflow in properties": checks for overflow + tests
   55012: Merged HEAD-BUG-FIX to HEAD (4.2)
      54933: MNT-9574: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
         54635: Merged DEV to HEAD-QA (4.1.N)
            MNT-9089 : CMIS: Missing boundaries for integer and long values
               - Adding default constrains for Integer and Long CMIS PropertyDefinitions. Adding Test.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55059 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-06 15:21:04 +00:00
Alan Davis
f2d52228ec Merged HEAD-BUG-FIX to HEAD (4.2)
54964: Reverse merged as it cause a compilation error. Config structures have chnaged between 4.1 and 4.2 
      54931: MNT-9576: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
         54563: MNT-9461 - CIFS Clustering not Working in alfresco 4.1.5


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55017 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-06 07:19:22 +00:00
Alan Davis
2f707cd8de Merged HEAD-BUG-FIX to HEAD (4.2)
54938: MNT-9570: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
      54855: Merged DEV to V4.1-BUG-FIX (4.1.7)
         MNT-9538 : Upgrade changes cm:modified data for nodes in a workflow
            - Disabling/enabling auditable behavior around the FixBpmPackagesPatch patch


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55016 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-06 07:18:47 +00:00
Alan Davis
7847e81be5 Merged HEAD-BUG-FIX to HEAD (4.2)
54937: MNT-9570: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
      54848: Merged DEV to V4.1-BUG-FIX (4.1.7)
         MNT-9538 : Upgrade changes cm:modified data for nodes in a workflow
            - Disabling/enabling auditable behavior around the FixBpmPackagesPatch patch


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-06 07:18:14 +00:00
Alan Davis
d9524ce81e Merged HEAD-BUG-FIX to HEAD (4.2)
54931: MNT-9576: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
      54563: MNT-9461 - CIFS Clustering not Working in alfresco 4.1.5


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-06 07:13:06 +00:00
Alan Davis
8ade4cb3f9 Merged HEAD-BUG-FIX to HEAD (4.2)
54919: MNT-9571: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2)
      54377: MNT-9090 "CMIS: Integer overflow in properties": checks for overflow + tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55006 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-06 07:09:52 +00:00
Matt Ward
79752c40d8 ALF-19916: Lucene transaction tracking running on single node install
Reindexing now only happens when there is an active cluster of 2 or more members.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54975 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-05 11:59:17 +00:00
Mark Rogers
477ef46f6e ALF-19004 - email alias case sensititity.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-03 11:53:07 +00:00
Andrew Hind
9d0fd59c48 Fix for ALF-19787 RED BUILD: Build repeatedly hanging in UsageTestSuite
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54799 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-02 19:40:53 +00:00
Derek Hulley
8fa8216fef Merged DEV to HEAD:
54373: MNT-2641 : User can delete or move a working copy
   54469: Compilation fix for MNT-2641 test
   54470: Removed thousands of tabs
   54523: Fixed ALF-19843: Integrity checking does not enforce mandatory aspects on aspects
   54525: Pull IntegrityChecker properties into property file (ALF-19843)
   54527: Fixed Eclipse warning about potentially unclosed file
   54528: Prevent cm:workingcopy aspect from being removed directly (MNT-2641)
   54529: Nail down behaviour around cm:workingcopy


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54798 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-02 17:45:26 +00:00
Pavel Yurke
6ad69e9f19 ALF-18548 Failed to start custom workflow if 'Send email notification' is enabled
In TaskCreateListener.notify(DelegateTask) was added check (taskFormKey != null).



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-02 16:49:05 +00:00
Matt Ward
2066ff0384 Merged HEAD-BUG-FIX to HEAD (changes required to support ALF-19785)
54568: Merged V4.1-BUG-FIX (4.1.7) to HEAD-BUG-FIX (4.2.0)
    54471: Fix MNT-9517: Deadlock when binding class behaviours during bootstrap AND starting subsystems
  54471: Fix MNT-9517: Deadlock when binding class behaviours during bootstrap AND starting subsystems


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54747 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-02 08:42:13 +00:00
Matt Ward
6ba121eb00 Merged BRANCHES/DEV/HEAD-BUG-FIX to HEAD:
54579: ALF-19785: Deadlock during build



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-02 07:52:11 +00:00
Ray Gauss
c2ffe676c3 Added more detailed error message to DataSourceCheck
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54713 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-30 13:18:16 +00:00
Derek Hulley
46be029f66 Code cleanup while reviewing ALF-19860
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-29 15:53:46 +00:00
Alex Mukha
c6bcff73df Merged DEV to HEAD (4.2)
54389: ALF-15547 : Stack specific:Incorrect work of My Activities dashlet
   Added a check for siteNetwork to be null in activity feed entry.
   Added JUnit test.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54663 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-29 15:08:20 +00:00
Neil McErlean
9fbba5a5e0 Merged BRANCHES/DEV/V4.1-BUG-FIX to HEAD:
54638: As part of work investigating ALF-19783 I have created a test case. I'm checking this in on 4.1 bugfix (where the issue is not reported)
Merged BRANCHES/DEV/V4.1-BUG-FIX to HEAD:
   54640: (RECORD ONLY) (Part of prep work for ALF-19783) Moving a test class to the correct source tree.

Note that in doing the record-only merge above, the file ScriptNodeTest had been created on V4.1-BUG-FIX *and* on HEAD independently.
So I got a tree conflict in merging 54640 to HEAD as this attempted to svn mv ScriptNodeTest on top of HEAD's existing copy of that file.
So instead, I manually resolved the conflict by merging the two files.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54646 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-29 13:15:35 +00:00
Pavel Yurke
38d6f1e485 Merged DEV to HEAD (4.2.0)
ALF-2875 : Rendition Service transforms incorrect mimetypes
      - Added a check of target mimeType


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54634 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-29 11:33:04 +00:00
Steven Glover
59af34db38 ALF-19592 "Intermittent 403 in CMIS Calls"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54589 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-28 14:45:23 +00:00
Andrew Hind
6226d1827b Improved debug to try and pin down build failure
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54510 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-27 14:52:11 +00:00
Derek Hulley
0d781560bf Fix ALF-19749: NodeService/CopyService interface changes breaks backwards compatibility with add-ons
- This maintains binary compatibility with extensions build before 4.2
 - e.g.  GOOGLEDOCS-235 Unable to deploy latest Google Docs Enterprise AMPs onto 4.2 (HEAD-QA) 
 - Reversed ALF-19217: NodeService and CopyService APIs return modified flags
   We are back to creating redundant versions when duplicate changes are made to data


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-27 11:12:54 +00:00
Matt Ward
6ee97b2625 ALF-19779: Stack specific: Caches are no synchronized between the nodes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54391 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-22 09:21:17 +00:00
Samuel Langlois
eab5cddc79 Merged HEAD-QA to HEAD (4.2) - final one
r54310-54386


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54387 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-22 08:25:02 +00:00
Samuel Langlois
ab4ca7177f Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-20 17:17:31 +00:00
Frederik Heremans
0a36e2af67 CLOUD-1927: Start-task permissions take into account workflow-involvement + added test for this behaviour
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@53990 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-13 09:46:53 +00:00
Frederik Heremans
d9ef85464d CLOUD-1927, CLOUD-1929: Merged PATCHES/V4.1.5 to HEAD:
51932: Merged DEV to PATCHES/V4.1.5 (4.1.5)
       51931: MNT-9145 : "Review" link for assigned to User task is absent in Parallel Review and Approve (Activiti)
          - Allow user from same parallel review workflow to see tasks assigned to other users.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@53834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-09 12:05:21 +00:00
Derek Hulley
255c12f2ba Extra debug for CLOUD-1904 (DEVOPS-3336) Patch "patch.db-V4.1-increase-column-size-activiti" is not executing during SQL phase upgrade
- All schema change SQL statements will be written to debug for cloud
 - DEBUG logging if the ACT_RU_TASK table is not found


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@53158 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-24 20:11:07 +00:00
Gavin Cornwell
db256526d8 Fixed compilation issue
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52865 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-19 12:46:54 +00:00
Gavin Cornwell
2089905890 Enabled ActivitiTimerExecutionTest for CLOUD-1825 this time instead of removing it
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-19 12:25:57 +00:00
Gavin Cornwell
684891d4c2 Enabling ActivitiTimerExecutionTest to help verify CLOUD-1825 is fixed (it's already enabled on HEAD-QA and passing).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-19 08:53:36 +00:00
Derek Hulley
5c3edbb549 Fix CLOUD-1865: Each tenant takes too much time to start up
- Remove redundant INFO logging
 - Add back override that disables tenant startup (THOR-666)
 - Raised issue: ALF-19279 Differences between MT bootstrap in Enterprise and Cloud 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52684 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-16 02:21:38 +00:00
Derek Hulley
597a6b5d89 Increase visibility on methods required for Cloud overrides
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-10 11:09:05 +00:00
Derek Hulley
c9c8cd14e1 More for ALF-19207: ModuleServiceImpl now also prevents setting of applyToTenants
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-10 11:06:21 +00:00
Alan Davis
2837b567a9 Merged HEAD-QA (4.2) to HEAD (4.2)
52339: Started diagnostic playing with ALF-19225: Intermittent test failures in SubscriptionServiceActivitiesTest
    - Use unique user names ... there are enough "bob" users doing things in tests already


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-10 08:34:53 +00:00