2785 Commits

Author SHA1 Message Date
Andrew Hind
6239095959 Part 1 of fix for ALF-2500: (CMIS) query with a ! in contains search make it strange
- refactor CMIS SQL to have its own full text search parser and not reuse the Alfrecso FTS parser
- working parser and unit tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19987 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-26 14:32:59 +00:00
Andrew Hind
0c047b153a Test fix after change to default namespace use in query
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19979 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-23 20:18:22 +00:00
Andrew Hind
6013702f8d Fix for ALF-63: Search: Property names are case sensitive
- fixed all query looks up against the DD to be case insensitive - unless there is any ambiguity
- exact matching will be faster

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19978 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-23 19:36:33 +00:00
Mark Rogers
4a59aba351 ALF-2549 - FixNameCrcValues attempts to create log in current directory.
- now the log is created in a long life temp dir.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-23 14:50:34 +00:00
Andrew Hind
6f82287b74 Fix for ETWOTWO-400 : Group names can not contain "
- authority service find query now uses lucene to escape all chars in the phrases it builds for user and people search.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19968 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-23 11:28:39 +00:00
Andrew Hind
1b80efb03c Fix for ETWOTWO-725: API Spelling error in method CategoryService.createClassifiction should be CategoryService.createClassification
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19963 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-22 19:57:37 +00:00
Andrew Hind
050d96e38b Fix for ETWOTWO-352: Searching for categories with comma characters gives query parser exception
- added unit test that upper cased encodings are valid

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-22 19:52:27 +00:00
Neil McErlean
42390dfd1b Fix for ALF-2047. The fix was to ensure that rendition definitions that produce thumbnails always have PARAM_RENDITION_NODETYPE=cm:thumbnail. To do this, I removed the parameter from the create thumbnail code and added it to the ThumbnailRenditionConvertor, from where it will be picked up by all the code that needs it.
Formerly, the parameter was only set for create thumbnail calls, but not for update thumbnail calls. Therefore when the content nodes were changed as described in the issue, the updated thumbnails were of the default type in the rendition service, which is cm:content which leads to problems in various views.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19955 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-22 14:40:10 +00:00
Neil McErlean
c3e0afa696 Reimplementation of ALF-2220 fix. The ThumbnailRegistry.initThumbnailDefinitions method now detects if the transaction service is read-only and if it is it does not persist any thumbnail definitions. This behaviour fixes ALF-2220.
As part of this change, I have reverted the behaviour so that (for write-mode databases) thumbnail definitions will be persisted on startup even if they have already been persisted. In this way, we can support 3rd party developers who are changing their thumbnail definitions during development.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19953 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-22 13:58:15 +00:00
Jan Vonka
f5e487cc96 Activities feed cleaner: improvement to maxFeedSize (to take into account current Share Activitities dashlet use-case)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19950 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-22 12:27:36 +00:00
Gary Spencer
c18a123228 Refactor of the file state cache code. (Part 2 of 2).
Removed the repo specific file state cache code.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-22 12:16:04 +00:00
Mark Rogers
ebc24ad0e0 ALF-2126 - more updates for the FileFolderService.
- bug fix 
   - unit test expansion
   - have now deprecated the search methods

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-22 11:57:07 +00:00
Mark Rogers
3d3460241d ALF-2126 - IMAP extremely slow (read: unusable) if messages are uploaded to server
- updates to the file folder service for deep listings

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19941 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-21 18:37:47 +00:00
David Caruana
e64c4114a2 Update CMIS index page - spec references.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-21 15:26:01 +00:00
Andrew Hind
c3a112f425 Fix for ALF-927: sp.setMaxItems(0) miss interpreted while searching.
- fixed comment to reflect behaviour as required.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19936 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-21 14:35:33 +00:00
Mark Rogers
10ee7dc2dc Merge DEV to HEAD
19768 : ALF-2346 - IMAP Image File not extracted from body of email

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19931 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-21 11:49:59 +00:00
Andrew Hind
65695eda66 Build fix: Full index recovery test now recovers all indexes (we now delete the indexes on FULL rebuild which means subsequent test will fail to validate)
- DM index ignores AVM stores
- AVM stores are also rebuilt in the test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19930 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-21 11:44:00 +00:00
Nick Burch
8a3a6ed4f9 Try to improve information on if/when the context won't cleanly shutdown, by making the close more explicit, which will hopefully help with ALF-2485
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-21 11:21:56 +00:00
Nick Burch
45c757fee8 Add metadata extractor support for .dwg files (ALF-2262)
The code for extracting .dwg files has been contributed to Apache tika, and the Alfresco metadata extractor deep calls into Tika to have the work done. We retain our own tests of this however.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-21 10:17:11 +00:00
Andrew Hind
2861feadb6 Fix for ALF-2329: Parameter to automatically remove the existing index directories before doing a FULL re-index
- full reindex now deletes any existing DM and AVM indexes
- the index directory is tidied up int eh backround which may take some time
- includes fix to check async snapshots are in the index (it was checking sync twice ...)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19922 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-20 16:51:17 +00:00
Jan Vonka
d74f934789 Fix ALF-2499 (Deleting a web project also deletes similarly named web projects - Potential Data Loss)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-20 15:36:45 +00:00
Mark Rogers
b53c4f4fae Merge DEV to HEAD
19904 : ALF-2126 - IMAP extremely slow (read: unusable) if messages are uploaded to server

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19915 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-20 13:05:05 +00:00
Neil McErlean
4d60018f0c ALF-2220 fix. Rendition Definitions should only be persisted on startup if they have not already been persisted.
Also removed an unnecessary TODO.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19914 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-20 12:54:54 +00:00
Nick Burch
da9a7ec3fe Further test relating to ALF-2221 - verify that the mail.from.default address is used when an invite is sent by someone without an email, otherwise the sender's email is used
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19912 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-20 12:49:08 +00:00
Gavin Cornwell
0a85d1f52f Fix for ALF-1501: regex constraint on text field should allow blank if mandatory not set
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19911 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-20 10:49:59 +00:00
Andrew Hind
703aeeaeb9 Fix for ALF-200: Deprecated methods should have reference to alternative methods
- removed PermissoinService methods deprecated since 2.2/3.0

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19907 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-19 19:46:23 +00:00
Nick Burch
b0e61d1f28 Test to cover ALF-2221 - update the test to check the from email address on invites which are sent out
MailActionExecuter has been updated to track the last message it didn't send out when in test mode


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-19 15:25:12 +00:00
Nick Burch
a711bff301 Add missing Auditable/NotAuditable tags, and stub auditConfig entry
Fixes ALF-2277, where enabling audit broke some site features of share with
 errors around unanotated service methods on Tagging and Invitation


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-19 14:25:17 +00:00
Andrew Hind
0d3f558e11 Fix for ALF-786: WCM Cluster / Lucene: Searching in staging returns duplicate entries (when concurrently submtting)
- fixed duplication arising from indexing 0-1 and 0-2 against the index for near simultaneous snapshots 
- tracking has not been modified nor has index rebuild - the latest index info from the AVM index is definitive and complete - we do not have to do additional work as we do for DM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19898 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-19 14:11:47 +00:00
Jan Vonka
16c4b49359 Fix ALF-2210 - incorrect version history (version label incremented twice, in certain cases)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-19 13:51:59 +00:00
Mark Rogers
41639f8d84 Merge V2.2 To HEAD
ALF-1747 - ISSUE with ContentMetadataExtracter class

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19896 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-19 13:30:03 +00:00
Mike Hatfield
29d1e316a9 ALF-2462 - Duplicate data list item does not handle aspect properties
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-17 01:10:23 +00:00
Jan Vonka
5f481b53bf Fix ALF-898 - WCM: Deleting a file leads to error (only if RM/DOD installed)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19880 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-16 15:59:15 +00:00
Mark Rogers
f4a15e7448 Client Side Transfer Report now validates against its XSD + unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19870 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-15 16:59:21 +00:00
Steven Glover
8b72422af1 Fix for http://issues.alfresco.com/jira/browse/ALF-947.
Fix move operation indexing code so that it can deal with an in-txn index flush, by ensuring that appropriate index aux data is removed from the delta to prevent duplication.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19867 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-15 16:15:33 +00:00
Steven Glover
f14db280f3 Fix for http://issues.alfresco.com/jira/browse/ALF-713.
Can't reproduce the bug but spotted a race condition in UserUsageTrackingComponent that may cause this in rare circumstances. Deal with this by throwing a ConcurrencyFailureException and let the txn retry handler retry the operation.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-15 12:38:19 +00:00
Kevin Roast
47905d3314 Replaced System.out with logger.debug in DMPermissionsDaoComponentImpl.deletePermissions()
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19859 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-15 10:28:45 +00:00
Gary Spencer
08c2d9c773 Added checks to not track live usage if the main content usage service is not enabled.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-14 07:44:40 +00:00
Jan Vonka
c56442c1c2 LinkValidationService deprecated (prep for ALF-2338)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19843 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-13 15:40:18 +00:00
Gary Spencer
ef8e049195 Add live usage quota manager implementation to the file server. ALF-1068.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-13 14:31:13 +00:00
David Caruana
8652b3c8df Fix ALF-2401: Unable to map content models with default namespace prefix to CMIS
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19838 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-13 13:08:29 +00:00
Jan Vonka
89ea49e48e Fix ALF-2225 - content usage count does not take into account deletion of custom docs (sub-types of cm:content)
- also fix recover & add unit tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-13 12:14:14 +00:00
Jan Vonka
6a951fd480 AVMStoreDescriptor - fix minor typo (for debugging)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19835 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-13 11:02:15 +00:00
Mark Rogers
d3816ad09b ALF-510 : errorOnOverwrite not implemented for overwriting files.
- now overwriting a file does result in an error if there is a pre-existing file.
  - also fixed deployment report to have the stack trace even if there is a deployment report.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19824 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-12 17:12:31 +00:00
