Matt Ward
c6f4ac8b57
ALF-11722: Error fails when try to log in as disable tenant
...
* Added DisabledTenantException error
* Changed ExceptionTranslatiorMethodInterceptor to translated the above exception into an AuthenticationException
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32353 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-28 15:53:03 +00:00
Derek Hulley
2404ddf106
Disabled test OpenCmisLocalTest
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32333 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-28 07:50:26 +00:00
Derek Hulley
16d0d0e786
Fixed ALF-11201: CMIS ignores user login and runs as 'admin' sometimes
...
- Change the way the CMIS implementation interacts with authentication, logging and transactions
by constructing a service layered in three interceptors:
<property name="cmisTransactions" ref="CMISService_Transactions" />
<property name="cmisExceptions" ref="CMISService_Exceptions" />
<property name="cmisControl" ref="CMISService_Control" />
- CMISService_Transactions:
Retrying transactions are initiated for all operations and we no longer attempt to hold
transactions open across method calls. This optimization is secondary to having full retrying
behaviour, without which the server could throw avoidable exceptions in concurrent environments.
- CMISService_Exceptions:
Performs translation from typical repo exceptions into CMIS exceptions
- CMISService_Control:
Provides details logging of inbound authentication states, arguments, exceptions and return values
To get logging without method arguments (can be verbose):
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=DEBUG
To include method call arguments:
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=TRACE
Logging will include details of inbound, method-call and outbound thread authentication credentials.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32331 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-27 20:55:29 +00:00
Derek Hulley
ec242b6090
Merged DEV to HEAD
...
32207: Fix ALF-11644: AVM cleanup jobs run when WCM is not installed
- Moved scheduled jobs to installable wcm-bootstrap-context.xml
- Also got rid of orphan reaper warnings when running in a cluster (not ALF-11720, but mentioned in it)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32330 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-27 20:09:57 +00:00
Derek Hulley
c4c2ea52e9
Fix ALF-11734: Concurrency conditions not handled correctly for ACL persistence
...
- Struggled to get reproducible test in code
- If this doesn't fix the problem fully, then at least it'll push it up a level,
however the higher caches already have pessimistic removal of entries, so should be OK
- In the same way, this could fix ALF-11720: WCM: OrphanReaper contention throws error (3.4.x)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32329 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-27 09:29:31 +00:00
Derek Hulley
d9960384b4
Remove unused import
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32328 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-27 09:13:51 +00:00
Matt Ward
70722a9a3b
ALF-11700: Possible to generate feed entries with malformed NodeRefs
...
* ActivityPostService checks incoming nodeRef values in JSON - they must at least work in a NodeRef constructor.
* FeedTaskProcessor ignores nodeRef values that cannot be used in a NodeRef constructor.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32321 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-25 17:28:38 +00:00
Nick Burch
44c5efe514
ALF-11650 Upgrade Tika for TIKA-789 (MPP Detection), and add tests that show it is now being correctly handled
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-25 17:10:49 +00:00
Jan Vonka
e60dc76152
Merged BRANCHES/DEV to HEAD:
...
32284: MT/Solr: fix intermittent "My Favorites"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32315 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-25 15:26:51 +00:00
Matt Ward
462994f3eb
ALF-11668: Add position identifiers (same as seq elements in current schema dump tool)
...
As for current schemadump tool, table columns and primary key column names have order associated with them.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 18:17:41 +00:00
Nick Burch
f939783d70
ALF-6356 Correct repeating events handling of the last instance by day
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32282 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 14:28:55 +00:00
N Smith
c23974a0fc
Disabled test1000Invitations as this test runs very slowly.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 14:08:01 +00:00
Derek Hulley
c0203199af
RetryingTransactionInterceptor was bypassing all nested interceptors
...
- The code did this:
return method.invoke(target.getThis(), target.getArguments());
rather than this:
return target.proceed();
- Services that used this are PublishingService, ChannelService, TransferService and
old CMIS dmServicesProxyCreator
- None of the above are adversely affected because the first 3 don't apply permissions
and the last one uses the interceptor in reverse order
- BUT: None of the aforementioned services will be auditable!
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32276 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 12:57:29 +00:00
Derek Hulley
9e7c10abd0
Fixed publishing tests to use public service beans ('ChannelService' and 'PublishingService')
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32275 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 12:52:52 +00:00
Derek Hulley
69623f9978
FeedGenerator doesn't run when system is in read-only mode
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32274 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 12:51:57 +00:00
Matt Ward
f526d05094
ALF-11370: ExportDbTest expects particular/PostgreSQL schema
...
* Refactored to allow easier addition of DBMS-specific test implementation.
* Added MySQL test implementation.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32271 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 12:38:24 +00:00
Derek Hulley
1586958070
Log errors to logger rather than stdout
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32267 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-24 12:03:18 +00:00
Andrew Hind
5defa670b1
Fix for ALF-11656 Person search starting with * goes the DB and return no results - it should go to the query
...
- DB is only used for * and * only at the end
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32257 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 20:30:49 +00:00
Nick Burch
50053fbc1c
ALF-11437 Fix duplicated Mimetypes in the list when transforming content in Share, by either correcting labels when two mimetypes are different, or rationalising (with patch) where multiple mimetypes exist for one filetype (photoshop and AutoCAD dwg)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32254 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 18:26:25 +00:00
Nick Burch
fc1d367dc2
ALF-11664 site.public.group (via SysAdminParams.SitePublicGroup) should be used when updating site visibilities, as it is for creating sites
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32251 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 17:21:43 +00:00
Nick Burch
a93ca27cb9
Unit tests for ALF-10343, with the problematic parts commented out pending a fix
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32245 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 16:02:56 +00:00
Matt Ward
4b998a5fdd
ALF-11648: Create unit test to run schema comparator, failing upon differences/validation failures
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32243 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 15:53:43 +00:00
Nick Burch
91d0fc28ba
ALF-11664 Moderated sites should use site.public.group (from SysAdminParams) for setting the group with general access, as Public sites already do, rather than hard coding the EVERYONE group
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32242 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 15:42:19 +00:00
N Smith
b6ea53cd82
ALF-10083 Workflow Task Title/Description can now be set using localization labels.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32240 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 14:23:27 +00:00
Matt Ward
f495a69ba9
ALF-11591: Externalise diff/validation messages
...
system-messages.properties now contains log messages and diff/validation output messages.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32236 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-23 13:16:27 +00:00
Matt Ward
9be594eee2
ALF-11592: Post-upgrade differencing bug
...
Character data now handled correctly in XML parsing logic.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32200 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-22 17:59:24 +00:00
N Smith
e24f355d47
Implemented localization of list constraint values on Workflow Task properties in the workflow REST API.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32197 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-22 17:01:00 +00:00
N Smith
656a792d06
WorkflowServiceImpl.isReassignable() method now gives an up-to-date result, avoiding stale data issues.
...
Added tests to check isReassignable works on a task that has been completed by JBPM timer.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32196 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-22 16:59:07 +00:00
Mark Rogers
5e1f1de583
ALF-11274 - CIFS: File cannot be read, if a user has not write permissions
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32194 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-22 16:43:49 +00:00
Matt Ward
d021543bce
ALF-7260: schema validation: ensure outputting UTF-8 and Windows line endings.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32183 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-22 13:16:01 +00:00
Mark Rogers
4b2695745e
ALF-10963 Cannot overwrite files on CIFS share with Notepad++
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-22 13:08:21 +00:00
Derek Hulley
5b10c912b5
Unit test site uses GUID instead of time for random naming
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-22 10:52:14 +00:00
Matt Ward
1e8d689de6
ALF-11414: Sequences must be exported/imported (not directly supported by DatabaseMetadata)
...
Supported by PostgreSQL - not yet verified against Oracle.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 18:26:32 +00:00
Nick Burch
772056a903
ALF-11319 Work around the fact that Filtered Lucene Results don't support start/hasMore calls, so the new services using these for tag queries (links and discussion) need to handle that if the results were filtered
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32158 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 17:35:59 +00:00
Jan Vonka
eb8f85a4fd
Merged DEV to HEAD: (ALF-11606)
...
31637: THOR-358: update CMIS getChildren (V3.x => CMISServicesImpl)
31700: THOR-358: update CMIS getChildren (V3.x => CMISServicesImpl)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32155 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 16:56:26 +00:00
Nick Burch
99b97831bb
ALF-8671 When listing Blogs/Lists/Discussions, the tag filter string is encoded before sending, so must be decoded in the webscript before searching. (Plus blog tagging test enhancements)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32146 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 15:54:45 +00:00
Nick Burch
b592976e93
Bump the Tika version for the updated TIKA-784 fix, and add an Alfresco side unit test for this case
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 12:20:49 +00:00
N Smith
33e6a55826
ALF-11588 Fixed failing FormServiceImplTest.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32134 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 10:44:51 +00:00
Mark Rogers
aebbc9403f
Open read-only for attributes only.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32132 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 09:58:02 +00:00
Mark Rogers
bdfadabda7
ALF-10902 - No friendly notification occurs when Editor or Collaborator tries to delete content
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32131 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 09:56:49 +00:00
Roy Wetherall
175e8a7420
ALF-10717: Renditions doclib and webpreview accumulates (not replaced) when creating new version using Edit Offline
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32129 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-21 04:56:09 +00:00
Derek Hulley
1e81baf116
Minor formatting in GetChildrenCannedQueryParams
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32126 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-20 22:41:10 +00:00
Derek Hulley
beaec01727
Fixed NPE for invalid nodes; check for null 'nodeInfo.getType()'
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32123 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-20 21:41:30 +00:00
Derek Hulley
37edc9916a
Raised ALF-11588: Test disabled: FormServiceImplTest.testActivitiWorkflowForm
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-20 21:00:49 +00:00
Matt Ward
b8ea34e7bb
ALF-11519: changed ONLY_IN_LEFT to ONLY_IN_REFERENCE, ONLY_IN_RIGHT to ONLY_IN_TARGET
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-18 18:25:26 +00:00
Matt Ward
29dadc748a
ALF-11518 and ALF-11519: unify separate validation/differences lists and move text generation to Result classes.
...
ALF-11518: Unify differences and validation results lists
ALF-11519: Move validation/diff result text generation from SchemaBootstrap to result classes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32110 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-18 18:20:53 +00:00
Matt Ward
50ad2d600c
ALF-11539: CIFS NodeMonitor is started even when CIFS and FTP are disabled
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32107 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-18 17:46:43 +00:00
Mike Hatfield
f187fdecc5
Fix ALF-11385 - Check out to Google Docs, Check in from Google Docs are available when Google Docs subsystem is disabled
...
Share no longer uses the DocumentLibrary/google-docs/enabled config flag but instead reacts to the current subsystem status.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32102 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-18 15:02:43 +00:00
Kevin Roast
51b41465ba
Fix for ALF-11570 - NPE in UsernamePropertyDecorator on null lastname
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32098 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-18 13:46:41 +00:00
Mark Rogers
7dd72bc691
build fix.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32097 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-11-18 13:39:54 +00:00