93 Commits

Author SHA1 Message Date
Mark Rogers
968933de37 Bug fix for case where commit failed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-15 08:41:09 +00:00
Mark Rogers
ae2ee867f1 change the name of the "inbound transfer report" to end in ".xml"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22916 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-06 12:19:16 +00:00
Mark Rogers
5ef4758194 ALF-5068 - rework of content equality test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22880 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-05 11:23:46 +00:00
Mark Rogers
9e746149f9 transfer service : temporary comment out of problematic unit tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22767 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-29 16:10:38 +00:00
Mark Rogers
ffcbcd5649 transfer service : more debug logging.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-29 15:28:07 +00:00
Mark Rogers
00be00dd2a transferService : more debug logging
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22760 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-29 10:58:22 +00:00
Mark Rogers
29c36ff999 removed unwanted import from the previous check in.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-28 14:48:00 +00:00
Mark Rogers
48ab8265a7 transferServiceTest: new test to repeatedly update content.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22751 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-28 14:46:35 +00:00
Mark Rogers
5fe6ef9d2a extra debug logging
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22744 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-28 13:02:38 +00:00
Mark Rogers
25b81bcc7d empty content test: trivial logging changes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22738 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-28 10:50:53 +00:00
Mark Rogers
e6d197efd3 Extending test for transfer Empty Content.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22732 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-27 16:57:39 +00:00
Mark Rogers
8e15627b75 Rework to client side transfer report, events are now richer. Also some more attributes added to the header.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22731 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-27 16:18:15 +00:00
Mark Rogers
54f28f7c9b correction to previous check in
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22692 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-24 13:41:19 +00:00
Mark Rogers
f95cb3c51b ALF-4865 - transfer service: transfer empty content property
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22682 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-24 09:51:50 +00:00
Mark Rogers
d9744facca ALF-4888 - transfer service not updating content.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22660 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-22 09:07:02 +00:00
David Caruana
3d447277be Resolve ALF-4844: Transfer Locks remain if a transfer error occurs on the client prior to the commit phase
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22623 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-17 18:01:21 +00:00
Brian Remmington
73025bf7e5 ALF-4842 (Transfer Service):
- Fixed issue in rehydrating exception received from target repo. Added appropriate test case.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22618 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-17 15:31:30 +00:00
Brian Remmington
f076faacd4 TransferService:
- Attempting to transfer a deleted node causes an exception. This fixes that.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22602 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-16 17:19:47 +00:00
David Caruana
da93a0c3b5 Fix compile error
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22554 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-15 14:07:22 +00:00
Mark Rogers
1036081932 Corrected spelling of name of RepoRequisiteManifestProcessorImpl
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22551 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-15 12:41:34 +00:00
David Caruana
747ac78c5c Missed checkin.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22519 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 15:38:06 +00:00
Mark Rogers
975bac709a ALF-4738 - preserve linefeed on transfer of destination transfer report.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22517 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 15:23:47 +00:00
David Caruana
9e4ec6276f Resolve ALF-4739 Transfer of an item with a rule defined against it (without its associated rule) causes data corruption on destination repository
- transfer definition now allows aspects to be excluded from the transfer (setExcludedAspects)
- manifest builder is sensitive to excluded aspects
- replication definition excludes rule:rules for now

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22513 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 14:59:12 +00:00
Mark Rogers
6cb344d2fb ALF-4738 - Destination transfer logs files are a single line in the file
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22506 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 14:06:58 +00:00
Mark Rogers
6d0e3cbeff ALF-4736 - Exception when moving non alien payload
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22499 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 12:48:32 +00:00
Brian Remmington
f3a0026b69 Corrected test case following change to events reported by TransferService
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22480 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 07:42:49 +00:00
Mark Rogers
e095ff3744 Fix to transfer status since the "error" JSON property is optional.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22463 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-13 14:54:08 +00:00
Mark Rogers
b20bac870c ALF-4713 - It is possible to transfer content to the not enabled transfer target
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22452 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-13 13:26:40 +00:00
Brian Remmington
b1e683d3a5 Transfer Service:
- Added a few transfer-specific policies that are raised on the target side at the beginning and end of a transfer.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22427 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-12 07:17:58 +00:00
David Caruana
2704bd37db Transfer event re-ordering:
- enter success/error/cancel state event fired before report events
- but, success/error/cancel events still fired after report events

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 17:44:28 +00:00
Brian Remmington
9513643d9d Transfer Service:
- Improved log message on target side if transfer fails to clear up after itself.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22416 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 17:19:57 +00:00
David Caruana
8e17579331 Transfer report names adjusted to:
- client report: <status>_<timestamp>
- destination report <status>_<timestamp>_destination
where:
<status> - one of success, error, cancelled
<timestamp> - time of transfer

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 17:19:33 +00:00
Brian Remmington
66d23163dd Transfer Service:
- Rehydration of exception received from target repo


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22413 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 16:57:06 +00:00
David Caruana
fc0821820a Replication/Transfer tidy up:
- TransferFailureException: TransferEndEvent getEndEvent() -> TransferEventError getErrorEvent()
- Client cancel only processed on first request from client

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22406 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 15:47:42 +00:00
David Caruana
35b2b7a122 Fixes to replication job status handling:
- success, error and cancelled states now correctly reported
- source and target reports now correctly provided for each of above

