3771 Commits

Author SHA1 Message Date
Derek Hulley
c72a19b637 Merged DEV to HEAD:
29876: Removed emotive language from build.xml
   29877: Made getter final; should make members final.
   29879: Extra check for erroneous, pre-existing transactions
   29880: ALF-8966: RSOLR 042: Node deletes keep DB ID (ALF-8965)
          - There is no longer code to change the store ID and UUID for an entry in alf_node
          - During store moves, new node entries are created and node data is moved onto the new node
          - Primarily affects archive/restore use cases
          - Any NodeRef can be tracked using the DB ID associated with it (see NodeService.getNodeStatus)
   29926: Minor toString modification
   29927: Code cleanup: line endings, non-javadoc and isDebugEnabled
   29928: Moved exception absorbtion out of the non-propagating txn (and cleaned up unused code)
   29930: Test for ALF-5714: Write transactions serialized on MySQL
          - The fix is to add this to the MySQL configuration and restart the MySQL server
            innodb_locks_unsafe_for_binlog = true
            See: http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#sysvar_innodb_locks_unsafe_for_binlog
          - The test holds DB resources from one archive process while doing another.  It fails without the setting given.
          - TODO: Documentation required
   29969: ALF-8966: RSOLR 042: Node deletes keep DB ID (ALF-8965)
          - Fixed timing of circular hierarchy detection
   29972: ALF-8966: RSOLR 042: Node deletes keep DB ID (ALF-8965)
          - Fixed ACL retrieval from old parent node during move
          - Fixes PermissionServiceTest failures
   29979: Fix test's initialization
   29987: Fixed txn demarcation during write of transfer report


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 23:09:39 +00:00
Nick Burch
9c5e894a97 ALF-9153 Share sometimes asks for a topic listing with a zero page size, avoid giving this to the CQ engine and instead immediately return an empty result set
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 16:06:13 +00:00
Florian Mü
44aa5689bd minor CMIS bug fixes and improvements
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 15:44:55 +00:00
Nick Burch
2aedabf4c0 ALF-9153 Add unit tests for the new discussions hot topics CQ and service method
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30028 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 14:30:21 +00:00
Nick Burch
b94a0af2e9 ALF-9153 Discussions service CQ support for finding "hot" topics (those with recent replies)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 13:45:59 +00:00
N Smith
7386ef6f44 Fixed failing SiteServiceTest.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30025 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 13:21:07 +00:00
N Smith
1b941f86b2 Fixed failing InviteServiceTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30024 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 12:56:57 +00:00
N Smith
4c867eb9dc Continuing refactor of InvitationServiceImpl to use Activiti workflows.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30020 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 10:04:18 +00:00
N Smith
c9eda64276 Fixed failing test caused by changes to ActivitiWorkflowEngine.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30019 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 09:56:52 +00:00
Andrew Hind
47b39283e2 ALF-9933: RSOLR 042: Add query support for new CMIS object ids
- Part 1: fix and test the old implementation (non opencmis)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30007 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-23 20:20:09 +00:00
Steven Glover
f7f23f6eb7 Refactoring to support ALF-9510, ALF-8702
ALF-8702: Solr-Repository SSL Communications (see solr/source/solr/instance/HowToSetUpSolr.txt
ALF-9510: Initial checkin

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-23 18:34:15 +00:00
Florian Mü
6f73e4153c PWC is not searchable in CMIS
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-23 13:26:54 +00:00
N Smith
fba09d9b2a Started efactoring InviatationServiceImpl so that it uses Activit workflow engine.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29990 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-23 13:24:42 +00:00
Derek Hulley
24fa893ac3 ALF-9990: Schema auto-update fails on MS SQL Server
- Added missing index for FK
 - Added NodeDAO.deleteSubscriptions and only added implementation for MSSQL
 - Removed ON DELETE CASCADE for MSSQL from create scripts


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29968 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 17:40:23 +00:00
Nick Burch
e2c0f84f10 ALF-9153 Support listing discussion topics by created date, as needed by the hot webscript, with service tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 15:03:45 +00:00
Matt Ward
a359d3cec9 ALF-9613: fix some cases of content being in in-memory cache but not on disk.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29957 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 14:55:18 +00:00
Nick Burch
9c62f6938c ALF-9153 Unit tests for the discussions listing CQs permissions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29948 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 13:15:43 +00:00
Mark Rogers
318cfae1b1 Filesystem changes.
a) Fixed bug if IOControlHandler threw IOControlNotImplementedException
   b) Cluster cache initialisation for all filesystem contexts.
   c) Don't attempt to start the filesystem if the cluster config fails.
   d) addition of new property for cluster debug (filesystem.cluster.debugFlags)
   e) Changed the property name from  filesystem.cluster.config to filesystem.cluster.configFile

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29946 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 13:04:18 +00:00
Gavin Cornwell
a9229b3ed6 Tweaked the updateTask method to only send notification emails if the assignee has changed (Explorer client always sends all properties on an update) and added check for null start task just in case!
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 12:22:16 +00:00
Nick Burch
3d050b6033 ALF-9153 Update the topic listing service methods to optionally filter by cm:creator, with tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29943 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 11:23:15 +00:00
Florian Mü
64e58d0257 Added CMIS getCheckedOutDocs implementation
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29941 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 11:20:29 +00:00
Philippe Dubois
f61ca17cfe Added hook that can be used by an external application to refresh
his cache after transfer.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29938 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 07:21:02 +00:00
Roy Wetherall
557980f0af Workflow Notification:
* Activiti reassign notification hook working



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29937 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-22 07:01:32 +00:00
Matt Ward
24354aae0a ALF-9613: added a concurrency test and fix
to ensure concurrent requests for content at a particular URL won't result in the backing store being asked for the same content multiple times.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 16:32:32 +00:00
Mark Rogers
0dd9bb8463 Correction to AlfrescoContext.getLockManager()
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29933 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 16:16:26 +00:00
Mark Rogers
536c155403 Removal of an incorrect increment file state count.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29932 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 15:40:17 +00:00
Florian Mü
127c0e585c Fixed CMIS CAN_CHECK_OUT allowable action
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 15:13:36 +00:00
Philippe Dubois
696db9924d Fix for java.lang.NullPointerException in org.alfresco.repo.transfer.manifest.ManifestIntegrationTest.testSnapshot, DictionaryService injected
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29924 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 14:23:51 +00:00
Mark Rogers
021a93f5c3 First cut of Hazelcast cache initialisation
need to set filesystem.cluster.enabled=true
                      filesystem.cluster.config=c:\\temp\\hazelcastConfig.xml
