- sort out SOLR per core analyzer properties
- required DD refactoring for loading these particular properties and not using I18NUtils as SOLR needs to over-ride the class loader used ....
- dictionary DAO now supports over-riding the default datatype behaviour (much easier to change the analyser properties file used)
- property added in repositoy.properties
- lucene.defaultAnalyserResourceBundleName=alfresco/model/dataTypeAnalyzers
- models can define per property, class(type and aspects) and model analysis behaviour by specifying an analyser bundle - see the data type model for model level config
- the same notation is used elsewhere
- SOLR and Repository config for this has to be kept in sync by hand - consider syncing these later
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28826 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
28741: Merged DEV/TEMPORARY to V3.4-BUG-FIX
28740: ALF-8993: IMAP favourite star is not visible if imap is enabled via JMX
The org.alfresco.repo.imap.ImapService interface was extended to expose getEnabled() and made the webscript to call ImapService.getEnabled().
28742: ALF-8801: Broken French strings
28745: ALF-6470: French string correction
28746: ALF-5607: Installer deletion of directories on installation cancel.
28756: ALF-9211: Install fails when path selected that contains accents or double byte chars (e.g. Japanese)
- Fix from Bitrock
- Not internationalized yet
28758: Merged DEV to V3.4-BUG-FIX
28743: ALF-8029: JSON returned by some audit queries not valide
Quote user in query.get.json.ftl if it has value.
28761: Merged DEV to V3.4-BUG-FIX
28739: ALF-9123 : "Content URL conversion failed" error being thrown
Note: Actually changed the implementation but the principle remains.
In future, use a thread-safe boolean e.g. AtomicBoolean to carry data
around about the running state; don't use a class member variable as
it can be manipulated by competing threads, etc.
28762: Fix ALF-9376: Typo in Version2Model
28763: Merged DEV to V3.4-BUG-FIX
28754: ALF-8461: Invalid property cm:source (cm:copiedFrom) causes not be become sys:incomplete
Configurable property called 'propertiesToIgnore' was added to IncompleteNodeTagger,and configured to ignore "cm:source".
Merge note: I fixed the stored 'propertiesToIgnore' to be a Set<QName> to prevent unnecessary conversions
28764: ALF-9036: Fix NPE on XForm session timeout
28765: ALF-9211: Externalized new installer message
- Needs localizing
28789: ALF-9407: Single quote characters in messages containing {} need to be doubled
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
SiteService.listSites calls have been partially reimplemented to use GetChildrenCannedQueries.
For queries that search with a filter on sitePreset name, the searches are now CannedQueries.
This is because those queries were formerly using string equality comparisons to filter results, which GCCQ supports.
For queries that search with a filter on site cm:name, it is less simple. Searches such as "foo" are converted to (cm:name, "*foo*") comparisons in Lucene. Such 'contains' comparisons are not supported by GCCQ. These searches still use Lucene pending agreement on which approach to take to reimplementation here. Consistency with user & group searches is required.
This check-in injects the necessary getChildrenCannedQuery beans into the SiteService.
It adds a new method listSites() which returns PagingResults<SiteInfo>. This is used where possible within the old listSites() lucene-based method and is exposed in the public Service for use by third parties.
Also added MethodSecurityInterceptor-based SiteService_security bean to the public-services-security-context.xml
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- The public service interceptors prevent unauthenticated access,
while the internal services ('little' services) should not apply any permission checks
- Added explicit Authority-related test to check
- ALF-9033, ALF-9129 (RINF 50), ALF-9322, ALF-7167 (RINF 11)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28737 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- ALF-9322: RINF 11: AbstractCannedQueryPermissions enhancements
- Pulled in logic around hasMore() so that subclasses just have to obey
- Added in cut-off size estimates
- ALF-9337: RINF 11: Consolidate interceptor wrappers
- Permissions respect PermissionCheckedValue
- Added last-in-chain "afterAclMarking" to "afterInvocationManager": marks collections as checked
- Added 'mixin' interfaces to handle input and output for permission checking of collections
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- initial refactor - we have the option to push-down some of the prop filtering
- note: BlogServiceImpl did not need to change
- TODO: review tag req w/ Neil (either remove and/or push down)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28728 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
28650: Merged DEV/TEMPORARY to V3.4-BUG-FIX
28637: ALF-5601: WCM Reviewer should be able to modify 'Launch Date' of the review item.
Set "wcmwf:launchDate" to read-only on "submitpendingTask".
28697: Fix for ALF-2711 - Fix to handle incorrect (negative size!) content length headers sent by Adobe Flash when uploading files over 2GB.
28702: Merged DEV to V3.4-BUG-FIX
28693: ALF-9314: Unable to add to multi-valued properties via AVM Console
The node property value of Collection type must be set within square braces
as a comma separated values without spaces. E.g. [aaa,bbb,ccc]
28718: Merged PATCHES/V3.4.2 to V3.4-BUG-FIX
28569: ALF-9253 / ALF-9166: 'A valid SecureContext was not provided in the RequestContext' exception on startup following upgrade to 3.4.1
28618: ALF-8385 / ALF-9364: Merged DEV/TEMPORARY to PATCHES/V3.4.2
28565: ALF-5887 Addition of RenameUser command line toolContext
- PersonServiceImpl should not disable normal behaviour when handling duplicate Person NodeRefs as the userAuthorityCache does not get updated correctly
- Tool (base class for Import, Export and RenameUser command line tools) should not automatically login if setLogin(false) has been called.
28719: Merged V3.4 to V3.4-BUG-FIX
28648: ALF-9103: Remove obsolete (and mis-spelled) use-old-dm-alcs-context.xml.sample
28701: Corrected library for - Fix for ALF-7860 - Regression: Close button doesn't work in Node Browser
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28721 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- SOLR tracking now reflects all models loaded and changed on the repo to which it points
- model tracking and related fixes
- model XML now round trips for Boolean properties :-)
- upgraded to latest version of jibx - 1.2.3
- added API to load models and not class load constraint extensions (does not affect the generated model XML only constraint enforcement)
- removed solr specific m2 model binding
- fixed SOLR tracking test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- does not in fact test the SimpleAuthorityService and effectively a subset of AuthorityServiceTest
- fixed by removing it !! ... likely not used since r2746 (sic) when groups were merged in as a non-ent only feature (Alf 1.2'ish ?)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28691 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Added web script to return the status of the GDoc service (see ALF-8684)
- Refactor of service code to fix some of the issues when configuration details are changed via JMX or Share
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Major refactoring of existing onCreateNode/beforeDeleteNode(fm:post) behaviours. They now distinguish between
1. increment/decrement of previously rolled-up commentCounts
2. full recalculation of comment count for nodes that have no previous rollup (which would include nodes from pre-Swift repos).
Added a new registered behaviour: onUpdateProperties(fm:commentsRollup) in order to detect fm:commentCount being set to a "trigger value".
If this property is set to a negative number, then a full recalculation of the commentCount for that node will be performed.
New test cases for preSwift content & the recount trigger.
Added a skeleton (placeholder) CommentService to hold some comment-related methods I needed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
28583: Merged DEV/TEMPORARY to V3.4-BUG-FIX
28451: ALF-5601: WCM Reviewer should be able to modify 'Launch Date' of the review item.
Allows to modify "wcmwf:launchDate" and "wcmwf:autoDeploy" property during task management.
28591: ALF-9208: Site Service performance
- Avoid going through protected node service to access nodes already retrieved by it! Permission checks showing up as main performance drain.
- Optimized listMembersImpl to reduce the number of expensive calls to authorityService.getContainedAuthorities
28592: ALF-9208: Another unnecessary secondary permission check in createSiteInfo
28593: ALF-9208: Fix to permission evaluation in getSiteNodeRef()
28624: Merged PATCHES/V3.1.2 to V3.4-BUG-FIX
28622: ALF-9325: Merged V3.2 to PATCHES/V3.1.2
17523: ETHREEOH-3337: Fix NPEs in RepoServerMgmt operations
- Transactional cache can have entries with non-null keys and null values
28625: Merged DEV/TEMPORARY to V3.4-BUG-FIX (with corrections)
28621: ALF-9113: CommandServlet.java, line 179 (Header Manipulation)
1. Reject absolute URLs
2. Support request-relative URLs that resolve under request context root
28635: Merged V3.4 to V3.4-BUG-FIX
28560: ALF-9087: Missing dataTypeAnalyzers_ja.properties in V3.4
28634: ALF-9249: Stop potential 'ping pong' between subsystems starting and stopping in a cluster
- Regression introduced by ALF-8025 in Team / 3.4.3
- Introduced PENDING_BROADCAST_START state, so that a start() after a successful setProperties() broadcasts only once
- Also automatic subsystem stops aren't broadcast during subsystem export!
- Happens if sysAdmin edits have been persisted as sysAdmin will already have been started before we get to loading its properties
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28636 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
28466: Fix for ALF-6541. maintainAspectRatio does not default to true as documented.
Fixed the javadoc to reflect reality.
Merged BRANCHES/DEV/SWIFT to HEAD:
28482 Implementation of ALF-8969 Lucene removal: Blog webscripts.
** Checking this in on Swift branch, as I have the work there. Will merge to HEAD.
The blog webscript controllers have been ported from JavaScript to Java.
A new foundation service, the BlogService has been added and the impls of the webscript controllers delegate into that service, thus encapsulating business logic within the service.
The API for this service is based on the requirements of the existing webscripts, but is for the most part a 'sensible' API. One controller (blogposts.get.js) had very domain-specific requirements (get all of my drafts and all published posts) and it is implemented as a deprecated public method on the service.
The API is not complete, but represents a good starting point for any future feature development.
The various Lucene queries have been replaced with calls to the nodeservice (as an impl detail within the BlogService) which get all blog post nodes and then post-filter them based on property values, aspect/property presence etc. This will be refactored into a CannedQuery in a subsequent check-in.
I've written new test cases aimed at this API & have extended the REST API tests.
Merged BRANCHES/DEV/SWIFT to HEAD:
r28483 Prevent NPEs in some circumstances. Related to ALF-8969.
Merged BRANCHES/DEV/SWIFT to HEAD:
r28484 Fixing activity reports for Blog posting. Following on from previous chagnes related to ALF-8969.
Merged BRANCHES/DEV/SWIFT to HEAD:
r28597 ALF-8969. Introduction of brute force Canned Queries for BlogService query methods.
This will be merged to HEAD after a chat with Jan/Derek.
Introduced 'brute force' Canned Queries for the various BlogService query methods.
These use the underlying nodeService to retrieve result sets.
They must use the small-n nodeService in order to get full result sets.
Therefore I have had to add some AFTER_ACL_ENTRY checks to the BlogService_security bean for the query methods.
Added various CannedQuery classes for the BlogService queries. They currently split into two:
1. a GetBlogPostsCannedQuery which goes some way towards providing configurable query support, albeit driven by the needs of the Blog Service REST API.
2. a DraftsAndPublishedBlogPostsCannedQuery, which is a very specific CQ aimed at a very specific scenario in the REST API.
Changed the BlogService API to return a BlogPostInfo (simple POJO) rather than the less extensible NodeRef.
This affected the webscript implementations.
Added BlogPostInfo as an acceptable return type for security-based filtering in ACLEntryAfterInvocationProvider.
Merged BRANCHES/DEV/SWIFT to HEAD:
r28598 Repackaged the CannedQuery-related classes to a dedicated subpackage. ALF-8969.
Merged BRANCHES/DEV/SWIFT to HEAD:
r28602 Replacement of some JS controllers with Java-based ports. Part of ALF-8969.
Merged BRANCHES/DEV/SWIFT to HEAD:
r28603 Disabling two test cases pending a refactoring. Related to ALF-8969.
Merged BRANCHES/DEV/SWIFT to HEAD:
r28604 Fixing a compilation error.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28606 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261