Changes:
- deprecated TransferService interface, replaced by TransferService2
  - introduces new sync transfer methods
  - new TransferServiceImpl2 class, old TransferServiceImpl delegates to new class
- sync transfer now returns TransferEndEvent
- sync transfer now raises TransferFailureException
- success, error and cancelled events are now end events (raised after report events)
- transfer client handling refactored to support cancel and errors appropriately
  - converted to event loop with polling of server status for all states
  - cancel request may now end with success or error (depending on when cancel requested)
  - extract transfer errors from server
  - only raise exception for errors (cancelled now returns)
  - source and destination reports written for all states
- Added TransferEndEvent interface for end events - reports attached to end event
- replication service fixed to record source and dest reports in error case
- action service fixed to record cancelled state

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22390 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 14:00:05 +00:00
Brian Remmington
85dee9cd2d Transfer Service:
- Exception from server is now reported back over the wire via the "get status" request
- Added another test case to TransferServiceCallbackTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-08 21:15:07 +00:00
Brian Remmington
7b0089ecaf Added Mockito-based set of test cases for the client side of the Transfer Service. More test cases to write.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22311 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-07 20:05:52 +00:00
Mark Rogers
721fb7eff1 ALF-4126 - F85 Target transfer log in XML
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 09:42:23 +00:00
David Caruana
0212c01c1a Resolve ALF-4548: Replication job fails at start
- added checks to transfer service to ensure all mandatory transfer target properties are populated, and raise exception with appropriate message in each case

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22153 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 08:40:58 +00:00
Mark Rogers
4d5229bccd ALF-4351 - alien invasion - copy behaviour.
implementation copy alien + unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21968 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 13:42:59 +00:00
Mark Rogers
dd65fccd7b ALF-4351 - copy behaviour for transferred nodes.
part1: the trx:transferred aspect is removed on copy.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21913 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 16:30:07 +00:00
Mark Rogers
68ba2c044a ALF-4352 : F99 alien invasion - node service call for selecting children where a property = value
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21855 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-18 15:39:05 +00:00
Mark Rogers
e0372702d3 ALF-4127 - F86 Provide target log to source repository
implemented with unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21836 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 12:16:54 +00:00
Mark Rogers
15cd367be5 ALF-4128 : transfer service.
alien nodes : restore and move implementation and unit test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21744 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 17:42:44 +00:00
Mark Rogers
b51e8ef744 transfer service : ALF-4128 alien nodes.
- unit test of multiple invasion
   - unit test move alien node via transfer.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21685 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-09 15:04:22 +00:00
Mark Rogers
ff2b31480d ALF-4128 : F99 transfer service (alien invader)
implementation check point - some testing complete.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21637 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-05 13:17:56 +00:00
Nick Burch
4425a2b4db Ability to cancel replication actions (replication 94)
Cance ability, which feeds down into the transfer service, and feeds it back up to the action tracking service. Also, refactor of the replication service unit tests to do the transactions itself, which is needed to reliably test async actions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21387 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-23 16:52:54 +00:00
Mark Rogers
ef0e1f9da9 transfer service : sync mode for hub and spoke and chain + unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-23 15:49:58 +00:00
Mark Rogers
f1ca1b7f51 transfer service : added a new LockType to the lock service so you can add children to nodes locked by the transfer service.
New lock type is a "NodeLock".

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21370 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-22 20:35:51 +00:00
Mark Rogers
5b86cfb4e9 transfer service : read only implementation plus unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21353 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-22 13:04:15 +00:00