2354 Commits

Author SHA1 Message Date
Derek Hulley
77457e3670 Fixed unreported error: New transactions started in the post-commit phase *might* see stale cache data
- Transactional caches were flushing last in the post-commit phase
 - New transactions in the post-commit phase would see cache data out of synch with the DB-committed data
 - Affects DOD5015 post-commit audit actions, which were not generating full datasets for the first-pass data import

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16627 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-30 15:41:37 +00:00
Dave Ward
8a1a86dc0f MOB-1665 (part one): HibernateNodeDaoServiceImpl must flush before calls to iBatis contentDataDAO to avoid 'content data leaks'
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16623 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-30 14:40:40 +00:00
Andrew Hind
7098bab5ea RM: Support query for empty strings against untokenised text properties
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16622 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-30 14:36:46 +00:00
Mark Rogers
9ab5273e72 MOB-1615 - Cannot file email messages as a typical user (user)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16593 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-29 14:00:37 +00:00
Jan Vonka
4a7df596da Merged V3.2 to HEAD
15151: IndexCheckServiceImplTest - build/test fix (ent-only)
    15152: Formatting-only
    15360: Fix for ETHREEOH-2567: Index check includes nodes in the unindexed version store - these should be excluded
    15630: Merged V3.1 to V3.2
        14424: Fix build/test - indexing of version store(s) is disabled
        14438: Fix index check (related to ETHREEOH-1832 - disable indexing of version2Store)
        14526: ETHREEOH-1759 - fix getVersion (affects IBM JVM => WebSphere)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16592 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-29 13:56:58 +00:00
Mark Rogers
aa4ad8b826 Adding debug logging so we can support the imap when it throws exceptions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16591 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-29 13:50:30 +00:00
Mark Rogers
a3327cfb8e MOB-1470 - Delete RM site
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16581 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-29 11:51:53 +00:00
Derek Hulley
5b8650fb4b Final fix for MOB-1609: Incorrect number of results returned from audit log
- When the query size is limited, the DB query returns only the audit entries
 - The audited properties are pulled back in batches


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16567 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-28 17:58:37 +00:00
Derek Hulley
a58c74a04a Minor DEBUG statement fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16565 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-28 17:29:55 +00:00
Jan Vonka
b7570baf41 Dynamic models - allow incremental updates to property indexing definition (note: does not change existing index)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16552 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-28 10:29:27 +00:00
Jan Vonka
b447e3b9f2 Dynamic models - allow incremental updates to property indexing definition (note: does not change existing index)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16548 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-28 09:18:11 +00:00
Jan Vonka
084792f81d EOL formatting only
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16546 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-28 08:58:31 +00:00
Derek Hulley
ac71c4f7d7 Added multi-select for property values
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-27 20:57:47 +00:00
Derek Hulley
c5b731763d Audit enhancements
- Added marker data extractor to record the presence of a key in the audit data
 - AuditMethodInterceptor applies a marker key in the case of success (failure already has a key)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16519 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-25 12:14:30 +00:00
Derek Hulley
5f50bf11e7 Partial fix for MOB-1609: Incorrect number of results returned from audit log - size parameter is not correctly processed
- This will pull back the correct number if you request less than the total number of audit entries
 - TODO: You can still get N-1 entries if you request more than the total number of entries
 - TODO: Reverse order of limited queries (last N)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16518 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-25 12:09:38 +00:00
Derek Hulley
9c05bc8ca1 Fixed unit test: Forgot that auditing is not enabled by default in repo anymore
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16505 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 23:56:34 +00:00
Derek Hulley
7c68847cb6 Wired AuditMethodInterceptor into new audit framework
- Two new repo properties to control auditing:
     audit.enabled=false
     audit.useNewConfig=false
 - Auditing was enabled by default, but it is not enabled any more!
   The property has to be set in alfresco-global.properties
 - Unit tests for auditing successful and failed authentication attempts


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16496 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 14:52:25 +00:00
Derek Hulley
fc3431ecb4 Fixed javadoc for PublicServiceIdentifier
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16495 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 14:45:47 +00:00
Derek Hulley
3418597d85 Fixed audit annotations to NOT record arguments that are beans
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16494 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 14:43:43 +00:00
Derek Hulley
95b648f165 ContentReader and ContentWriter conversions to String now use toString()
- Previously, the ContentReader to String conversion was reading the binary data


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16492 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 14:37:54 +00:00
Derek Hulley
58f148650a Minor in-line comments
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 14:26:29 +00:00
Derek Hulley
6e0979ea2c Added invokeBeforeDeleteNode calls for all nodes down a deletion stack
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16480 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 09:57:45 +00:00
Derek Hulley
0a118c62aa Mimetype is only defaulted if the content URL is not empty too
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16478 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 09:14:08 +00:00
Andrew Hind
8e115abc86 RM: Fix for MOB-1564: Unable to file via IMAP into a record folder that the user has file permissions on
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16471 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 21:45:30 +00:00
Derek Hulley
f0b95093e6 Failure to read an audit entry logs a warning and skips the entry
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16467 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 17:18:08 +00:00
Derek Hulley
7e0d38e62a ContentData will now force it to 'application/octet-stream'
- The Share UI sets the mimetype to empty string ('') if the mimetype is unknown


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16466 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 17:13:06 +00:00
Mark Rogers
0a36194042 MOB-1512 - Date field processing for metadata extraction.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16458 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 12:48:41 +00:00
Derek Hulley
a48ac3deca Added method to delete multiple child contexts for unique property contexts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 15:17:45 +00:00
Kevin Roast
1935a73684 Fix for MOB-1558 - ThumbnailService no longer makes explicit permission checks based on DM permissions - RM users can now see content previews and document thumbnails correctly if they have ReadRecords access or similar.
ThumbnailServiceImplTest executed with no errors.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 14:32:54 +00:00
Derek Hulley
f0d6c44156 Added component to manage unique property triplets
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16434 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 12:51:40 +00:00
Derek Hulley
3f18dafd2b Added conversion support for StoreRef-String conversion
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16433 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 12:49:36 +00:00
Derek Hulley
14515875c7 Added table and DAO: alf_prop_unique_ctx
- Ensure uniqueness across any three (incl. null) Serializable values
 - Required to support RM rma:identifier contextual uniqueness

