2346 Commits

Author SHA1 Message Date
Kevin Roast
c1b4e119c1 Merged V3.2 to HEAD
15358: Merged V3.1 to V3.2
      15356: Fix for ETHREEOH-2561
   15417: Fix for ETHREEOH-2437 - use 'write' webscript transaction to create Calendar container on first refresh.
   15480: Merged V3.1 to V3.2
      15479: Fix to unreported issue with JS search API.
   15481: Fix to unreported XSS issue in Add As Favourite site functionality.
   15482: Maxresults value now passed into underlying search API in search lib JS for improved performance executing large searches in Share.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15483 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-30 08:46:18 +00:00
Dave Ward
24f5a529c6 Merged V3.2 to HEAD
15473: ETHREEOH-2574: Fixed problem when LDAP sync attempts to delete a user who already exists but with username in a different case (e.g. guest -> Guest)
      - ACLs were getting left behind due to case issues
      - Now 'normalize' the name using getUserIdentifier()


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15474 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-29 16:22:20 +00:00
Andrew Hind
f0226fe5d1 RM: Capabilities and entry checks are now enforced for action execution
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15451 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-28 14:31:40 +00:00
Dave Ward
0d6a176f8d Merged V3.2 to HEAD
15388: ETHREEOH-1872: Better debug logging in authentication components
      - Now each authentication component logs every step of the authentication process (including reason for failure) if you switch on debug logging for that component or the entire org.alfresco.repo.security.authentication package. E.g.
      log4j.logger.org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl=debug
      log4j.logger.org.alfresco.repo.security.authentication.AuthenticationComponentImpl=debug
      log4j.logger.org.alfresco.repo.security.authentication=debug
   15196: Further LDAP sync performance improvements
      - Bunch user and group creations into small transactions (except for differential sync on login)
      - Run a differential sync on startup (so that bulk of users are not brought over on first login)
      - Can be disabled by synchronization.syncOnStartup property
   15135: Node creation / ACL performance improvements
      - When an ACL was set on a leaf node such as a person, redundant 'shared' ACLs were created for child nodes with getInheritedAccessControlList(), even though no child nodes existed.
      - Now setInheritanceForChildren() makes a 'lazy' call to getInheritedAccessControlList(), only when it realises there are child nodes
   15133: Changes to datasource definition for improved performance
      - Enable caching and reuse of prepared statements (by default 40 for each connection)
      - Removed custom-connection-pool-context.xml.sample and instead introduced complete property set into repository.properties
      - Updated v3.2 Wiki docs http://wiki.alfresco.com/wiki/Database_Configuration#Overriding_the_Database_Connection_Properties


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15439 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-28 10:12:16 +00:00
Derek Hulley
fc2e47a119 Support 'alf_prop_string_value'
- Simple ID-string table
 - Non-unique and case-sensitive, but with re-use of entries as far as possible


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15430 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-27 13:55:08 +00:00
Mike Hatfield
e7e001ed69 Merged V3.2 to HEAD
15410: Fix for unreported issue where Sites menu "Add to favourites" wouldn't show site name
   15411: ScriptProcessors use non-caching load method for classpath-based scripts when log4j debug flag set
   15412: ALFCOM-3198 - file size misreported in Document Details

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15413 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-27 08:27:37 +00:00
Derek Hulley
20b602324c PropertyValueDAO and alf_prop_class implementation
- Contains patch that is incomplete i.e. future DAO unit tests won't work for incremental dev upgrades

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15405 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-25 03:23:04 +00:00
Gavin Cornwell
7d43509474 Part 1 of MOB-1036. Added form processor filter to intercept the requests for create forms for the records management container types i.e. series, category & folder. The filter adds a default value to the rma:identifier property so the 'Identifer' field in the create dialogs has a pre-populated default (a GUID for now).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-24 14:19:41 +00:00
Gavin Cornwell
5a1e4717e0 Build fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15379 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-24 10:56:39 +00:00
Derek Hulley
de52dd981c Entity cache for ID- and value-based lookups backed by DAO
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15370 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-23 16:18:12 +00:00
Derek Hulley
1e81059ce1 Added copywrite header
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15367 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-23 15:37:06 +00:00
Kevin Roast
d3b100d078 Merged V3.2 to HEAD
15328: Fix for build failure RhinoScriptTest - optimized code path called for correct QName assoc type only.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15354 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-23 09:40:31 +00:00
Andrew Hind
dece4d5a4b Fix for MOB-1185: Alfresco FTS does not respect dual tokenisation when ordering (and locale etc etc)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15300 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-21 10:34:08 +00:00
Kevin Roast
1d57ca9d64 Merged V3.2 to HEAD
15297: Merged V3.1 to V3.2
      15093: Merged V2.1-A to V3.1
         12428: Fix for ADB-150
         13461: Fix for ADB-163 - Generic picker now resizes but has minimum width
         13462: Fix for ADB-164 ACT 7788 - Search button label now configurable as component attribute.
         13757: Fix for ADB-155
         14113: Fix for ABD-143
         14115: Fix for ADB-144
         14493: Fixes for ADB-155 (correction) and ADB-161, ADB-184, ADB-185, ADB-186, ADB-188, ADB-189.
      15162: Fix for ETHREEOH-2278 - missed during merge of ABD-143
      15278: Fix for ETHREEOH-2474 - search regression

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15298 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-21 08:25:30 +00:00
Andrew Hind
86d1ec7516 MOB-1179: Added sort support to Alfresco FTS
- Any sort info added to Search parameters will be respected
- the field can be "Score", "prefix:lname" "{uri}lname" and "@{uri}lname"  or "lname" (in the default namespace)
- only exposed field can be used as defined for FTS and the default namespace will be used if ommitted ...

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15291 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-20 20:44:39 +00:00
Andrew Hind
4a2bfaed4e MOB-1170: Implement RM capabilities (first cut)
- rm tests mostly pass

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15284 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-20 14:22:36 +00:00
Kevin Roast
fed100a646 Merged V3.2 to HEAD
15268: Fix to ScriptNode to return null in call to childByNamePath() when no permissions on requested child node.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15269 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-20 10:12:06 +00:00
Kevin Roast
ef91651662 RM Search sorting by up to 3 fields now implemented in UI and data webscript - still to be implemented at the fts-alfresco query level see MOB-1179
RM Search data webscript refactoring to remove obsolete code and adding sorting parameter
RM Saved Searches list now retrieved by the RM Search UI

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15257 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-17 13:13:08 +00:00
Dave Ward
9b6cac5a74 Merged V3.2 to HEAD
15255: ETHREEOH-2484: Default behavior for LDAP sync is now not to abort on a missing UID or GUID, as it seems more robust

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15256 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-17 12:01:16 +00:00
Dave Ward
63d84b8482 Merged V3.2 to HEAD
15240: Small correction to ETHREEOH-2508 fix. Handle 'empty name' case reported in user forums.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15241 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 17:44:02 +00:00
Dave Ward
7e95d1e5c8 Merged V3.2 to HEAD
15236: ETHREEOH-2508: Support for posixGroup class in Fedora Directory Server
      - If group member attribute doesn't parse as a DN, assume it contains a user ID directly

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15239 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 17:20:55 +00:00
Dave Ward
714481a6ac Merged V3.2 to HEAD
15232: Fix failing unit test
      - Need to test against authentication manager in alfrescoNtlm subsystem

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15235 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 15:40:58 +00:00
Andrew Hind
7eb5cc71a4 Support "now" for dates in lucene queries. d📅now d📅"now" d📅[MIN TO NOW] should all be supported
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15226 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 11:12:32 +00:00
Dave Ward
edb2c94241 Merged V3.2 to HEAD
15219: ETHREEOH-2328: Alfresco authentication component could use wrong ACEGI AuthenticationManager if not at the start of the authentication chain
      - Moved authentication manager so that it is local to the alfrescoNtlm authentication subsystem


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15225 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 11:08:39 +00:00
Derek Hulley
25c94b39a6 Merged V3.2 to HEAD
15220: Fixed ALFCOM-3222: RuleService check for copy doesn't handle permissions
   Removed svn:mergeinfo


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15223 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 10:45:35 +00:00
Kevin Roast
c7bcfd00a4 Added query template support to the new JavaScript Search API.
- JavaScript search query now supports adding query templates to the query definition object:

   search
   {
      query: string,
      store: string,
      language: string,
      templates: [],          optional, Array of query language template objects (see below) 
      sort: [],
      page: object
   }
   
   template
   {
      field: string,          mandatory, custom field name for the template
      template: string        mandatory, query template replacement for the template
   }

   see http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#Templates

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15221 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 10:27:09 +00:00
Andrew Hind
65ceb8f926 Build Fix: switch back to "grant" rather than "abstain" when voters have nothing to say .... temp fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15191 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-15 09:45:47 +00:00
Andrew Hind
0848671c81 RM capabilities: no op impl for RM_QUERY; First cut of Action security wrappers; Tidy up for new access API and config changes to support it across all public services (except AVM)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15186 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 20:05:58 +00:00
Kevin Roast
7f0e03e131 Merged V3.2 to HEAD
15182: Much improved ScriptNode childByNamePath() implementation, ScriptNode API for getParents() and getParentAssocs() and test script for the new APIs.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 16:35:27 +00:00
Mike Hatfield
1adffd1e4e Pop-up with opportunity to edit metadata if Declare as Record action fails.
ScriptNode.parentAssocs() API.
Multi-parent indicator in DocLib (placeholder icon).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 15:42:38 +00:00
Roy Wetherall
5185c894b7 RM Search Aspect Added
- Key properties are collasped onto a common aspect which is automatically maintained and applied to the record or record folder
  - Added immediately period type



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15177 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 13:51:45 +00:00
Andrew Hind
8f32490847 RM capabilities: move, delete, first cut of check filing, POC for public service access tests as RM is not a simple ACL check ...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 10:44:37 +00:00
Dave Ward
8191d82191 Merged V3.2 to HEAD
15158: ETHREEOH-2478: Fix mechanism that allows extension classpath override of subsystem instance properties and Spring config
      - Reported broken on the forums
      - Now improved unit test coverage



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15160 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-13 15:16:31 +00:00
Andrew Hind
ccb0df6159 Fix DM and RM afterInvocationProviders so both DM and RM permissions are not required. First cut of enforcement of create related capabilities. Added explicit abstain for RMVoter (equivalent to no RM entry condition)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15145 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-11 13:47:35 +00:00
Mark Rogers
ab245dbced MERGE /DEV/BELARUS/IMAP_PE to HEAD
15125 - Imap property extraction

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15139 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-10 14:37:18 +00:00
Mark Rogers
3ff41f4675 Added work "Originally" to startup INFO message.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-09 16:26:45 +00:00
Mark Rogers
f5ec782c85 Deployment HTTP adapter was putting commas in the port number
Replace some instances of the word "FSR"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15120 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-09 16:19:40 +00:00
Andrew Hind
6c2eafe88b Merged DEV/RM-DEV to HEAD
15090: Records Management Read Permissions (parts of MOB-747, MOB-815) NOTE =>RM NOW HAS READ ACCESS ENFORCEMENT  
               - permission model
               - DM and RM ignore each other for permissions - they are mutually exclusive
               - Read access enforcement (no write enforcement other than read)
               - Rolled caveat enforcement into acegi voter implementation and afterInvocation implementation
               - updated model with mandatory filePlanComponent aspect


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-08 20:36:50 +00:00
Derek Hulley
33f260e05f Merged DEV/BELARUS/IMAP-3 to HEAD
15059: ALFCOM-3087 (IMAP load tester fixes)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15103 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-08 12:33:37 +00:00
Dave Ward
a929a7fd74 Merged V3.2 to HEAD
15099: Do not allow referential integrity problems in user registry data (dangling references to users in groups) fail the whole sync operation. Just warn and continue.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15100 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-08 09:59:43 +00:00
Gavin Cornwell
47f34d0c10 MOB-884: Select many control, renders a select list with configurable size (5 by default) and allowing multiple selections
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15086 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-07 10:38:38 +00:00
Kevin Roast
fc3a3f2a49 Fix to LuceneQueryParser to throw a descriptive exception rather than cause a Nullptr when an aspect that is not present in the model is specified in the query string.
- Spotted when running an old RM query against new model

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15084 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-07 08:17:38 +00:00
Mark Rogers
6219a0c748 Unit test for reject action on Invitation service.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15079 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-06 13:14:58 +00:00
Kevin Roast
e025d28ebd Merged DEV/RM-DEV to HEAD
14731: Branch for continued records managment development
   14739: Records Management Action Service updates
   14756: Declare/Undeclare record RM actions added
   14791: RM dynamic modelling Stage One.
   14878: Record mamagement events
   14927: Importing the recordsCustomModel.xml
   14993: RM. Handle changes to the Vital Record Definition
   14996: Checking in comments that record the fact that this class is likely to be deleted soon.
   15011: Typo in PublishVitalRecordDefinitionAction.
   15027: Custom properties and associations for RM
   15053: First cut of records management events
   15057: Vital Records refactor, renaming and test fixing
   15060: Form config for RM types and aspects updated to reflect current model
   15071: - MOB-988: Completed type based form support, means that 'create' pages can now be implemented for RM
          - Updated form test page to include 'destination' field to allow instances to be created
   15075: Refactored defineCustomProp,Assoc out into RM actions.
