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