DB Update for MySQL:

drop table if exists alf_prop_unique_ctx;
CREATE TABLE alf_prop_unique_ctx
(
   id BIGINT NOT NULL AUTO_INCREMENT,
   version SMALLINT NOT NULL,
   value1_prop_id BIGINT NOT NULL,
   value2_prop_id BIGINT NOT NULL,
   value3_prop_id BIGINT NOT NULL,
   UNIQUE INDEX idx_alf_prop_unique_ctx (value1_prop_id, value2_prop_id, value3_prop_id),
   CONSTRAINT fk_alf_prop_unique_ctx_1 FOREIGN KEY (value1_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE,
   CONSTRAINT fk_alf_prop_unique_ctx_2 FOREIGN KEY (value2_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE,
   CONSTRAINT fk_alf_prop_unique_ctx_3 FOREIGN KEY (value3_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE,
   PRIMARY KEY (id)
);

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16417 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-21 22:20:29 +00:00
Andrew Hind
53fddcb5f7 RM: Fix ScriptNode to check public methods can be executed using PublicServiceAccessService (and not be based on an assumed permission check)
- rm doc details are now displayed correctly when users do not have DM read

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-21 20:19:29 +00:00
Derek Hulley
17ad855edc RM Audit: More RM data extraction during audit (node type, identifier)
- Audit queries for a node context work (by accident: needs proper fix)
 - TODO: Query filter for node actions name
 - TODO: Query filter for node type

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16405 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-21 11:46:52 +00:00
Roy Wetherall
7005d27c77 RM: Tempory fix to surpress Access Denied exception when user with ReadRecords view file plan
- This fix needs review but this change allows testing to continue further



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16391 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-20 21:21:55 +00:00
Derek Hulley
ed3d9014f0 Merged V3.1 to HEAD
15963: Fix ETHREEOH-1962: Hibernate flush ordering incorrect for alf_qname
   - This merge will come from V3.2 15972 as well, but should not cause issues


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16389 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-20 19:10:08 +00:00
Derek Hulley
db8181d496 Missed check in
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16381 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-19 14:17:44 +00:00
Dave Ward
c3bf64c111 Fix Enterprise build - allow system to boot up in read only mode again
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 16:28:21 +00:00
Derek Hulley
d0d6d61373 Audit paths and keys may now also contain '_' (underscore)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 11:53:12 +00:00
Dave Ward
04c877b808 Merged V3.2 to HEAD
16187: Merged V3.1 to V3.2
      16185: AbstractLuceneIndexerAndSearcherFactory.getTransactionId() must return null when there is no transaction
   16171: Merged V3.1 to V3.2
      16168: ETHREEOH-2797: Force patch.db-V2.2-Person to apply one more time to fix up corrupt users created by LDAP Import
         - Problem due to ETHREEOH-2023, fixed in 3.1.1
         - Also corrects ldap.synchronisation.defaultHomeFolderProvider to be userHomesHomeFolderProvider
         - Also requires fix to ETHREEOH-2475 to fix up duplicate users
      16167: ETHREEOH-2475: Fixed nested transaction handling in AbstractLuceneIndexerAndSearcherFactory to allow duplicate user processing in PersonServiceImpl to actually work


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16363 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 10:52:57 +00:00
Derek Hulley
818791d88a Audit query extension: Search for audited data of any type
- Pulled out some of the query joins in favour of more cache hits


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16359 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 03:16:40 +00:00
Derek Hulley
0fe6dee8bc Added static QNames to the NodeServicePolicy interfaces for simpler callback setup
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16357 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 00:20:17 +00:00
Derek Hulley
9fc752d9a7 Added utility method to produce a delta between node property maps
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16356 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 00:16:32 +00:00
Gavin Cornwell
b0f551db34 Added some protection to Period handling in the data dictionary when invalid period expressions are passed i.e. empty strings or non-numeric strings
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16355 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-17 22:04:22 +00:00
Jan Vonka
45d25dcd7e iBatis boolean parameterization in AVM select queries (follow-on for r16347)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16353 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-17 17:14:00 +00:00
Derek Hulley
c0d49f6284 Added source-target mappings for Audit data
- Audit entry creation API no longer requires an application name
 - Inbound data is remapped according to the mappings in the audit XML files


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16327 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-16 19:02:40 +00:00
Derek Hulley
a2970e7c49 Added method to check that a read-only or read-write txn is present
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-16 18:59:25 +00:00
Derek Hulley
95bfde2d56 Changed 'version' column from TINYINT to SMALLINT
- Tables are 'alf_prop_root' and 'alf_audit_app'
 - Added property test to update past the SMALLINT rollover to test reversion to 0
 - To modify your tables (not absolutely necessary)
   alter table alf_audit_app modify version SMALLINT NOT NULL;
   alter table alf_prop_root modify version SMALLINT NOT NULL;


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-16 16:55:37 +00:00
Kevin Roast
eab4762993 JavaScript API enhancements to support retrieval of local and inherited permissions and optional additional meta-data describing the permissions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16286 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 20:26:03 +00:00
Derek Hulley
29733d3755 Fixed isAuditEnabled through stack
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 14:41:43 +00:00