ALF-9966 - Locking wrong with OpLockManager and LockManager ContentDiskDriver error.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29922 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 13:21:53 +00:00
Florian Mü
11c637b514 ALF-9957: subscription service fix in MT environment
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29915 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 12:05:53 +00:00
Andrew Hind
4427a22e03 ALF-9860: RSOLR 034: Incremental Index Fix
- generic fix, supprot to request purge, index and reindex for tx, node, acl-tx and acl (partly to make broken indexes)
- expose index fix via JMX
- migrate logging in the SOLR project to slf4j to fit the SOLR logging pattern (config to come)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29904 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-19 10:10:46 +00:00
Gavin Cornwell
d093b6a8e4 ALF-9258: Added isEngineEnabled check to the Activiti engine initialisation so the JobExecuterThread is not started when it doesn't need to be.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-18 19:41:52 +00:00
Derek Hulley
355cfd4f95 Part of ALF-9957: MT: test and fix subscriptions. Added null checks from count queries.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29894 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-18 17:10:14 +00:00
Nick Burch
53778ee973 ALF-9153 Discussions Topic Finding (lucene based) on the Java Service for getting topics by tag
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-18 16:11:40 +00:00
Nick Burch
f63b5b0af9 ALF-9153 Further tests for the new discussions replies CQ
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29867 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-18 12:33:28 +00:00
Frederik Heremans
b5d8e12577 ALF-9258: Bootstrapping of schema now done in seperate (disposable) engine, using a bare connection instead of one from the datasource + jobexecutor startup delayed untill SchemaAvailableEvent
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29865 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-18 11:41:19 +00:00
Dave Ward
27dfd5ab17 Merged V3.4-BUG-FIX to HEAD
29716: ALF-4029: FileContentStore does not remove empty folders when deleting URLs   
      delete() now crawls back up the dir hierarchy deleting directories until a non-empty parent is found.
   29767: ALF-9351 No exception with invalid permission definitions
      - DTD/Schema validation added
      - Corrected permissionDefinitions.xml (contained extra -->) so failed validation
   29797: ALF-9916 Audit user actions for site (added st:site to list of types in filter)
   29800: ALF-5499 IndexOutOfBoundsException in QuickSort
      Need to synchronize access to JSF session beans. Added a filter that will use the HttpSession
      (if it exists) as the monitor for a synchronized block so that only one request per session is
      processed at any time. Approach taken in preference to adding synchronized blocks/methods or
      locks to over 200 session beans in the Alfresco Explorer UI.
   29801: ALF-9190: If a user is invited to a site but joins the site independently, they end up with the "Consumer" role, regardless of the role they were invited with
   29805: ALF-4029: added utility to make some rough timings.
   
   29819: Merged DEV/TEMPORARY to V3.4-BUG-FIX (reviewed by Erik)
      29815: ALF-8414 : Remove button does not show on Flash upload in Share
         Changed flash-upload.css styles to correct upload dialog display in IE6/IE7. Changes were tested in all supported browsers.
   29826: Fix for ALF-9930
   29836: Merged V3.4-TEAM to V3.4-BUG-FIX
      27772: Incorrect behavior of enabling Google docs (Really: Forms get submitted twice in certain circumstances)
   29839: ALF-9351 No exception with invalid permission definitions
      - Added permissionsDefinitions.xml to RM's permissionsModelDAO spring bean def (root cause of build errors)
      - Use UTF-8 encoding rather than server default when writing out modified form of model xml
      - Use byte[] rather than a temp file (model files should be small)
      - Added and then commented out an approach that did not require the need to write out the model xml
        (works for schema but not dtd. See notes in javax.xml.validation.SchemaFactory)
      - Fixed problem with RM recordsPermissionModel.xml (select -> selected)
   29841: Fixed ALF-9826	"Folder is copied without content even if 'Apply rule to subfolders' check-box is checked"
   - Added "deep-copy" option for Copy action


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29863 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-18 11:28:44 +00:00
Mike Hatfield
937d945d71 Document Library: some refactoring & clean-up of evaluator code. Adds support for Repository custom response injection; the vti server details have now moved to this model instead of a separate webscript call. Added browser evaluator via userAgent regexp test and access to doclib webscript metadata response in evaluators.
Closes:
  ALF-9173 - SE.S07	Share - Single configuration files for actions
  ALF-9176 - SE.S15	Share - Refactor doclist data webscript to use web-tier ActionGroups and Evaluators
  ALF-9181 - SE.S63	Share - Refactor doclist client javascript to work with updated data response