Modified: svn:mergeinfo
   Merged /alfresco/BRANCHES/DEV/RM-DEV:r14731-15075

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15076 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-06 10:07:37 +00:00
Derek Hulley
2902b0e6d8 IMAP configuration changes including support for IMAP home definition
- Added generic RepositoryFolderConfigBean for referencing folders in repo
 - Redefined default and properties used by IMAP


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15064 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-02 14:55:22 +00:00
Derek Hulley
0146cb2f3b Javadoc changes after IMAP example change
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15063 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-02 14:51:26 +00:00
Dave Ward
4fed6c95ee Realign AuthorityServiceTest with the new definition of 'root group in zone'
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15055 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-01 16:57:57 +00:00
Dave Ward
57cd1bfd94 ALFCOM-3110: Groups added to sites became invisible to Share client
- Root groups are now those in the default zone that are not children of groups in the same zone

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15051 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-01 11:39:37 +00:00
Mark Rogers
be07d6ca83 ALFCOM - 3111 - It's impossible to remove group with "Manager" role on "Search for Site Groups" page
- Added new Unit Text and applied similar fixes to removeMembership to those applied to setMembership.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-30 16:39:13 +00:00
Mark Rogers
8f971b1528 ALFCOM-3109 - It's impossible to change role from site manager to any other role on "Search for Site Groups" page
- Now you can chage the last group as long as there's still a user with the manager role.
 - Last manager check is now sums  both groups and users.   And added another unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-30 16:13:45 +00:00