1013 Commits

Author SHA1 Message Date
Derek Hulley
458a400693 RuntimeExec class is tighter when the actual command is unavailable and guarantees a failure error code.
The RuntimeExecutableContentTransformer generates a more verbose error message when the tranformer fails to validate on startup.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5888 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-07 22:15:32 +00:00
Britt Park
32d169b99b AVMLockingService is better tested now. Added isAdminAuthority() to
AuthorityService.  Can be removed if this is objectionable.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5887 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-07 20:20:34 +00:00
Britt Park
60f4547fe0 Modifications and extensions to AVMLockingService complete. Needs much more testing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5875 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-07 00:02:10 +00:00
Jon Cox
d4b3b42cab Point checkin for link validation & changed AVMSyncServiceClient to AVMSyncServiceRemote.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5872 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 22:06:38 +00:00
Kevin Roast
30136a58eb Fix up script service tests to expect native JavaScript array return types instead of assuming java arrays
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5869 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 17:16:43 +00:00
Kevin Roast
6cadd8573a All arrays returned by JavaScript API calls (i.e. node.children) now returned as proper JavaScript native Array objects.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5866 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 11:16:55 +00:00
Derek Hulley
1b24226f6b Fix for AR-1483: Multithreaded access to booleans via volatile access.
Made reindex logic a bit more obvious to the reader.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5861 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 08:56:27 +00:00
Kevin Roast
74b2ac0c79 REST API command support for launching the XForms edit content dialog. AVM Templating API addition to retrieve the list of modified items for a sandbox user.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 20:21:57 +00:00
Jon Cox
494859be2d Reorg so web-client can access LinkValidationService API from repo action framework.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 18:54:28 +00:00
David Caruana
cbeecf5fe5 Web Scripts:
- fix issues integrating with Flex (rename of tunnel url arguments)
- add admin to required authentication levels
- support json callback method (for browser based ajax requests)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5856 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 18:17:59 +00:00
Kevin Roast
4843b56e2a GetAspects() method now working correctly for AVM nodes in templating API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5854 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 17:49:13 +00:00
Derek Hulley
8f836c1a6b Fixed AR-1483: Potential infinite loop caused by unsynchronized check on shared resource
Note: See the bug comments to see why I've added this in.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 15:55:50 +00:00
Derek Hulley
8e941454ce Temporarily disable the test while I fix the problem.
The test is fine, but it's the in-transaction create and delete of child assocations
that is causing the issue.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5848 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 12:00:32 +00:00
Britt Park
cd1aa771b4 Additions to the AVMLockingService API. All but one are implemented. None are tested.
Oh AVMLockingServiceTest will fail if not started from a clean database.  I'll fix that up 
in a bit.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 01:02:03 +00:00
Andrew Hind
f1347f3bf6 Build fix for permission model tests
Fix for "allowAll" + deny something for the same auth on the same node -> now denies

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5843 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 16:06:54 +00:00
Derek Hulley
6ff0696bf9 Added a raw download servlet at URL http://.../alfresco/dr?contentUrl=...?ticket=...
Added ContentService.getRawReader to get content directly using a content URL.  To access this, you need to be admin.
Fixed EHCacheAdapter to handle non-Serializable values.
Added tests for above and for AbstractRoutingContentStore.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5841 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 14:44:29 +00:00
Mike Hatfield
c2b6a11cd7 Added getTaskById(String taskId) to get a single workflow task (req'd by Office Add-In)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 13:07:11 +00:00
Kevin Roast
527addc354 Short URL format for common Alfresco servlets - for internal use
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 11:06:26 +00:00
Jan Vonka
1bfe9ad0dc Fix incorrect null check in DictionaryDAOImpl
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 09:18:51 +00:00
Derek Hulley
1b13a0a636 Test still affected by flushes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5832 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 18:08:32 +00:00
Derek Hulley
dec1de7f34 Fixed flush mode for queries to get child associations.
This had the side-effect of fixing the ADMLuceneTest that was failing during in-transaction deletions of child associations.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 14:07:04 +00:00
Andrew Hind
6675ba0e6e Fix Full index rebuild with indexes in place
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5824 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 12:49:54 +00:00
Derek Hulley
819c7084a2 Added 'version' column to ADM entities
- A patch will assign initial version values to the entities
 - Deprecated TransactionUtil in favour of the RetryingTransactionHelper
 - Renamed RetryingTransactionHelper.Callback to RetryingTransactionHelper.RetryingTransactionCallback
   The name Callback clashes with many other classes in the classpath
 - Moved loads of components to be included in the retry behaviour
Duplicate name checks
 - This is done using a query, but the entity update is not written to the database early
 - Concurrent adds of the same-named child node will only fail at the end of the transaction
 - TODO: Detect the duplicate violation during transaction retrying
Workaround for ADMLuceneTest
 - Disable session size resource management during tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5823 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 12:40:17 +00:00
Andrew Hind
bbbd18923f Test fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5822 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 09:46:15 +00:00
Andrew Hind
f77adb953d Include avm recovery in the test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5821 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 09:37:12 +00:00
David Caruana
8e38ff8253 Web Scripts:
- improved generated documentation (indexed by web script url & package)
- addition of ticket management web scripts
- addition of put, post & delete support to Web Script test server

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5820 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 18:03:17 +00:00
Andrew Hind
4bd5b0266c Index rebuld and vlidation support for AVM.
Added AVM indexes to the configuration checker

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5818 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 14:15:12 +00:00
Derek Hulley
e07a0a4c4b ML Authentication Issues:
- Everyone, including guest, gets explicit full rights to each new cm:mlContainer instance.
 - The MultilingualContentService better permission checks against the content nodes that go in and out of it.
 - Changed some of the API return values to be more explicit about whether the cm:mlContainer or cm:mlDocument is required.
 - Added explicit tests to ensure that even guest is able to manipulate the cm:mlContainer.
ML Languages List:
 - The default value is now punted to the top of the list.
Various neatening.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 03:42:59 +00:00
Derek Hulley
cc2705ef49 Removed some unused javadoc tags
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 03:34:33 +00:00
Derek Hulley
95972722b3 Empty translation must begin life with a null content URL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 22:33:06 +00:00
Kevin Roast
4cfeec0306 Manage Task Dialog (from web-client) can now be launched from the MyTasks portlet for an individual task.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5813 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 16:35:40 +00:00
Derek Hulley
44bf30583e ML fixes
- The naming convention for a french empty translation of x.doc is x_fr.doc
 - Fixed mimetype and initial file sizes
 - Raised minor issue: AR-1487
 - Shortened crazy language names
 - Made language name ordering follow the declaration order in the config XML file


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5812 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 15:03:16 +00:00
Gavin Cornwell
389687464d - Expired content job now uses a query to find expired items rather than crawling all nodes
- Fixed bug when handling expired items submitted by users removed from web project
- Re-applied config for comments in manage task dialogs
- Re-applied config for expired items actions
- Removed fix width for comment column in workflow history

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 12:08:36 +00:00
Derek Hulley
7b2b57095c Fixed more tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5807 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 06:27:43 +00:00
Britt Park
0ea69ac954 Another pair of convenience methods for AttributeService:
removeEntries, which removes map entries by query.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 19:17:04 +00:00
Derek Hulley
aa046ff09b More fixing to handle the property interceptor ML changes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5805 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 19:07:08 +00:00
Britt Park
21742933ec Adds some convenience methods to AttributeService.
Namely two flavors each of addAttributes, for adding attributes to lists,
and setAttributes for adding entries to maps.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 18:19:00 +00:00
Derek Hulley
7b5349005c Plugged in the correct mlTranslationInterceptor for FileFolderService and removed the NodeService interceptor.
Removed some unecessary interceptor work.
Fixed content filtering to default to the pivot translation if there is no translation for a required language.
Fixed content filtering when switching back to ALL LANGUAGES.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 15:55:28 +00:00
Derek Hulley
08a6eb4e7c Fixed test for lowest-level node service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5800 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 14:11:55 +00:00
Kevin Roast
71f060d9a6 Minor fix change and spelling mistake
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5797 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 11:05:26 +00:00
Andrew Hind
cdcd32d54b Asynchronous indexing for AVM
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 10:46:38 +00:00
Andrew Hind
43dad1aeff Asynchronous indexing for AVM
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5795 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 10:19:57 +00:00
Britt Park
b2db7d40b1 getPaths now returns the latest snapshot path, even when the head path
has not changed since the last snapshot.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-26 17:59:16 +00:00
Kevin Roast
01517dd85b JavaScript People API improvement, added getContainerGroups() useful method as requested on forums.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5779 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-25 09:01:35 +00:00
David Caruana
ee7b890b2c Fix premature db access in initialisation of workflow interpreter.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5773 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-24 12:34:36 +00:00
Kevin Roast
8f0d52af04 MySpaces webscript now shows Ajax wait animation while loading inner panel area.
Summary pop-up panel fade-out anim removed (improves user experience).
Reorg of broken action evaluator class hiearchy (after ML UI changes).
More fixes to ML UI (browse.jsp missing component IDs breaks screen when panels collapsed then expanded).
Code reorg in interceptors to help performance.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5772 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-24 11:08:53 +00:00
Derek Hulley
e0bfdca5ea Fixed failing ML tests
- These worked on the branch a flaw showed up on HEAD
 - Moved ContentReader spoofing up into FileFolderService and ContentService using an interceptor.
Fixed bug when attempting to delete an archived item that was ML.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5768 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-24 04:11:50 +00:00
Derek Hulley
f4f417707a Fixed AR-1361: MLText persistence doesn't use serialization
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5767 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-24 04:01:50 +00:00
David Caruana
504b174852 Workflow Console: automatically create workflow package and assignee variables on start of console (always required for testing, so saves some typing to create them manually.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5765 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-23 17:12:06 +00:00
David Caruana
1c46628575 Workflow Service: add support for task comment.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-23 16:15:07 +00:00