2803 Commits

Author SHA1 Message Date
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
Mark Rogers
fa927055d9 Unreported bug : deployment lock needs to include port number.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 10:45:59 +00:00
Mark Rogers
00edffb68d ALF-2049 - ClassCast exception during import
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 10:34:02 +00:00
Mark Rogers
6c73c32893 ALF-2314 - WCM Deployment: Deployment Report fails if deploying multiple targets (concurrently)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 10:21:52 +00:00
Neil McErlean
4fdfac66da Refactor of previous test fix. I have pushed down the OOo-specific parts of the change from AbstractContentTransformerTest to OpenOfficeContentTransformerTest leaving an extension point in the base class should other transformations need to be excluded in the future.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 09:48:14 +00:00
Neil McErlean
fad02fa135 Fix for failing test OpenOfficeContentTransformerTest.testAllConversions.
Various OOo-related transformations are returned as available but fail on our test server with OOo on it.
Pending further work on these failings, I am disabling those transformations in test code whilst leaving them available in the product code. This is because in the wild a different OOo version may succeed with these transformations.

I had previously explicitly disabled 3 transformations in the product and I am moving that restriction from product to test code for the same reason.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19785 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 09:39:35 +00:00
Gary Spencer
1261142950 Fix for CIFS/CheckInOut.exe save of working copy breaks lock on original file. ALF-2028.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19784 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 08:47:35 +00:00
Gary Spencer
56f6c38b22 Fix for working copy checked out via CIFS is not accessible until FileStateReaper expires file state. ALF-962.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-09 08:41:54 +00:00
Neil McErlean
b1f48c9747 Fixing test failures on HEAD. OOo is returning null values for pptx, xlsx properties author, title, description.
So these checks have been suspended. Will examine use of Poi to extract these properties.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19775 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-08 16:01:26 +00:00
Jan Vonka
e51c893643 Fix ALF-2324: Virtualization Server failed to connect to WCM Authoring Server
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19772 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-08 15:38:51 +00:00
David Caruana
f901c63daa Fix ALF-2332: getRelationships fails for associations whose source or target types are not mapped to the CMIS domain model
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19747 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-06 17:01:24 +00:00
Jan Vonka
8aeb83d1c9 Merged V3.2 to HEAD
19524: Fix AVM indexing NPE when running AVMCrawlTestP (if src & dst are both deleted / not there)
    19652: ALF-885 - fix test


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19726 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-01 11:23:33 +00:00
Derek Hulley
56bf21e4c5 Merged BRANCHES/V3.2 to HEAD:
19714: Added dialect-driven bean factory, HierarchicalBeanLoader
   19715: Test resource for HierarchicalBeanLoader
   19716: Added ControlDAO with PostgreSQL-specific override
   19717: Fix ALF-726 for PostgreSQL


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19720 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-01 01:23:31 +00:00
Derek Hulley
f27434f2c6 Merged BRANCHES/V3.2 to HEAD:
19177: (RECORD ONLY) Updated record-only entries for V3.1 branch
   19321: (RECORD ONLY) Removed deep svn:mergeinfo
   19331: (RECORD ONLY) Merged HEAD to BRANCHES/V3.2:
        19324: Follow-up on ALF-765 by upgrading EHCache to 2.0.0Performing merge across the whole of the branch
   19526: Moved ContentServicePolicy static QNames onto policy classes
   19539: (RECORD ONLY) Merged HEAD to V3.2
         19538: Build fix - fix build speed
   19541: Added extraction of custom, mapped metadata from PDF documents
   19543: (RECORD ONLY) Removed deep svn:mergeinfo
   19598: (RECORD ONLY) Backported (merge not possible) HEAD rev 18790 for IndexInfo fixes
   19626: Fix for ALF-732:  Possible memory leak using the .getNodeRefs() method against a ResultSet ...
   19629: (RECORD ONLY) Merged HEAD to V3.2
        19625: Fix to allow Share logo to swapped out for a different one without having to modify the header CSS.
        19628: Corrected Share header component height.
   19649: ALF-885: Cannot retrieve cm:title from an AVM node in FreeMarker (if persisted with actual type set to MLText)
   19694: (RECORD ONLY) Merged V3.2 to HEAD: r19310 bad back merge - record-only
   19713: (RECORD ONLY) Removed svn:mergeinfo


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19719 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-04-01 01:05:03 +00:00
Neil McErlean
f11ce22967 Return value from isTransformationBlocked was inverted. Fixed now.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19707 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 16:37:01 +00:00
David Caruana
d452965061 Fix ALF-2299: CMOS AtomPub binding - Property definition does not map Alfresco content model defined MINMAX constraints
- MINMAX constraint now mapped to minValue and maxValue in CMIS property definition

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19706 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 16:35:45 +00:00
Neil McErlean
fcc149147f Refinement of previous check-in re OOo transformations.
I have pulled up the code that handles blocked transformations into a superclass so that the JodConverter-based transformer worker can inherit the same list of blocked transformations. To reiterate, blocked transformations are those that the OOo integration code believes should work but which are broken in practice. These are blocked by the transformers and will always be unavailable regardless of the OOo connection state.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19705 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 15:25:57 +00:00
Neil McErlean
7daa5141b6 Fix for HEAD builds running on panda build server.
OOo was recently installed on panda which has activated various OOo-related transformations/extractions in the test code.
It appears that OOo does not support some transformations from Office 97 to Office 2007. Specifically doc to docx and xls to xlsx. These transformations have now been marked as unavailable.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19702 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 15:07:29 +00:00
Brian Remmington
6100444180 A tweak to the word "manifest" on the transfer service event model. Altered to "snapshot", since I can foresee a time when a proper manifest will also be needed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19701 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 15:06:34 +00:00
Nick Burch
bc484918c0 Fix ALF-1006 - problems with tag scope on share Wiki pages
The tagging service and checkout/checkin weren't quite playing nicely
 together due to the way the copy policy was being triggered. A new
 "before copy" policy was added, to complement the "on copy complete"
 policy, and the tagging service updated to use this.
