Commit Graph

385 Commits

Author SHA1 Message Date
Derek Hulley
c85ea934b7 Removed hard-coded modified time when streaming a physical file as webscript content
- Whose birthday is "1975, 3, 26" :-)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16250 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-14 11:30:13 +00:00
Gavin Cornwell
ea394b8138 Minor change to order of debug statements when deleting files to reduce potential future issues
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16235 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-12 22:12:22 +00:00
Kevin Roast
984f737f4f Improved debugging in areas relating to the fix in r16226.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16228 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-11 19:59:59 +00:00
Gavin Cornwell
3af671279b Re-work of export REST API to allow 2 types of archive to be generated. By default a standard ACP that can be used for re-import is generated for the list of provided nodes. If the 'transferFormat' parameter is passed with a value of 'true' a ZIP file will instead be generated, it's still an ACP file but [it will] maintains the nodes structure and names.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16101 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-04 15:34:27 +00:00
Gavin Cornwell
a64ff1af7e Exported ACP files are now importable (thumbnail, disposition lifecycle and declared record aspects are no longer included for exported nodes)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16084 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-03 21:41:23 +00:00
Derek Hulley
9c18bf6d7b Fixed incorrect use of statics around the ApplicationContext
- Application context will shut down and restart if a new different context is requested
 - Removed gratuitous use of statics and added necessary synchronization


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 12:36:14 +00:00
Dave Ward
d147d2214e Merged V3.2 to HEAD
15848: Fix unit test broken by 15828


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15852 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-21 10:35:46 +00:00
Gavin Cornwell
f768c7faa0 Ensure that associations are not exported via export and transfer REST API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15847 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-21 09:02:52 +00:00
Dave Ward
505fe9c436 Merged V3.2 to HEAD
15828: ETHREEOH-2601: Users dialog won't delete users who have no authentication information
      - Moved the AuthenticationService.deleteAuthentication() call inside PersonService.deletePerson() and protected with try - catch so that if there is no authentication information (for an upgraded/moved user) the person can still be deleted
      - Removed a bunch of redundant deleteAuthentication() calls


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-20 11:01:19 +00:00
Dave Ward
634fb92904 Merged V3.2 to HEAD
15602: Merged V3.1 to V3.2
      13861: Web Script 'Index' pages now require admin access
      13868: Fix org.alfresco.error.AlfrescoRuntimeException: Read-Write transaction started within read-only transaction
      13873: MT - fix ETHREEOH-1735 (web scripts re-directed to a different tenant's noderef - HTTP 500)
      13905: MT - fix ETHREEOH-1735 (follow-on ... fix the !)
   15798: ETHREEOH-2686: Resolved problem with site dashboards disappearing after NTLM login / session expiry
      - RemoteStore.hasDocument() throws IOException rather than returning false if a non HTTP 200 response is received from the remoteavm web ScriptContent
      - This prevents us from incorrectly caching the non-existence of certain pages
      - remoteavm webscript authentication changed back to "none" so that the share NTLMAuthenticationFilter can pre-fetch pages to determine their required authentication level
      - Multi-tenancy implications resolved by making "guest" the minimum required authentication for scripts in the Repository Webscript Container when MT is enabled


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15800 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-18 17:45:05 +00:00
Gavin Cornwell
7c575fab00 Added form handling to RM export REST API meaning it can now be called with a content of either application/json or multipart/form-data.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15741 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-13 20:19:36 +00:00
Dave Ward
8f1bc603d4 Merged V3.2 to HEAD
15495: ETHREEOH-2149: Fix up setting of the content language filter in all authentication filters
      - Some new thread initialization was added to AuthenticationHelper concerning setting the locale for MLText properties
      - Unfortunately this was not propagated to the more exotic authentication filters
      - Now all web client authentication filters use shared code in AuthenticationHelper
      - Retired the NovellIChainsHTTPRequestAuthenticationFilter because it was broken and can be replaced by the superior HTTPRequestAuthenticationFilter


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15735 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-13 14:02:22 +00:00
Dave Ward
eee41b31ec Merged V3.2 to HEAD
15727: ETHREEOH-2617: When SSO is disabled in a subsystem, disable initialization of its filters
      - Do not validate filter configuration parameters in NTLM and Kerberos authentication filters when the filter is disabled


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15729 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-13 11:48:12 +00:00
Kevin Roast
e4b62b9bc7 Added missing import of JSONException.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15704 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-12 14:54:16 +00:00
Gavin Cornwell
941d5e5e9f Transfer REST API implementation, used to download the contents of a transfer object to an end users local machine.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15703 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-12 14:38:22 +00:00
Gavin Cornwell
3e5989cf4a - Changed generation of unique identifier, no longer appears as a field on the create screens, instead gets generated after the node is persisted, the identifier is then generated using the same algorithm as used for records i.e. year-<pad0><node-dbid>. The idenifier still appears on the edit screen so can be changed if desired.
- Moved the StreamArchive webscript implementation to remote API project so it can be re-used by other non RM webscripts
- Added skeleton for transfer REST API

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15687 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-11 22:12:48 +00:00
Gavin Cornwell
25e8dc411b First cut of export REST API for RM. Takes a list of arbitary NodeRef's, creates an ACP file of the nodes and streams it back to the client as an attachment.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15668 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-11 10:53:23 +00:00
Mark Rogers
2d3695c096 ALFCOM-3083
- bug fix to previous check in CHK-8031

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15026 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-30 09:22:05 +00:00
Kevin Roast
422ec06961 Fix for ALFCOM-3086 - admin enforced to enter an old password when changing their own password.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15017 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-29 19:28:36 +00:00
Mark Rogers
8e8a2dfa64 ETHREEOH-273 Alfresco Person Search doesn't work
- problem was due to people wihout the optional avatar aspect (such as admin)
   - also added a very basic unit test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14959 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-26 13:02:01 +00:00
David Caruana
2b5c440c24 Fix ALFCOM-2872: CMIS: checkout does not work for a previously versioned document
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-25 11:14:59 +00:00
Mark Rogers
65e14ad9f0 Build fix getChildrenTest was assuming the order of results.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14914 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-25 10:10:30 +00:00
David Caruana
af5ff20ec6 Fix ALFCOM-2994: Components added to Alfresco Dashboard are not working
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14912 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-25 09:44:53 +00:00
Mark Rogers
4f5d805723 Share interface now only shows groups in APP.DEFAULT zone.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14894 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-24 14:04:43 +00:00
Andrew Hind
423da7eb22 Extended zone support for multiple zones and added Authorities (including people) to zones. (MOB-762: Part 1)
WCM and Share groups are not in the default zones so they can be hidden in the UI.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-17 11:57:21 +00:00
Dave Ward
2709bd79e6 Fix unit test broken by recent person webscript changes in 14663
- STATUS_CONFLICT response code now returned on an attempt to create a person that already exists

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14729 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-16 09:49:10 +00:00
Mike Hatfield
db52a5b4d1 Fix for "IMAP-enabled" webscript not flushing/closing writer
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-15 13:34:11 +00:00
David Caruana
15cab4756d Allow a Web Script to override transactional response buffer size
- <transaction buffersize="xxx"> where xxx is bytes
- 0 or less disables cache
- default = 4096
- use with care

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14701 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-12 16:39:39 +00:00
Mike Hatfield
90a2032577 Catch additional NumberFormatException when attempting to parse If-Modified-Since header
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14699 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-12 15:16:12 +00:00
Mike Hatfield
1cd2a772e8 ALFCOM-2961 - Admin Console - Edit User: different UI displays depending on browser.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14683 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-12 11:43:33 +00:00
Mike Hatfield
36905ad325 Fix for parsing of "If-Modified-Since" header
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14679 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-12 09:37:23 +00:00
David Caruana
565c57d893 Web Script Framework enhancements: ReadOnly transactions, Buffered Responses
- additional 'allow' attribute on <transaction> element in web script descriptor
   - values: readonly, readwrite (default)
   - readonly means that the whole web script executes in read transaction
   - readonly lighter weight; no flushing, no cache checks/updates
- transaction aware web script response buffers
   - only commits to response when trx is committed
   - fixes ALFCOM-2497 - CMIS: createFolder & immediately add document can fail
   - also means errors half-way thru response result in clean response with error contents only
   - readonly transactions are not buffered
- WebScript RepoStore now uses ReadOnly transaction for gets
- CMIS getter Web Scripts set to ReadOnly transaction
- Fix up Web Script pattern that checks for WebScriptServletResponse using instanceof
   - no longer the case, as it may be wrapped in BufferedResponse
   - use getRuntime() instanceof WebScriptServletRuntime and/or
   - WebScriptServletRuntime.getHttpServletResponse/Request(WebScriptReponse r) - returns null, if none

Tests:
- Run CMIS Tests
- Run CMIS BulkCreateSystemTest (now working)
- Run Share

Suggestion:
- Update your 'read' web script descriptors to include <transaction allow="readonly">. This will improve repo performance significantly.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14670 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-11 18:25:59 +00:00
David Caruana
01718c3455 MOB-356: CMIS Spec - deleteContentStream()
- AtomPub binding
- added testContentStreamEmpty()
- added testContentStreamDelete()
- some spec issues raised for CMIS TC

- also added delete() to ScriptContentData

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14643 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-10 17:55:40 +00:00
David Caruana
c185e0674f System test for ALFCOM-2947: Bulk create folders/docs via CMIS can fail.
Note: This test currently fails intermittently, but won't halt the build, as it's a System test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14640 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-10 15:13:50 +00:00
Dave Ward
916774a1fe Merged BRANCHES/DEV/DAVEW/LDAP to HEAD
14587: Added new node service method getNodesWithoutParentAssocsOfType to public-services-security-context.xml (or at least my best guess at it!)
   14586: Use US spelling of synchronization in filenames for consistency
   14585: Lower the default user registry sync frequency to daily instead of hourly. Now users and groups are pulled over incrementally on login of missing users.
   14583: Unit test for ChainingUserRegistrySynchronizer
   14571: Migration patch for existing authorities previously held in users store
      - Uses AuthorityService to recreate authorities in spaces store with new structure
   14555: Authority service changes for LDAP sync improvements
      - Moved sys:authorities container to spaces store
      - All authorities now stored directly under sys:authorities
      - Authorities can now be looked up directly by node service
      - Secondary child associations used to model group relationships
      - 'Root' groups for UI navigation determined dynamically by node service query
      - cm:member association used to relate both authority containers and persons to other authorities
      - New cm:inZone association relates persons and authority containers to synchronization 'zones' stored under sys:zones
      - Look up of authority zone and all authorities in a zone to enable multi-zone LDAP sync
   14524: Dev branch for finishing LDAP zones and upgrade impact

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14588 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-08 16:16:32 +00:00
David Caruana
902252cde4 Merged DEV/CMIS0_61 to HEAD:
14395 : MOB-689 Support custom sub-types in CMIS Web Services
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /alfresco/BRANCHES/DEV/CMIS0_61:r14395

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14505 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-02 14:48:00 +00:00
David Caruana
4fa8c5c423 CMIS Relationship delete implementation
- added testDeleteRelationship

CMIS Relationship loose ends
- added property filter to getRelationships
- updated allowable actions for relationships

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14468 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-28 13:31:02 +00:00
Andrew Hind
3b68651191 More SearchService refactor. Added CMIS SQL to the search service. Tidy ups. FTS supports default namespace and templates via search parameters API. (MOB-568, MOB-569)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14463 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-28 10:34:51 +00:00
David Caruana
47da70f4df CMIS Relationship support in AtomPub binding
- getRelationships
- getRelationship
- createRelationship
- unit tests for above

TODO: delete relationship, includeRelationships flag

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14461 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-27 22:11:31 +00:00
Andrew Hind
0e56f7f40c Search API updates. FTS fixes for range and dual tokenisation.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-22 14:36:48 +00:00
Derek Hulley
7de9315818 Reversed out revisions 14366, 14361 and 14356
- Just prior to this, created dev branch DEV/ANDY_HEAD_ROLLBACKS
 - Andy: Switch to this branch on your local copy if you have changes to any of the files modified here


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-20 10:32:23 +00:00
Andrew Hind
3c067eca13 First pass at fixes/extensions/tidy ups to the search API - part of wiring FTS up as a query language MOB-568
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14361 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 14:06:15 +00:00
Mark Rogers
495e767906 Implementing Web Site Group Membership.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14342 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 12:44:04 +00:00
Gavin Cornwell
b19cad46de Initial cut of IMAP support (disabled by default, to enable move imap sample files into extension folder)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-12 13:41:08 +00:00
Kevin Roast
f0a15e5af7 Share Admin Console - Users tool improvements and fixes:
- First cut of CRUD operations for Users now all completed
 - Refactoring of UI refresh code
Refactor of Person PUT REST API from Java to JavaScript implementation to match POST operation for easier future changes and fixes ETHREEOH-2067.
Person PUT API now supports addition and removal of Groups from a Person.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14267 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-11 15:15:14 +00:00
David Caruana
749352836f Re-enable I18N CMIS tests
- add support for encoding to Mock HTTP Request in Web Script Test Server
- tests run in default encoding (UTF-8), and non-default encoding (ISO-8859-1)
- also run AtomPub Client test suite (which has some I18N tests too)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14233 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-07 13:31:37 +00:00
David Caruana
77014f951d Temporarily disable I18N tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14228 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-07 10:28:46 +00:00
David Caruana
fe75d397a6 Abdera CMIS Extension tidy up:
- move from package org.apache.abdera.ext.cmis to org.alfresco.abdera.ext.cmis (note: apparently, it's not permitted to use org.apache package, unless an Apache project)
- fill in some extra 0.61 pieces
- sort out comments

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14217 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-06 15:31:20 +00:00
David Caruana
fff75d6076 Fix test. Depends on partial Spring context initialisation which is not reliable. Removed dependency as it only requires a small helper class which can be constructed manually in test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14206 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-06 13:29:19 +00:00
David Caruana
46661c29d4 Merged DEV/CMIS0_61 to HEAD (final part)
14168 Minor fixes for issues found at CMIS PlugFest:
  - test framework: allow remote requests without authentication headers
  - test framework: validate requests toggle was not working; always treated as true
  - web services: expose root document, folder, policy and relationship types in getTypeDefinitions()

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14178 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 21:33:09 +00:00