801 Commits

Author SHA1 Message Date
Derek Hulley
f484e98638 Merged V2.0 to HEAD
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5146 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5147 .
      - WCM-225
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5149 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5151 .
      - WCM-339
      - 2 revisions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5170 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-16 15:56:51 +00:00
Derek Hulley
0c10d61a48 Merged V2.0 to HEAD
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5141 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@51352 .
      - FLOSS
      - Some files will need a follow-up
         -root/projects/repository/source/java/org/alfresco/repo/avm/wf/AVMRemoveWFStoreHandler.java (not yet on HEAD: 5094)
         -root/projects/repository/source/java/org/alfresco/filesys/server/state/FileStateLockManager.java (not yet on HEAD: 5093)
         -onContentUpdateRecord (not on HEAD)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5167 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-16 06:44:46 +00:00
Derek Hulley
4163ab8476 Merged V2.0 to HEAD
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5132 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5134 .
      - ScriptLocation#getInputStream
      - RMI Registry


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5166 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-16 05:47:08 +00:00
Derek Hulley
22f523d12b Merged V2.0 to HEAD
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5114 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5115 .
      - AR-942
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5131 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5132 .
      - AR-1244
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5127 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5128 .
      - AWC-1138


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5165 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-16 05:30:09 +00:00
Derek Hulley
ade659112d Merge V2.0 to HEAD
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5122 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5123 .
   - Ensure that parent_node_id and child_node_id columns are declared as NOT NULL.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5126 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-13 21:25:02 +00:00
Paul Holmes-Higgin
31c250682b Changed licence headers
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5081 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-08 18:59:58 +00:00
Andrew Hind
f84f6b9de3 Improvements to hashing and hash set/map sizing
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5079 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-08 14:21:07 +00:00
Kevin Roast
268a821142 Performance tweaks and code cleanup
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5076 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-08 11:08:38 +00:00
Derek Hulley
72eee7d097 Tool to dump default schema creation scripts for a set of dialects
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5073 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-08 09:41:46 +00:00
Jon Cox
d855bb345b Made names of JMX operations reflect the current limitations
within the webapp.  Currently, we don't support either updating
 a single-webapp, or removing a single-webapp because the GUI
 cannot invite someone to only one webapp within a project.

 Therefore, the JMX calls are "updateAllVirtualWebapps" 
 and "removeAllVirtualWebapps", rather than implying we're 
 more fine-grained that we actually are.  

 The case of removal would be particularly misleading
 because if you thought you could just get rid of single
 webapp, you'd be sadly mistaken.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5072 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-08 05:39:04 +00:00
Gary Spencer
d851541e93 Reset the file type in the info object to stop all files showing up as links. Fix for AR-1224.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5070 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-07 17:59:11 +00:00
Andrew Hind
59509e7516 Code polish
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5069 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-07 17:06:21 +00:00
Gary Spencer
76e673d972 Fixed a problem where file states were updated before the file rename call, if the rename/move call failed the file states were in an inconsistent state.
Fix for AR-1115.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5068 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-07 14:47:55 +00:00
Kevin Roast
2a0a67bf96 Fix for http://issues.alfresco.com/browse/AR-1119
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5056 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-06 17:00:33 +00:00
Kevin Roast
5e74474f98 . Fix for http://issues.alfresco.com/browse/AR-968
- Runtime (txn breaking) exceptions that occurs during JavaScript execution now correctly bubble up and halt script execution
. Rhino JavaScript engine JAR updated to 1.6R4 (from 1.6R2)
 - Bug fix release - executed all existing test scripts to ensure compatability
. Minor label change requested by PHH

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5055 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-06 16:46:57 +00:00
Andrew Hind
c5a5ba2a5a AR-1221
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5052 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-06 14:42:24 +00:00
Andrew Hind
93ec1a0552 AR-1212
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5051 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-06 14:38:48 +00:00
Andrew Hind
72af87e9c0 AR-1218
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-06 14:34:47 +00:00
Kevin Roast
d781cc74c1 . JavaScript API inter-store copy support
- Transparent support for inter-store copy added to JavaScript Node and AVMNode implementations
   The existing API mechanisms for copy() now support passing of Node or AVMNode and visa-versa as the destination target
   No changes to existing copy() semantics and no new services/APIs to learn