A tagging test which calls checkout/checkin was added that verifies
 that the tag scopes now behave correctly under this action.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19692 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 12:10:23 +00:00
Brian Remmington
4f9f63ac01 A few minor corrections to XSLT rendering engine code discovered while writing the related wiki page
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19685 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-31 08:19:30 +00:00
Derek Hulley
521fe34786 Fix PostgreSQL handling for null Serializable values (ALF-1614)
- Dialect determination sets a static that determines the setNull handling on Serializable
 - Default is (as before) Types.LONGVARBINARY but DB2 uses Types.BLOB


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19678 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-30 18:46:47 +00:00
Jan Vonka
e84ea744eb Initial fix ALF-498 - PostgreSQL: AVMServiceTest.testStorePropertyQuerying
- note: depends on ALF-2175 (unit tested w/ local PostgreSQL scripts: qname-insert-SqlMap.xml & AlfrescoCreate-3.3-RepoTables.sql)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19677 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-30 17:07:06 +00:00
Jan Vonka
57fbb5b722 Initial fix ALF-2278 - PostgreSQL: AVMServiceTest.testCaseInsensitive
- note: depends on ALF-2175 (unit tested w/ local PostgreSQL scripts: qname-insert-SqlMap.xml & AlfrescoCreate-3.3-RepoTables.sql)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19676 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-30 16:45:35 +00:00
Jan Vonka
3ada598751 Merged V3.2 to HEAD
19659: ALF-589 - MT: Could not startup Alfresco with tenant after adding a custom model (and using tenant routing file content store)
    19666: ALF-589 - remove unnecessary warn


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19669 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-30 13:23:54 +00:00
David Caruana
7b979fa11e Resolve ALF-1702: CMIS: can't change name of a document via checkout/checkin
- modified repository checkin to take into account name change on pwc (if it's changed, the checkin will rename the original)
- updated coci unit tests
- performed alfresco explorer tests
- updated Chemistry TCK to re-enable update of name on checkin test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19650 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-29 17:54:30 +00:00
Nick Burch
dbe8c89e84 Expand Tagging Service tests to cover Share like behaviour
Some slight tweaks to the Tagging Service to allow it to pass a much larger
number of tests covering creating, updating, copying, moving and deleting
nodes which are setup in a manner similar to the share document library.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19646 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-29 15:53:31 +00:00
Roy Wetherall
28f113a0a3 Merge V3.2 to HEAD
19453: Merged BRANCHES/DEV/BELARUS/V3.2-2010_03_17 to BRANCHES/V3.2: 
      19407: ALF-254: empty files (0 bytes) do not trigger content rules 
         - Some Javadoc cleanup added    
   19601: Follow-up fix for ALF-254: Empty files (0 bytes) do not trigger content rules 
      - CIFS uses 'sys:noContent' instead of 'sys:temporary'; the latter has other behaviour attached



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19639 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-29 13:27:36 +00:00
Gavin Cornwell
eaccdd978b Removed unused task form processor files, the latest versions are on a DEV branch and will be merged in a later release.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19633 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-29 11:41:51 +00:00
Brian Remmington
aa056f0268 ALF-2025: where noderefs are cached in the transfer service (both transmitter and receiver) have made them multi-tenant aware.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19631 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-29 11:12:04 +00:00
Neil McErlean
280c41ae60 Fixing simple compilation error caused by out-of-date I18nUtil import.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19618 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-27 17:58:51 +00:00
Dave Ward
f239f24550 Merged V3.2 to HEAD
19614: ALF-1890: Merged V2.2 to V3.2
      17709: Merged DEV_TEMPORARY to V2.2
         17700: ETWOTWO-1393: concurrent writes to webdav lead to data loss (0kb resulting file)
      19613: Merged DEV/BELARUS/V2.2-2010_02_03 to V2.2
         19157: ALF-1890: concurrent writes to webdav lead to data loss (0kb resulting file)
   19562: Merged DEV/BELARUS/V3.2-2010_02_24 to V3.2
      19244: ALF-1816: Email templates can no longer be selected when creating a rule for the action 'Send email to specified users' following an upgrade
         - New patch has been created to create invite email templates and notify email templates folders if those are absent. Also it moves 
default notify and invite templates into appropriate folders. 
   19561: Merged DEV/BELARUS/V3.2-2010_02_24 to V3.2 (With improvements)
      19294: ALF-929: email to invite external users does not allow external users to login (no credentails)
         - Always create a password for created users if the authentication chain allows account creation


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19615 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-27 12:02:24 +00:00
Nick Burch
3b94a9c8f9 Tests to verify the node/copy policy behavour triggering the tag scope updates
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19588 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-25 14:41:51 +00:00