Commit Graph

26 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
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
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
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
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
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
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
Kevin Roast
a3ba346406 Merged V3.0 to HEAD
11535: Fix ETHREEOH-519, ETHREEOH-23, ETHREEOH-24, ETHREEOH-58, ETHREEOH-449, ETHREEOH-30, ETHREEOH-19, ETHREEOH-561, ETHREEOH-537, ETHREEOH-567, ETHREEOH-568, ETHREEOH-113, ETHREEOH-130, ETHREEOH-115, ETHREEOH-566, ETHREEOH-572, ETHREEOH-82.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12450 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-12-17 14:28:44 +00:00
Dave Ward
660dc69222 - Added a new ‘catch all’ FormatReader that populates a requestbody script variable when no other FormatReaders are configured to handle a given request type. This was added to help the processing of posts from Orbeon XForms.
- Modified AbstractWebScript.execute() so that request-type specific script parameters (e.g. json, feed) are only available to those scripts that declare a type specific suffix, e.g. *.post.json.js, *.put.atomfeed.js. All non request type specific JS scripts will see requestbody (or formData if the request was multipart form data).This is so that scripts relying on requestBody being available at the moment don’t later get broken if we later map their request types to new FormatReaders.
- Moved getExecuteScript from DeclarativeWebScript into AbstractWebScript and made other subclasses use it, therefore using consistent path resolution rules across all web scripts.
- Removed FormatReader.createTemplateParameters() – Dave said this is not needed and the scripts themselves should copy over script parameters that are required by the templates.
- Renamed *.post.js and *.put.js expecting JSON input to *.post.json.js and *.put.json.js
- Extensive manual testing of share
- Added unit tests
  - Ensure requestbody available to *.post.jst and *.put.js for unmapped request types
  - Ensure json variable available to *.json.post.js and *.json.put.js scripts handling application/json requests
  - Ensure entry variable available to *.atom.post.js and *. atom.put.js scripts handling application/atom;type=entry requests
  - Ensure error raised for bogus script with extension corresponding to format with no FormatReader


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-26 12:01:05 +00:00
Roy Wetherall
540cc69fe2 SLNG-804: Fix for thumbnails caching in the share client
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10979 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-23 09:44:42 +00:00
Gavin Cornwell
2f77a9c25e Proper fix for SLNG-1166
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10864 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-09 10:19:26 +00:00
Gavin Cornwell
3559269b35 Fix for SLNG-1166: Incorrect work of editing documents at Document Library page
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-09 08:36:01 +00:00
David Caruana
f51be032bc Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10722 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:44:42 +00:00
Roy Wetherall
9d2fa4ce44 Tagging Service: tag scope refresh added. Async action execution policy added.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10288 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-07 10:25:05 +00:00
Roy Wetherall
d230c72045 Change file modified date on returned content from web script of type 'ContentStream', fix for SLNG- 894, change relating to SLNG-989, assertNotNull added to JS unit test API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10223 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-04 12:06:19 +00:00
Roy Wetherall
3febbb8396 Thumbanil API: suport for placeholder thumbnails added and queueing of thumbnails for creation on get
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9434 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-10 10:27:35 +00:00
Roy Wetherall
98df967450 Thumbnail Service: support for asyn creation of thumbnails (unit test's included)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9428 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-09 10:10:16 +00:00
Roy Wetherall
0c1d2728fb Added stream content 'kind of' web script, modified ContentGet webscript to use common code, create GET thumbnail method based on stream content kind of web script
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9395 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-05 10:07:26 +00:00