Commit Graph

219 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
David Caruana
6dda4bdf13 Merged DEV/CMIS0_61 to HEAD (part 3)
14069 Introduce CMIS v0.61 XSDs
  - fix samples that don't validate
 14073 CMISTests passing, complying with 0.61 XSDs.
 14078 CMIS v0.61 data model and AtomPub binding API compliance.
  - delta from 0.6 recorded in changes_v0.6_to_v0.61.txt
  - updated CMIS test harness
  - tests pass
  - added Patch request type to Web Script test server
 14079 Allow for HTTP PATCH method for remote Web Script tests.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14176 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 21:01:28 +00:00
David Caruana
9379d6e414 Merged DEV/CMIS0_61 to HEAD (part 2)
14002 Removed use of Headers as arguments in CMIS AtomPub binding
  - as removed in CMIS 0.6 spec
  - removed associated tests
  - fixed encoding issue in web script test harness logging
  - removed very old .XSDs that were lying around
 14006 Obsolete.
 14022 Suport for multi-valued properties in CMIS AtomPub binding
  - support in all read, write and query methods
  - added multi-valued tests to CMISCustomTypeTest
  - fix workaround for null property values in CMIS freemarker template
  - update to Abdera CMIS Extension to handle multi-valued properties

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14175 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 20:40:35 +00:00
Jan Vonka
ee6b8d2c7c Line-endings only
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14164 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 12:59:21 +00:00
Jan Vonka
6c00f407db MOB-822 - Activity feed generator - optimise to use embedded calls (as alternative to existing remote repo callbacks)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14163 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 12:57:04 +00:00
Kevin Roast
126fc1ebbb First parts of Create User functionality in new Admin Console.
- Can create new users - no form validation etc. yet.
 - User password is set.
ChangePassword webscript improved to support admin user setting a user password without knowing the old one.
JavaScript People API fixes.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14097 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-28 08:57:04 +00:00
Kevin Roast
1a77817c0e Script and Template processor extension object support for Presentation tier.
- Additional root scope java objects can now be configured in for use by plain web-tier WebScripts, SURF components and SURF templates.
 - Initial config files provided for SURF web-framework - script/template services context
 - Also the first steps towards pluggable script/template processing engines for WebScripts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14076 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-23 15:13:09 +00:00
Mark Rogers
814a730155 Fix failing test case.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-21 10:49:56 +00:00
Gavin Cornwell
6a99a86d59 FormService improvements
- A 'dataKeyName' property has been added to the field definition to point to the corresponding data
- FormProcessors can now return a submission url to use on the client
- FormProcessors are now responsible for returning a sensible URL to represent the 'item' being processed
- Updated all affected tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 14:53:04 +00:00
Gavin Cornwell
de74a6e44a - REST API for persisting form now returns a JSON response rather than HTML
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14007 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 10:38:09 +00:00
Gavin Cornwell
67020f42c2 Updated REST API URLs following discussion last week with Roy
- To get a form definition we now POST to /api/formdefinitions
 - To persist a form we now POST to /api/item_kind/item_id/formprocessor

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 09:37:44 +00:00
Gavin Cornwell
c379051889 Merged DEV/FORMS-REFACTOR branch to HEAD
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-18 22:42:15 +00:00
Mark Rogers
695f606034 Implementation of addition of trailing * in search groups pattern
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13994 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-17 12:25:38 +00:00
Mark Rogers
4c99493d79 Implementation of Group REST API - update methods.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13946 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-14 17:13:47 +00:00
Kevin Roast
063f2df8b0 Fix to painfully broken PeoplePut REST API implementation.
- it was hilariously passing a Script object directly into a Template model - useful.
 - due to some recent changes the template model was finally being used in the person PUT template so this long-standing bug was triggered

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-08 12:49:22 +00:00
Mark Rogers
9444be11a4 Build fix - temprary remove test for GroupsTest.getChildren
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-08 08:40:24 +00:00
Mark Rogers
5f04d21556 First cut REST group api - read methods working.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13891 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 15:36:16 +00:00
Jan Vonka
e14d7455b6 Increase submit delay by 5s (remote-api unit test this time)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13885 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 14:02:59 +00:00
David Caruana
ee3eb7d5d4 CMIS setContentStream()
- implemented as a web script
- complements the "get content" web script; just use put against same resource
- added testContentStream() to CMISTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13870 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 09:30:10 +00:00
Roy Wetherall
54e04b16ea Fixed up Person service unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 11:03:28 +00:00
Neil McErlean
30fe241941 More test cases for child association persistence in forms
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 10:29:05 +00:00
Neil McErlean
440d00407f Persistence of child associations
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13835 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 10:08:10 +00:00
Kevin Roast
697f6da71b The containing groups for a user can now be optionally returned via the Person REST API.
Some cleanup to Person REST API templates scripts and tests.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 16:02:55 +00:00
Mark Rogers
6b580c7cc4 Build fix for breaking test case.
Bug fix invitation service was approving too many invitations! 
Implemented security rules for who is allowed to cancel a moderated invitation.
Continuing implementation of group authority scripts.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 16:35:31 +00:00
Mark Rogers
f46c97873e Addition of invitations root scope script object to search for invitations accross web sites + unit test + web script.
Addition of group REST API - but there's nothing behind it so don't get excited!

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13797 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-01 15:25:39 +00:00
Mark Rogers
432105ae93 ALFCOM-2687 Implementing the list invitations web script and unit tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 21:39:21 +00:00
Kevin Roast
2c43d8eb06 Fix for ETHREEOH-100, cleanup to some webscripts as ETHREEOH-100 now fixed.
Basic "people" API for FreeMarker - just getPerson() and getGroup() currently.
Template cache size and delay now configurable in RepositoryTemplateProcessor (like they already are in PresentationTemplateProcessor) - related default cache size tweaks.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 19:42:31 +00:00
Neil McErlean
16b4fc701f Switched on negative test cases in association persistence and impl in product code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13782 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 11:27:41 +00:00
Neil McErlean
8e9e0ad860 Persistence of associations
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13773 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-30 14:49:20 +00:00
Jan Vonka
bdae2181b4 MOB-594 - user activities feed now returns all activities (including own) - also have optional filters to either exclude own or exclude others
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13764 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-27 15:39:51 +00:00
Kevin Roast
968db8ef1f Build fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13760 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-27 07:51:44 +00:00
Neil McErlean
73bdb168c4 Fixing the build. Also changed forms test code to use multiple assocs
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13754 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-26 16:54:34 +00:00
Neil McErlean
85ab09a404 Rendering associations in the repo-tier webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13733 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-24 12:06:47 +00:00
David Caruana
cac4d6497e Fill out CMIS Web Service query result set:
- result set driven from select columns (not fixed set of doc/folder props)
- support for multi-valued properties (to v0.5 spec, will have to change for v0.6)

To support AIIM demo.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13728 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-23 17:22:24 +00:00