- Added new method to MimetypeService to retrieve a valid mimetype given any extension, handling case and missing values
- Updated JUnit tests for MimetypeService methods
- Fixed callers of MimetypeService to use new method to protect against varying case of file extensions (ALF-2118 root cause)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
17460: Refactored calendar views into separate objects
17466: Remote API part of fix for ETHREEOH-3268.
- Added simple webscript to return details of the authentication system, such as account creation allowed.
17473: ETHREEOH-3268 - UI part of fix.
- Add External Users is now disabled in Share if Alfresco instance does not support creating new users i.e. if LDAP or similar is used.
17479: ETHREEOH-2409 - Doc Library Details page displays incomplete action list; usability issue
17480: My Tasks dashlet - prevent display of fake date used for sorting
17484: Fixed ETHREEOH-2305 "It's impossible to implement a Search request with empty search field in Site Members area."
- Default settings can be applied in web-framework-config-application.xml:
<min-search-term-length>1</min-search-term-length>
<max-search-results>100</max-search-results>
and later be overriden in the properties section for each searchable components binding file.
- The components that override the min-search-term-length default value and set it to "0" are:
site-finder, site-members & site-groups
17485: Merged DEV_TEMPORARY TO V3.2
17468: Problem rendering field description (MultilingualTextAreaGenerator) for app:folderlink
17486: Merged DEV_TEMPORARY to V3.2 (record-only)
17487: Partial fix for ETHREEOH-3308 (xf:switch cannot be used in repeating field type), fixes 'extra' set of fields seen when using a maxOccurs of more than 1
17489: MERGED DEV/TEMPORARY to V3.2
ETHREEOH-3068 - WCM Create Web Content Wizard
17492: Fix for ETHREEOH-2598 documents uploaded via Share interface are not incremented as versions with CIFS/SMB interface.
- Auto versioning of documents now correctly handled via CIFS edit if an appropriate rule is applied to a doclib
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18123 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
17475: ETHREEOH-3295: Fix to AuthorityMigrationPatch
- Forces transaction retry if worker thread reaches child authority before a parent authority
- Tested on Kev's 3.1.1 repository with ~20,000 bulk loaded users and ~2,000 Share sites
- Now completes in 5 minutes as opposed to 45
17461: ETHREEOH-3268: Added MutableAuthenticationService.isAuthenticationCreationAllowed () to allow conditional display of external user invitation UI
17450: ETHREEOH-2762: Correction to previous fix. Do not generate new name when working copy copied back on check in.
17440: ETHREEOH-3295: Fixed logging in FixNameCrcValuesPatch
17439: ETHREEOH-2762: Improved behaviour when a working copy is copied
- Working copy aspect already removed the working copy aspect on copy
- Now derives a new name from the node checked out from and a UUID, preserving the extension
17438: ETHREEOH-2690: Fix sequencing of jgroups system property setting
- declared dependency between internalEHCacheManager and jgroupsPropertySetter
17436: ETHREEOH-3295: Further performance improvements to AuthorityMigrationPatch
- authority created at same time as all its parent associations to save lots of reindexing, as per LDAP sync
- multi-threaded BatchProcessor (as used by LDAP sync, FixNameCrcValuesPatch) used to process work in 2 threads in batches of 20, report progress every 100 entries and handle transaction retries
- BatchProcessor now promoted to its own package
17394: Fix for license issue in local enterprise builds.
- Replace Community with Enterprise in version.properties during enterprise war building
17365: ETHREEOH-3229: Visited and fixed all SearchService result set leaks
17362: ETHREEOH-3254: Eliminate needless ping to LDAP server in LDAPAuthenticationComponentImpl.implementationAllowsGuestLogin()
17348: ETHREEOH-3003: Fix NPE in Hyperic when LicenseDescriptor has null fields
17316: Merged V3.1 to V3.2
17315: ETHREEOH-3092: PersonService won't let you create duplicate persons anymore.
17314: ETHREEOH-3158: Fix RepoServerMgmt to work with external authentication methods
- AuthenticationService.getCurrentTicket / getNewTicket now call pre authentication check before issuing a new ticket, thus still allowing ticket enforcement when external authentication is in use.
17312: ETHREEOH-3219: Enable resolution of JMX server password file path on JBoss 5
17299: Merged V3.2 to V3.1 (Record only)
17297: ETHREEOH-1593: Changed name of username cookie and fixed login.jsp to decode it properly
17248: ETHREEOH-1593: alfUser cookie value should be base 64 encoded to allow for non-ASCII characters
17297: ETHREEOH-1593: Changed name of username cookie and fixed login.jsp to decode it properly
- thanks Kev!
17292: ETHREEOH-1842: Ticket association with HttpSession IDs tracked so that we don't invalidate a ticket in use by multiple sessions prematurely
- AuthenticationService validate, getCurrentTicket, etc. methods now take optional sessionId arguments
17269: Fix failing unit test
- reinstate original behaviour of AbstractChainingAuthenticationService.getAuthenticationEnabled()
17268: Fix InvitationService
- Runs as system to do privileged AuthenticationService actions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18105 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
17804: Branch for SpringSurf integration 2 to RemoteAPI - from HEAD r17789
17808: Part 3 of SpringSurf integration - RemoteAPI, Web-Client, Mobile and DOD5015 java code refactored to use SpringSurf Webscripts libraries, removed dependancies on existing WebScriptFramework project.
17812: Removed web-framework and webscript-framework projects. Updated build scripts to use SpringSurf dependencies for remote API and client projects and also removal of wf and wsf projects from builds.
17818: Various Spring app context and config changes to integration SpringSurf at the RemoteAPI and Web-Client project level.
- Build scripts fixed up
- Temporary web.xml changes until spring mvc dispatcher is hooked into /service urls
- The server starts up! No nothing else works yet, you know how this goes...
17819: Fix to incremental-webclient-tomcat-exploded build target to work on first deploy to a clean tomcat (affects HEAD also, not SpringSurf related).
17872: Refactor Web-Client web.xml to use Spring WebScripts Dispatcher Servlet
- servlet is configured to use the existing Spring application context instance as loaded by the ContextLoaderListener
Share web.xml TODOs for JBoss app-server support (currently missing from SpringSurf extraction)
17892: Upgraded Repository Spring dependant libraries to 3.0.0 release.
Upgraded to latest SpringSurf release (also running against Spring 3.0.0)
Various related fixes.
17893: Additional Spring3.0.0 migration fixes and libraries.
17899: Integrated another SpringSurf bug fix - to correctly add ClassPathStore instances to SearchPath objects.
17901: Fixes to handling of merging of models returned from the new Script Processors.
Share now works against a Repository that is running SpringSurf WebScripts and Spring 3.0.0.
17904: Latest SpringSurf libraries after latest changes.
TODO:
- NTLM filter needs moving to Share (not present in SpringSurf)
- MessagesWebScript - community tracking image needs adding to Share specific version (not present in SpringSurf)
- feedController - for rss feed service urls - needs testing
- Clustering config overrides - no longer work in SpringSurf, needs a rethink
- Mobile project is not working
- PHP module project
- JBossEnabledWebApplicationContext required for Share - currently missing from SpringSurf
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17906 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
17682: Fixed up package structure of standalone alfresco-jlan configelement fa‡ade classes.
17684: Fix up build.xml for first set of spring-surf integration changes - tested alfresco/share server startup.
17697: Minor tweaks from V3.3_SPRING3 branch before spring-webscripts JAR integration.
17730: Updated to latest SpringSurf libs and fixed up build.xml.
17737: Share war built against SpringSurf libraries and deploys into tomcat.
- First pass of configuration and web.xml refactored to new structure
- Refactored Slingshot PageMapper and UserFactory classes to new interfaces
- Build scripts updated to use SpringSurf libraries to build Share - dependency on old WebScripts and WebFramework projects removed.
- Some cleanup related to SpringSurf Core project class removal
- NOTE: Share does not work yet, not even close, just builds and deploys WAR with no errors.
17738: Updates to WebFrameworkCommons - removes dependency on old WebScripts and WebFramework projects - now uses new SpringSurf libraries.
17739: Removed webscripts and webframework references from build targets for slingshot.
17740: Removed old WebStudio project and build scripts.
17747: Updated to latest SpringSurf dependent libraries.
Fixes to Share startup config - added page types.
17751: More refactoring of Share app-context config.
Moved StaticAssetCacheFilter to WebFrameworkCommons (as no longer present in SpringSurf).
Added SlingshotPageMapperFactory to complete classes required for Share SpringSurf customisation.
Updated SpringSurf jars to latest after recent SpringSurf SVN commits.
Slingshot surf-config.xml now loads custom app-context from backward compatibility locations.
URL rewrite config added to allow /service and /proxy URLs to work for backward compatibility.
Removal of more obsolete sections from Share web.xml.
17752: Share login and basic authentication and user generation path now working.
17775: Share dashboards and other pages now working under SpringSurf.
- Added latest SpringSurf libs after my recent commits for various fixes
- Added Share overriden PageViewResolver to handle Uri template matching - required for Share
- Fixed Logout
- Moved slingshot-region-chome to correct new location
17785: Removed obsolete system-templates dir.
Fixed slingshot app context to correctly pickup custom share config xml in web-extension.
Fixed up JSF client index.jsp to use new ConfigService class location.
17786: Updated SpringSurf libs after recent commits.
Share related fixes to app-context.
Share is now working! For the basic use cases i'm no longer seeing any issues; login, dashboards, creation of sites, document library etc. all seem to be working now.
A complete QA pass of the application will be required for 3.3.
TODO:
- NTLM filter needs moving to Share (not present in SpringSurf)
- MessagesWebScript - community tracking image needs adding to Share specific version (not present in SpringSurf)
- Clustering config overrides - no longer work in SpringSurf, needs a rethink
- Mobile project is not working
- Repository Remote API and Web-Client to work ontop of SpringSurf WebScripts (the next BIG bit...)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17789 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
17667: Branch for SpringSurf integration - from HEAD r17665
17668: Fix to ensure included scripts files are not loaded from a cached classpath loader.
17670: Part 1 of SpringSurf integration - changes relating to spring-surf-core-1.0.0.CI-SNAPSHOT.jar
17674: Part 2 of SpringSurf integration - changes relating to spring-surf-core-configservice-1.0.0.CI-SNAPSHOT.jar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- 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
13048: Fix for ETHREEOH-1179 - in Share customize dashboard will time out when 1000+ sites in the system
Changed AVMRemoteStore "listpattern" REST method to use Andy's new "direct to DB" file pattern matching API for AVM stores.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13555 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
12145: Merged V2.2 to V3.0 (AuthenticationUtil)
12109: AuthenticationUtil and AuthenticationComponent refactor
12152: Removed Lucene usage from lookup of 'sites' root folder
12153: Fix InviteServiceTest by cleaning up leaking authentications
12159: Fix for broken usage pattern of the Threadlocal values in recent AuthenticationUtil refactor.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12508 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
11489: Added step for JDBC info
11490: Fixed: ETHREEOH-452 Error appear when a user trying to view metadata for item, which is deleting
11491: Blog integration package rename and removal of obsolete web-client beans
11492: Adding missing web-extension dir to dynamic-website project
11493: ETHREEOH_520: Fixes to prevent new users from being created when existing users invited to a site
11494: Updated version to beta2
11495: Fixes ETHREEOH-252, 392 & 393. When merged to 2.2 will also fix ETWOTWO-246 & 616 and when merged to HEAD will fix ALFCOM-1685 & 1712.
11496: Partial fix for ETHREEOH-27, fixes 2 out of the final 3 error conditions.
11497: Fix for ETHREEOH-550
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12447 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
11417: Removed 'Settings' link until feature is implemented
11418: Fav icons for JSF and Share client apps
11419: SSO authentication touch webscript updated to use Java backed bean impl.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12435 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
11355: NTLMLogoDetails and Type2NTLMMessage are now Serializable, as they may be stored in an HTTP session. JLAN-43.
11386: Refactor of repository tier NTLM authentication filters.
11387: Integration of NTLMv2 message support for NTLM authentication filters
11400: Fixed NTLMv2 detection for Firefox, it does not send the 128Bit flag.
11401: Second round of NTLM authentication filter refactoring for repo tier.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12425 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Revisions 11077, 11081, 11107, 11155, 11452, 11537, 11568, 11571, 11767, 11804, 11808
- Adjustments to the AVM Remote Store to fully allow it to interact with any AVM store based on store id and web application id. The latter is provided to allow WCM Web Project stores to play nicely with non-WCM stores (like sitestore).
- Additional arguments to AVM Remote Store can be passed in as request parameters or as tokenized strings (/s/<store>/w/<webapp>) which allows for URL addressability using a remotestore prefix.
- Additional remote API's for web framework to allow for AVM metadata query and some redirection
- Best effort to merge stuff without breaking any of Mark or Jan's code. Will work at manual integration of REST API bits tomorrow. Expect good things.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Added AlfrescoUser object, to be responsible for persisting changes to User Profile.
Added concept of ThreadLocalRequestContext - similar to FacesContext in that it has a static accessor method to retrieve the "current" instance.
Removal of 'alfresco-system' endpoint from web-framework and replaced usage with 'alfresco' endpoint:
- removes the need for admin user detailed to be stored in web-framework config files (!) and being constantly transmitted between tiers
- refactored appropriate webscripts to accept non-admin authentication but added code checks to ensure non-admin users can only bring back meta-data about themselves
- refactored AVMRemoteStore and RemoteStore client to use authenticated endpoint rather than system admin authentication driven endpoint
- this also reduces the the traffic between tiers and vastly reduces the number of login tickets requested
Added open HTTP endpoint - for use by RSS feed components etc. that point to any website feed - configured as 'unsecure' endpoint so purposely cannot be accessed via proxy URLs.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9920 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Fixed and added APIs to bind and unbind components in web-tier object model - mirrored API methods for "sitedata" JS API.
- this completes the working APIs needed to add/remove pages and add/remove/modify component bindings to facilitate user dashboard configuration and site page configuration.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Much improved JUnit test for RemoteStore - on web-tier end.
- various issues fixed in existing API as highlighted by JUnit tests
Separated out RemoteStore test from the RemoteClient JUnit test into own file.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9530 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Remote AVM store now expects 'admin' auth level for all operations, and fixed to handle AuthenticationDenied exceptions.
Added example config to use remote AVM store as primary lookup location (with fall back to web-app classpath) for model XML files - NOT on by default - as still need to add the avm sitestore to bootstrap/patch.
Improvements to web-framework model object caching - use of "sentinel" pattern to cache missing values.
Model object persister ordering now maintained as per Spring config order.
ModelObjectManager now more aggressively throws out exceptions when errors occur loading model objects.
Fix to RendererFactory to be thread safe (!)
Other small fixes, clean up and productisation in web-framework.
Useful toString() methods added to various classes for debugging.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9471 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- set this log level: log4j.logger.org.alfresco.web.scripts.AlfrescoScriptDebugger=debug
- or use this webscript: [your-web-server]/slingshot/service/api/javascript/debugger
The usual repo JavaScript Debugger is available here:
- set this log level: log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=debug
- or use this webscript: [your-repo-server]/alfresco/service/api/javascript/debugger
You can use both debuggers at the same time if required.
Rewrite of the bizare IProxy code in the javascript debugger class - which in turn fixes the bug ALFCOM-1743 where closing the JavaScript debugger window would have caused all future JavaScripts to block until the server was restarted.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9410 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261