mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
- 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