Andrew Hind
b17f139fb0 Fix for ALF-2376: Expose cmis:baseTypeId as queryable property (or at least include it in the returned query result properties) PART 2: baseTypeId is now queryable
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19821 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-12 13:51:00 +00:00
Mark Rogers
371fc14fc9 ALF-2056 - tempFileCleaner is too aggressive for large WCM deployments
- added the longLife temp folders

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19818 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-12 13:10:07 +00:00
Jan Vonka
d6eeff6fb1 Merged BRANCHES/V3.2 to HEAD:
19807: Fix ALF-2318 - failed to add WCM content (without description or title)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-12 11:55:29 +00:00
Andrew Hind
464c52891b Fix for ALF-2376: Expose cmis:baseTypeId as queryable property (or at least include it in the returned query result properties) PART 1: non-queryable properties are now selectable
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19810 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-12 11:08:38 +00:00
N Smith
700df2c8d4 ALF-800 Externalized the exception messages for JB PMEngine.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-12 09:46:34 +00:00
Neil McErlean
de612572d9 Proper fix for unreported issue with OOo-based extraction of Office 07 metadata.
Added a new metadata extractor based on POI for docx, xlsx and pptx mime types.
Changed OpenOfficeMetadataExtracter so that it no longer supports these mime types.
Added the new test code to ContentMinimalContextTestSuite

Some tidying up of code in AbstractMetadataExtracterTest and OpenOfficeMetadataExtracter to reflect the fact that this extractor does not handle these mime types any more.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19792 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 12:10:06 +00:00