. Improvements to handling of missing input parameters in JavaScript Node APIs
. Added Workspace->Workspace support to CrossRepositoryCopyService

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5047 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-06 10:36:46 +00:00
Gary Spencer
92c73dd54a Truncate the CIFS server name is longer than 15 characters and output a warning. Fix for AR-1118.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-06 10:29:31 +00:00
Derek Hulley
b37ec12379 Fix AR-1208
- Issuers were using Spring init to load data.  The Hibernate database auto-update was switch on and this bypassed the SchemaBootstrap.
 - Added an AvmBootstrap bean for initializing AVM components that require DB interaction


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5042 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-05 17:23:09 +00:00
Gary Spencer
34b12db95e Fixed bug with store filtering not clearing the filter flag.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5041 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-05 17:02:18 +00:00
Gary Spencer
eeedbba60b Fixes to store the authentication token in the client information object so it's picked up for the virtual circuit.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5040 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-05 16:40:46 +00:00
Gary Spencer
f1cfa53733 URL link now appears in the CIFS root folder, desktop actions are not shown in the root folder. Fix for AR-1042.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5036 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-05 14:47:26 +00:00
Kevin Roast
3bb108712d . Clipboard inter-store copy support
- Inter-store copy between Workspace and AVM stores
 - Inter-store copy between AVM and Workspace stores
. Added CrossRepositoryCopyService to ServiceRegistry

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-05 11:48:51 +00:00
Gary Spencer
da8354996b Delete file would report two status codes if a delete failed due to access denied. Fix for AR-1005.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5032 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-05 09:35:34 +00:00
Britt Park
f80282893b CrossRepositoryCopyService now can copy from AVM to Repo.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5025 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-02 18:47:26 +00:00
Britt Park
29e3335cad Added a cross repository copy service. It has a single method copy, which does a recursive
copy of the source node into the destination node. This is a checkpoint; only AVM to AVM and
Repo to AVM work so far.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5019 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-02 16:11:28 +00:00
Roy Wetherall
63e3b7453d Update to web repository web service to add association filter. Module management tool can now install AMP from a given directory.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5018 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-02 14:47:14 +00:00
Gary Spencer
3e478f1950 Set a default domain/workgroup name of 'WORKGROUP', if the domain name cannot be found it can cause a null pointer exception when building the
CIFS session setup response. Fix for AR-1069.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5013 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-02 11:49:07 +00:00
Gary Spencer
504506a7a5 Fix problem where authentication token was set only in debug mode. Fix for AR-1150.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5012 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-02 11:45:22 +00:00
Derek Hulley
2a2ed653f1 Multilingual Content Fixes
- Fixed parsing of locale string to use I18NUtil.parseLocale and not Locale constructor
 - Fixed type conversion of properties returned from MLPropertyInterceptor's directNodeService
 - Fixed handling of ALL_LANGUAGES filter selection
 - Fixed MultilingualContentService NPE when checking for duplicate locales


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5007 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-02 00:09:20 +00:00
Andrew Hind
faee564ea2 Initialise empty index early
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5004 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-01 17:32:34 +00:00
Derek Hulley
fcddd9a468 CIRCA Multilingual changes (Philippe Dubois)
- Web Client support for changing content filter language
 - I18NUtil support for contentLocale
 - MLPropertyInterceptor handling of properties inbound and outbound
