mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
REPO-5203 Remove legacy transformers (#181)
Now that the T-Engines provide parity with in process legacy transforms and metadata extract, the legacy transform code is now being removed. This will allow the documentation to be greatly simplified and a number of libraries to be removed. Custom legacy transforms need to be moved to T-Engines. ACS 6 still provides a version where both may be run in parallel. New versions of the document transform engine (DTE) and media management (MM) are planned for ACS 7.
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Remote API
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||
* %%
|
||||
* This file is part of the Alfresco software.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* Alfresco is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Alfresco is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
* #L%
|
||||
*/
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Remote API
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||
* %%
|
||||
* This file is part of the Alfresco software.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* Alfresco is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Alfresco is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
* #L%
|
||||
*/
|
||||
package org.alfresco.repo.webdav;
|
||||
|
||||
import java.util.Set;
|
||||
@@ -82,8 +82,6 @@ public class UnlockMethod extends WebDAVMethod
|
||||
{
|
||||
if (!(strLockTokenHeader.startsWith("<") && strLockTokenHeader.endsWith(">")))
|
||||
{
|
||||
// ALF-13904: Header isn't correctly enclosed in < and > characters. Try correcting this
|
||||
// to allow for Windows 7 + OpenOffice.org bug.
|
||||
strLockTokenHeader = "<" + strLockTokenHeader + ">";
|
||||
}
|
||||
if (strLockTokenHeader.startsWith("<" + WebDAV.OPAQUE_LOCK_TOKEN) && strLockTokenHeader.endsWith(">"))
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Close
|
||||
admin-console.password.show=Show Password
|
||||
admin-console.password.hide=Hide Password
|
||||
admin-console.unavailable=Information is currently unavailable
|
||||
admin-console.not.installed=Not Installed
|
||||
|
||||
admin-console.requesterror=We couldn't complete your request. Try again.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Zav\u0159\u00edt
|
||||
admin-console.password.show=Zobrazit heslo
|
||||
admin-console.password.hide=Skr\u00fdt heslo
|
||||
admin-console.unavailable=Informace nejsou moment\u00e1ln\u011b k\u00a0dispozici
|
||||
admin-console.not.installed=Nen\u00ed nainstalov\u00e1no
|
||||
|
||||
admin-console.requesterror=V\u00e1\u0161 po\u017eadavek nebylo mo\u017en\u00e9 dokon\u010dit. Zkuste to znovu.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Luk
|
||||
admin-console.password.show=Vis adgangskode
|
||||
admin-console.password.hide=Skjul adgangskode
|
||||
admin-console.unavailable=Oplysningerne er i \u00f8jeblikket ikke tilg\u00e6ngelige
|
||||
admin-console.not.installed=Ikke installeret
|
||||
|
||||
admin-console.requesterror=Vi kunne ikke fuldf\u00f8re anmodningen. Pr\u00f8v igen.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Schlie\u00dfen
|
||||
admin-console.password.show=Passwort anzeigen
|
||||
admin-console.password.hide=Passwort ausblenden
|
||||
admin-console.unavailable=Information ist derzeit nicht verf\u00fcgbar
|
||||
admin-console.not.installed=Nicht installiert
|
||||
|
||||
admin-console.requesterror=Die Anfrage konnte nicht durchgef\u00fchrt werden.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Cerrar
|
||||
admin-console.password.show=Mostrar contrase\u00f1a
|
||||
admin-console.password.hide=Ocultar contrase\u00f1a
|
||||
admin-console.unavailable=La informaci\u00f3n no est\u00e1 disponible en este momento
|
||||
admin-console.not.installed=No instalado
|
||||
|
||||
admin-console.requesterror=No se ha podido realizar la solicitud.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Sulje
|
||||
admin-console.password.show=N\u00e4yt\u00e4 salasana
|
||||
admin-console.password.hide=Piilota salasana
|
||||
admin-console.unavailable=Tiedot eiv\u00e4t ole juuri nyt saatavilla
|
||||
admin-console.not.installed=Ei asennettu
|
||||
|
||||
admin-console.requesterror=Pyynn\u00f6n suorittaminen ei onnistu. Yrit\u00e4 uudelleen.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Fermer
|
||||
admin-console.password.show=Afficher le mot de passe
|
||||
admin-console.password.hide=Masquer le mot de passe
|
||||
admin-console.unavailable=Informations actuellement indisponibles
|
||||
admin-console.not.installed=Pas install\u00e9
|
||||
|
||||
admin-console.requesterror=Echec de la requ\u00eate.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Chiudi
|
||||
admin-console.password.show=Mostra password
|
||||
admin-console.password.hide=Nascondi password
|
||||
admin-console.unavailable=Le informazioni non sono al momento disponibili
|
||||
admin-console.not.installed=Non installato
|
||||
|
||||
admin-console.requesterror=Impossibile completare la richiesta.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=\u9589\u3058\u308b
|
||||
admin-console.password.show=\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8868\u793a\u3059\u308b
|
||||
admin-console.password.hide=\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u975e\u8868\u793a\u306b\u3059\u308b
|
||||
admin-console.unavailable=\u73fe\u5728\u3001\u60c5\u5831\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093
|
||||
admin-console.not.installed=\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093
|
||||
|
||||
admin-console.requesterror=\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b8c\u4e86\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Lukk
|
||||
admin-console.password.show=Vis passord
|
||||
admin-console.password.hide=Skjul passord
|
||||
admin-console.unavailable=Informasjon er for tiden ikke tilgjengelig
|
||||
admin-console.not.installed=Ikke installert
|
||||
|
||||
admin-console.requesterror=Vi kunne ikke fullf\u00f8re foresp\u00f8rselen.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Sluiten
|
||||
admin-console.password.show=Wachtwoord weergeven
|
||||
admin-console.password.hide=Wachtwoord verbergen
|
||||
admin-console.unavailable=Informatie is momenteel niet beschikbaar
|
||||
admin-console.not.installed=Niet ge\u00efnstalleerd
|
||||
|
||||
admin-console.requesterror=Kan de aanvraag niet uitvoeren.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Zamknij
|
||||
admin-console.password.show=Poka\u017c has\u0142o
|
||||
admin-console.password.hide=Ukryj has\u0142o
|
||||
admin-console.unavailable=Informacja nie jest aktualnie dost\u0119pna
|
||||
admin-console.not.installed=Niezainstalowane
|
||||
|
||||
admin-console.requesterror=Nie mo\u017cna wykona\u0107 Twojego zapytania. Spr\u00f3buj ponownie.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=Fechar
|
||||
admin-console.password.show=Mostrar senha
|
||||
admin-console.password.hide=Ocultar senha
|
||||
admin-console.unavailable=Informa\u00e7\u00e3o indispon\u00edvel no momento
|
||||
admin-console.not.installed=N\u00e3o instalado
|
||||
|
||||
admin-console.requesterror=N\u00e3o conseguimos concluir a solicita\u00e7\u00e3o.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=\u0417\u0430\u043a\u0440\u044b\u0442\u044c
|
||||
admin-console.password.show=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c
|
||||
admin-console.password.hide=\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c
|
||||
admin-console.unavailable=\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430
|
||||
admin-console.not.installed=\u041d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e
|
||||
|
||||
admin-console.requesterror=\u041d\u0430\u043c \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=St\u00e4ng
|
||||
admin-console.password.show=Visa l\u00f6senord
|
||||
admin-console.password.hide=D\u00f6lj l\u00f6senord
|
||||
admin-console.unavailable=Informationen \u00e4r f\u00f6r n\u00e4rvarande otillg\u00e4nglig
|
||||
admin-console.not.installed=Inte installerad
|
||||
|
||||
admin-console.requesterror=Vi kunde inte slutf\u00f6ra din beg\u00e4ran. F\u00f6rs\u00f6k igen.
|
||||
|
||||
|
@@ -20,7 +20,6 @@ admin-console.close=\u5173\u95ed
|
||||
admin-console.password.show=\u663e\u793a\u5bc6\u7801
|
||||
admin-console.password.hide=\u9690\u85cf\u5bc6\u7801
|
||||
admin-console.unavailable=\u4fe1\u606f\u5f53\u524d\u4e0d\u53ef\u7528
|
||||
admin-console.not.installed=\u672a\u5b89\u88c5
|
||||
|
||||
admin-console.requesterror=\u6211\u4eec\u65e0\u6cd5\u5b8c\u6210\u8bf7\u6c42\u3002
|
||||
|
||||
|
@@ -1,28 +1,28 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Remote API
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||
* %%
|
||||
* This file is part of the Alfresco software.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* Alfresco is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Alfresco is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
* #L%
|
||||
*/
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Remote API
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||
* %%
|
||||
* This file is part of the Alfresco software.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* Alfresco is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Alfresco is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
* #L%
|
||||
*/
|
||||
package org.alfresco.repo.webdav;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
@@ -223,25 +223,6 @@ public class UnlockMethodTest
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* OpenOffice.org on Windows 7 results in a lock token header that is NOT enclosed in
|
||||
* the required < and > characters. Whilst technically an invalid header, we treat
|
||||
* this case specially for reasons of interoperability (ALF-13904)
|
||||
*
|
||||
* @throws WebDAVServerException
|
||||
*/
|
||||
@Test
|
||||
public void parseLockTokenHeaderFromOOoOnWindows7() throws WebDAVServerException
|
||||
{
|
||||
String lockToken = "976e2f82-40ab-4852-a867-986e9ce11f82:admin";
|
||||
// Note the missing enclosing < and > characters
|
||||
String lockHeaderValue = WebDAV.OPAQUE_LOCK_TOKEN + lockToken;
|
||||
request.addHeader(WebDAV.HEADER_LOCK_TOKEN, lockHeaderValue);
|
||||
unlockMethod.parseRequestHeaders();
|
||||
|
||||
assertEquals(lockToken, unlockMethod.getLockToken());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test MNT-9680: Working copies are open in read-only mode when using Webdav online edit
|
||||
*
|
||||
|
@@ -321,8 +321,7 @@ public class RenditionsTest extends AbstractBaseApiTest
|
||||
// renditionId in the path parameter is not registered/available
|
||||
getSingle(getNodeRenditionsUrl(contentNodeId), ("renditionId" + System.currentTimeMillis()), 404);
|
||||
|
||||
// Create a node without any content. Test only if OpenOffice is available
|
||||
if(isOpenOfficeAvailable())
|
||||
if (areLocalTransformsAvailable())
|
||||
{
|
||||
String emptyContentNodeId = addToDocumentLibrary(userOneN1Site, "emptyDoc.txt", TYPE_CM_CONTENT, userOneN1.getId());
|
||||
getSingle(getNodeRenditionsUrl(emptyContentNodeId), "doclib", 200);
|
||||
@@ -410,8 +409,7 @@ public class RenditionsTest extends AbstractBaseApiTest
|
||||
// Create 'doclib' rendition request
|
||||
Rendition renditionRequest = new Rendition().setId("doclib");
|
||||
|
||||
// Test only if OpenOffice is available
|
||||
if (isOpenOfficeAvailable())
|
||||
if (areLocalTransformsAvailable())
|
||||
{
|
||||
// Create a node without any content
|
||||
String emptyContentNodeId = addToDocumentLibrary(userOneN1Site, "emptyDoc.txt", TYPE_CM_CONTENT, userOneN1.getId());
|
||||
@@ -557,7 +555,7 @@ public class RenditionsTest extends AbstractBaseApiTest
|
||||
response = getSingle(getNodeRenditionsUrl(contentNodeId), ("doclib/content"), params, 200);
|
||||
assertNotNull(response.getResponseAsBytes());
|
||||
|
||||
if(isOpenOfficeAvailable())
|
||||
if (areLocalTransformsAvailable())
|
||||
{
|
||||
// Create multipart request - Word doc file
|
||||
renditionName = "doclib";
|
||||
@@ -963,10 +961,9 @@ public class RenditionsTest extends AbstractBaseApiTest
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> if OpenOffice-based transformations are currently known to
|
||||
* be available, else <code>false</code>.
|
||||
* Returns <code>true</code> if doc to pdf transformations available, indicating Local transforms ar available.
|
||||
*/
|
||||
protected boolean isOpenOfficeAvailable()
|
||||
protected boolean areLocalTransformsAvailable()
|
||||
{
|
||||
return synchronousTransformClient.isSupported(MimetypeMap.MIMETYPE_WORD, -1, null,
|
||||
MimetypeMap.MIMETYPE_PDF, Collections.emptyMap(), null, null);
|
||||
|
@@ -13,7 +13,6 @@ log4j.logger.org.alfresco.repo.content.transform.TransformerDebug=debug
|
||||
|
||||
log4j.logger.org.alfresco.repo.rendition2=debug
|
||||
#log4j.logger.org.alfresco.repo.rendition2.LocalTransformClient=debug
|
||||
#log4j.logger.org.alfresco.repo.rendition2.LegacyTransformClient=debug
|
||||
#log4j.logger.org.alfresco.repo.rendition.RenditionServiceImpl=debug
|
||||
#log4j.logger.org.alfresco.enterprise.repo.rendition2.RemoteTransformClient=debug
|
||||
log4j.logger.org.alfresco.repo.thumbnail.ThumbnailServiceImplTest=DEBUG
|
||||
|
Reference in New Issue
Block a user