Giter Site home page Giter Site logo

arawa / libreoffice-online-repo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremie-lesage/libreoffice-online-repo

3.0 3.0 4.0 189 KB

LibreOffice Online module for Alfresco repository

Batchfile 0.38% Shell 0.39% FreeMarker 2.42% JavaScript 7.16% Java 89.64%

libreoffice-online-repo's People

Contributors

darkstar1 avatar jeremie-lesage avatar lme-atolcd avatar syastrov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libreoffice-online-repo's Issues

Error returning file nodeRef in multi-tenant environment

Hello,
I'm trying to use the module in an alfresco multi tenant environment, but I'm getting some troubles.

The first problem was an "Authorization 'Bearer' not supported" exception. For that I found a workaround adding a filter in alfresco that skip the bearer token for the lool url patterns.
public class AuthenticationFilter implements Filter { (...) }

Second and what I'm not getting any solution or workaround is about noderef not found exception, maybe because the tenant domain is not the right one in the request.

2019-02-18 17:04:48,048 ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Exception from executeScript: 01180000 error returning file nodeRef
alfresco_1_aa378c3b5b4b | org.springframework.extensions.webscripts.WebScriptException: 01180000 error returning file nodeRef
alfresco_1_aa378c3b5b4b | at dk.magenta.libreoffice.online.LOOLCheckFileInfoWebScript.executeImpl(LOOLCheckFileInfoWebScript.java:108)
alfresco_1_aa378c3b5b4b | at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
alfresco_1_aa378c3b5b4b | at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)
alfresco_1_aa378c3b5b4b | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
alfresco_1_aa378c3b5b4b | at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)
alfresco_1_aa378c3b5b4b | at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)
alfresco_1_aa378c3b5b4b | at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:355)
alfresco_1_aa378c3b5b4b | at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)
(...)

I already tried using AuthenticationUtil.setFullyAuthenticatedUser(...) in some places but continues failing when I try to get two files with two tenants.

I don't know if you already tried with multi-tenant environment.
Any help will be very appreciated.
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.