Fixes:
  ALF-9917 - wrong URLs are generated for some actions
  ALF-9931 - Add simple workflow rule crashes the Document Library

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 20:43:39 +00:00
Nick Burch
2fce262264 ALF-9153 Get the discussions reply CQ working, via some careful mybatis collections handling, and add some tests for it
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29843 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 17:50:59 +00:00
Nick Burch
7ec7327ec4 Add debug logging on executeQuery to mirror that on executeCountQuery
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29842 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 16:45:43 +00:00
Gavin Cornwell
a18b530876 Tweaked the return object for the ActionFormProcessor, it now encapsulates the 'Action' object and the result stored by the executed action (this can be null).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 15:29:17 +00:00
Matt Ward
c3ca707bff ALF-9613: (fake) slow content store and CachingContentStore tests to use it.
Created a stub content store that reads and writes very slowly and end-to-end tests that utilise the slow store to prove there is a speed up on reading and writing through the CachingContentStore.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29838 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 15:12:35 +00:00
Philippe Dubois
3c84a0b4dc For file transfer receiver, there is no access to DictionaryService therefore is was
necessary to add “ancestorType » in TransferManifestNormalNode. “ancestorType » 
can be cm:content, cm:folder or sys:base.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 15:07:27 +00:00
N Smith
6ee8c66098 Refactored the Invitation Workflow Actions and Delegates. Pulled most of the functionality out into an InviteHelper class.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29833 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 14:22:55 +00:00
Nick Burch
1c8c572a85 ALF-9153 Start on the discussion replies CQ
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 13:59:23 +00:00
Roy Wetherall
348cc9831f Workflow Notificatoins:
* Email notifications sent asynchronously
  * Activiti pooled tasks now work correctly



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29812 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-17 04:59:49 +00:00
Dave Ward
20b9d8a3ed ALF-9351: Reverse merged 29767 as it doesn't work, is suboptimal and platform encoding dependent
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29807 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-16 20:14:01 +00:00
Matt Ward
744ec79aea ALF-9613: configuration changes for ContentCachingStore, bug fixes, more tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29803 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-16 17:20:05 +00:00
Dave Ward
5d7e3e52be Merged V3.4-BUG-FIX to HEAD
29755: ALF-6742 Javascript error using the manager permissions action in the docLib on a folder that uses no inherit permissions
      Dmitry change: Modify permissions.js to store permissions that are not supported in separate array during _showDialog()
                     method invocation. Then add them into params that are going to setPermissions() method.
      Error no longer takes place and dialog appears as expected. 
   29756: UI coding standards for r29755
   29757: ALF-9908 Improvement to log output for high level audit to make it more readable to developers
   29767: ALF-9351 No exception with invalid permission definitions
      - DTD/Schema validation added
      - Corrected permissionDefinitions.xml (contained extra -->) so failed validation


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-16 17:17:02 +00:00
Nick Burch
9f67fd6ded On advice from Derek, pre-load node details when wrapping CQ results as higher level objects, for Calendar, Wiki, Links and Discussions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-16 14:59:58 +00:00