* ACS-1988 Implement DAU Version Renditions code
* ACS-1988 Replace directAccessUrlRequest with request-direct-access-url
* ACS-1988 fix and move DAU version rendition test
* ACS-1988 Add NodeVersionRenditionsApiTest to test suite
* ACS-1988 Remove unused import
* ACS-1988 add error response tests
* ACS-1988 remove redundant constant
* ACS-1988 updates from review
* ACS-1988 updates from review
* ACS-2391: StorageObjectProps - add version content specific endpoints
- GET /nodes/{nodeId}/versions/{versionId}/storage-info/{contentPropQName}
- POST /nodes/{nodeId}/versions/{versionId}/storage-info/{contentPropQName}/archive
- POST /nodes/{nodeId}/versions/{versionId}/storage-info/{contentPropQName}/archive-restore
- since versioned content nodes are not in default workspace://SpaceStore ...
- updated existing ContentStorageInfomation (and related tests) to handle nodeRef instead of nodeId
- also fixed REST framework for operation/property for 2nd-level relationship (inc extra fix, eg. for "revert" version regression)
- update based on PR feedback (thanks SA) - also update lic header to 2022 for new/changed Java files
- update based on PR feedback (thanks MP) - minor: rename local variable (and similarly across codebase)
* ACS-2200: Java API for archive/archive-restore content + unit tests.
* Bump restapi from 1.64 to 1.65 (#795)
* Bump utility from 3.0.45 to 3.0.47 (#794)
* ACS-2200: Applying review comments.
* ACS-2200: Applying review comments.
* ACS-2200: Adding new unit test to suite.
* ACS-2200: Adding optional archive params to archive operation.
* ACS-2236: Archive + archive-restore operations and unit tests.
* ACS-2236: Addressing review comments. Small refactor in unit tests.
* PRODSEC-5780: ACS Repo DAU APIs to also use non-attach allow list
- moved existing pre-configured allow list from remote-api to repository layer
- ("nodes.nonAttachContentTypes" xml -> "content.nonAttach.mimetypes" prop)
- now also used by DAU (as well as existing V1 REST API and CMIS to get/download content)
Squashed some of the commit messages:
* ACS-2216: Resolving failing tests
* ACS-2216: Reformatting code
* ACS-2216: Adding David's suggestion
* ACS-2216: Set some methods to default as per David's comments
* ACS-2216: Added test for when propertyQName has no content
* ACS-2216: Replaced try catch with assertThrows
* ACS-2216: Added propertyQName to Auditable list
Co-authored-by: David Edwards <david.edwards@hyland.com>
`ArchivedIOException` and `ArchivedContentException` added to provide an appropriate response when attempting to access content that is archived, for example in GLACIER s3.
Discovered and fixed a bug, when producing an error during content streaming that caused clients to hang. Content Length now set to `-1` when any `ContentIOException` is thrown so that any clients are not expecting and waiting to received the content.
* Deleted Renditions DAU Test Skeleton
* Deleted Renditions DAU Test v1
* Deleted Renditions DAU Test v2
* Deleted Renditions DAU Test v3
* Deleted Renditions DAU Test v3.1
* Comments From Pull Request
* Revert "ACS-1833 - Test requestContentDirectUrl for Versions Renditions REST API endpoint (#675)"
This reverts commit 4aaae012
* ACS-1924 Remove endpoint for version rendition DAUs
* ACS-1924 Correct WebApiParams
To restore the direct access url version renditions code, do not just revert the whole commit. Instead:
* Restore commit 4aaae012 (this is the api test for direct access url version renditions)
* Revert commit 44ecb9d (this is the endpoint for version rendition DAUs)
* Do not revert commit 7157328 (This is a correction the WebApiParams for several direct access url endpoints)
* Deleted Nodes DAU Skeleton
* Copyright Dates Update
* Spring Wiring and Default Method
* Operation Name Change
* Removal of unnecesary Method Calls and JavaDoc update
* Updates from Review
* ACS-1830 - Test requestContentDirectUrl for Nodes REST API endpoint
-add test for RequestContentDirectUrl
-update the license headers to 2021
Co-authored-by: Iulian Aftene <iulian.aftene@ness.com>
* Content Service changes both ACS-1781 and 1782
* Ignore test temporarily
* ACS-1782 fix test
* ACS-1782 Test and service updates
* ACS-1781 Tests for Content Service and Store
* ACS-1782 disable rest api DAU
* Discovery API DAU Unit Tests - Asserts
* Discovery API DAU Unit Tests
* Discovery API DAU Unit Test Class
* Discovery API DAU
* ACS-1789 DiscoveryApi DAU
* Discovery API DAU Unit Tests Renamed Methods
* Integration Test Assert
* Unit Test Imports Removal
* Copyright Dates Updated
* Copyright Dates Updated
Co-authored-by: Sara Aspery <sara.aspery@alfresco.com>
- remove the `TempOutputStream.deleteTempFileOnClose` capability
- separate the `.close()` and the `.destroy()` methods in **TempOutputStream** (only the latter deletes the temp file)
- made `BufferedRequest`&`BufferedResponse` **AutoClosable**; their `.close()` methods always calls `.destroy()` on the underlying _TempOutputStream_ object (thus triggering the removal of their temp files)
- remove the `.destroy()` call from the `BufferedResponse.writeResponse()` method
- use `BufferedRequest`&`BufferedResponse` in try-with-resources blocks (thus calling their `.close()` methods, which calls `.destroy()` on _TempOutputStream_, tiggering the removal of the temp files) - both in **RepositoryContainer** and in **ApiWebScripts**
- replace the `TempOutputStreamFactory` class with a simple `Supplier<TempOutputStream>`
- remove the `TempByteArrayOutputStream` inner class (replaced with `ByteArrayOutputStream`)
- simplified the decision tree in some methods with the help of the IDE
- other small improvements and changes
* ACS-1781 Config set up and validation
* ACS-1781 Unit tests for config validation
* ACS-1865 Code tidy up
* ACS-1865 Updates from PR review
* ACS-1865 Updates from review