TODO:
 - Is new Locale("") valid?
 - Some more tests to ensure property interceptor is working
 - Move interceptor into .sample config file


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5003 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-01 16:11:40 +00:00
Derek Hulley
a046d9be3f Fixed possible wait(0) in test
- wait((long)(rand.nextDouble() * 1000.0));   // Can result in wait(0)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4998 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-01 14:42:18 +00:00
Gary Spencer
de673986ec Other part of filtering link nodes in FTP fix.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4996 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-01 11:43:28 +00:00
Gary Spencer
5850d4a6f2 Don't show link nodes in FTP. Short term fix for AR-1198.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4995 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-01 11:40:29 +00:00
Gary Spencer
e7d4289559 Added filtering out of workflow and author sandboxes from the CIFS virtualization view. Added the <showAllSandboxes/> config
item to switch off filtering. WCM-273.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-01 09:57:21 +00:00
Jon Cox
b80c73be52 Point checkin for virt server notifiction.
Now the virt server can react properly when a file in WEB-INF
 (such as a jar or web.xml file) is submitted to staging.


 Details
 -------
 
 More testing is needed, but the basic stuff looks ok.
 Here's a list of the events within the webapp that
 the virt server is now able to receive & handle properly:

     o  Invite user to web project
     o  Create web project
     o  Delete sandbox
     o  Delete web project 
     o  Submission of files to WEB-INF  


 The virt server does not yet get: 
     o  Revert events
     o  Out-of-band changes from CIFS (and probably never will).
  
 The plan to deal with changes made to critical files in WEB-INF
 is to have an exlicit control available within the webapp. 
 

 It does not yet handle "approved with changes" very gracefully.
 That can probably be fixed over the next few days.



 Gory details
 -----------

   projects/core/source/java/org/alfresco/util/VirtServerUtils.java
        Moved pattern that detects whether virt server needs
        updating in from AVMConstants, due to build dependencies;
        now this function is needed by workflow, which is in the
        repository package.

   projects/repository/config/alfresco/avm-services-context.xml
        Added AVMSubmitTransactionListener bean to allow virt
        server notification to hapen immediately after the
        submit transaction has been committed sucessfully.


   projects/repository/source/java/org/alfresco/repo/avm/wf/AVMSubmitPackageHandler.java
        Added transaction listner that does the virt server update,
        and added the list of staging diffs to AlfrescoTransactionSupport
        as a bound resource.


   projects/repository/source/java/org/alfresco/repo/avm/wf/AVMSubmitTransactionListener.java
        Does the actual notification of the virt server.
        The logic in this class still needs some work to handle
        "approved with changes" gracefully, but it does do
        the right thing when it comes to recursively reloading
        staging when a jar or web.xml file is modified.
        Light testing so far, but looks ok.  Consider this
        a point checkin only.  A singleton of this class is
        instantiated via the Spring config avm-services-context.xml,
        and used by AVMSubmitPackageHandler.


   projects/web-client/source/java/org/alfresco/web/bean/wcm/AVMConstants.java
        Removed the utility function that tests whether or not
        updating a file would require the virt server to be notified.
        This class would benifit from a major cleanup when time permits.

   projects/web-client/source/java/org/alfresco/web/bean/wcm/SubmitDialog.java
        Using the function that was moved/renamed from AVMConstants
        to VirtServerUtils that tests if a given file update requires
        a virt server notification message.




git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4990 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-02-01 02:18:54 +00:00
Andrew Hind
41002b0ff1 Remove user homes patch - find in the UI or fall back to company home.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4989 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 20:05:18 +00:00
David Caruana
0a24b5f41b SDK
- fixes for web service (classdef not found, 40x/Authentication) and jcr samples (mltext datatype conversion)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4988 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 18:49:03 +00:00
Derek Hulley
90bbb24454 Fix AR-1201: Bug in toString of RegexQNamePattern
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4987 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 16:05:03 +00:00
Andrew Hind
eccbeba212 Fixes to index collections of content and MLText
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4982 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 14:48:24 +00:00
Kevin Roast
a26d52b468 . Fix for http://issues.alfresco.com/browse/AWC-986
- New public service method added to AuthenticationService component stack: guestUserAuthenticationAllowed()

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4981 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 14:25:45 +00:00
Roy Wetherall
2ad8f02979 Added module status to module.properties file saved in WAR for later use. Added contribution to return node path in Reference object. Fixed issues with web service caused by outdated Jars and incorrect AuthenticationService
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 11:56:02 +00:00
Gary Spencer
7dc0de5b7b If a file/folder is accessed directly without walking the tree the pseudo file states were not in place so the access failed. Added a
second pass to the pseudo folder search to generate paths. AR-1199.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4978 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 11:45:45 +00:00
Gary Spencer
c8e9812fe4 Fixed incorrect query strings that were causing tests to fail.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4973 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-31 09:30:46 +00:00
Britt Park
d8e4604ffc This cleans up workflow sandboxes when a workflow finishes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4970 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-30 17:01:00 +00:00
Gary Spencer
b6a5ed9a5f Fixed bug that caused the authentication token to not be saved after the passthru authentication had succeeded, causing 'no SecureContext on thread' and
null pointer errors.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4965 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-30 14:03:40 +00:00
Gary Spencer
3d4c5155df Fix for build issue.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-30 11:14:54 +00:00