From 11e3cb4b205b75c5564ac3a1736f3f5cd144c9d0 Mon Sep 17 00:00:00 2001 From: Kacper Magdziarz <95610011+kmagdziarz@users.noreply.github.com> Date: Mon, 14 Feb 2022 11:30:48 +0100 Subject: [PATCH] ACS-2497 T-Core: Accept DAU requests (#525) * ACS-2497 Add implementation of Direct Access Url usage for transformation. Add possibly to pass Direct Access Url to Transform request instead of a sending a file. --- README.md | 4 +- .../transformer/MiscControllerTest.java | 8 ++ .../resources/templates/transformForm.html | 1 + .../transformer/TikaControllerTest.java | 11 +++ .../transformer/TikaHttpRequestTest.java | 22 ++--- .../AbstractTransformerController.java | 66 ++++++++++++-- .../transformer/AbstractHttpRequestTest.java | 34 ++++++- .../AbstractTransformerControllerTest.java | 91 +++++++++++++++++++ 8 files changed, 211 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 2093f3e2..4723c2b2 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Contains the common transformer (T-Engine) code, plus a few actual implementatio ### Documentation -In addition to the sub-projects (such as `alfresco-transformer-base` README above) some additional documentation can be found in: +In addition to the subprojects (such as `alfresco-transformer-base` README above) some additional documentation can be found in: * [this project's docs](docs) folder * [ACS Packaging docs](https://github.com/Alfresco/acs-packaging/tree/master/docs) folder @@ -68,7 +68,7 @@ You can find examples of using Core AIO in the reference ACS Deployment for Dock * [ACS Community](https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/community-docker-compose.yml) * [ACS Enterprise](https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/docker-compose.yml) -You can find examples of using the indivudal T-Engines in the reference ACS Deployment for Helm / Kubernetes: +You can find examples of using the individual T-Engines in the reference ACS Deployment for Helm / Kubernetes: * [ACS Community](https://github.com/Alfresco/acs-deployment/blob/master/helm/alfresco-content-services/community_values.yaml) * [ACS Enterprise](https://github.com/Alfresco/acs-deployment/blob/master/helm/alfresco-content-services/values.yaml) diff --git a/alfresco-transform-misc/alfresco-transform-misc-boot/src/test/java/org/alfresco/transformer/MiscControllerTest.java b/alfresco-transform-misc/alfresco-transform-misc-boot/src/test/java/org/alfresco/transformer/MiscControllerTest.java index 89c1f71b..e4dec7e0 100644 --- a/alfresco-transform-misc/alfresco-transform-misc-boot/src/test/java/org/alfresco/transformer/MiscControllerTest.java +++ b/alfresco-transform-misc/alfresco-transform-misc-boot/src/test/java/org/alfresco/transformer/MiscControllerTest.java @@ -532,4 +532,12 @@ public class MiscControllerTest extends AbstractTransformerControllerTest text = text.replaceAll("\\n", ""); return text; } + + @Test + @Override + public void queueTransformRequestUsingDirectAccessUrlTest() throws Exception + { + super.targetMimetype = this.targetMimetype; + super.queueTransformRequestUsingDirectAccessUrlTest(); + } } \ No newline at end of file diff --git a/alfresco-transform-tika/alfresco-transform-tika-boot/src/main/resources/templates/transformForm.html b/alfresco-transform-tika/alfresco-transform-tika-boot/src/main/resources/templates/transformForm.html index d6d9ba76..6d47ff5f 100644 --- a/alfresco-transform-tika/alfresco-transform-tika-boot/src/main/resources/templates/transformForm.html +++ b/alfresco-transform-tika/alfresco-transform-tika-boot/src/main/resources/templates/transformForm.html @@ -6,6 +6,7 @@