Code Monkey home page Code Monkey logo

Comments (9)

MalkmusT avatar MalkmusT commented on August 18, 2024

i'm facing a similar problem.

On my setup both owncloud and collabora ar hosted on the same machine, installed versions are:

ownCloud: 10.13.4.1
richdocuments: 4.1.0
collabora: 23.05.6

Opening a file results in an HTTP 500 internal Server error:

xxx.xxx.xxx.xxx - - [28/Dec/2023:12:07:17 +0100] "GET /apps/richdocuments/documents.php/index?fileId=18033&dir=%2F HTTP/1.1" 500 6914 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" "-"

The correcspondin Owncloud Error Message is:

{
"reqId":"A77n4jjDhuRdM9Wri7Hs",
"level":3,
"time":"2023-12-28T11:07:17+00:00",
"remoteAddr":"xxx.xxx.xxx.xxx",
"user":"XXXX",
"app":"index",
"method":"GET",
"url":"\/apps\/richdocuments\/documents.php\/index?fileId=18033&dir=%2F",
"message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"The requested uri(\\\/apps\\\/richdocuments\\\/documents.php\\\/index) cannot be processed by the script '\\\/index.php\\\/apps\\\/richdocuments\\\/documents.php')\",\"Code\":0,\"Trace\":\"#0 \\\/usr\\\/share\\\/nginx\\\/html\\\/wolke\\\/lib\\\/kernel.php(860): OC\\\\AppFramework\\\\Http\\\\Request->getRawPathInfo()\\n#1 \\\/usr\\\/share\\\/nginx\\\/html\\\/wolke\\\/index.php(32): OC::handleRequest()\\n#2 {main}\",\"File\":\"\\\/usr\\\/share\\\/nginx\\\/html\\\/wolke\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Request.php\",\"Line\":666}"
}

Note /usr/share/nginx/html/wolke is the owncloud base dir and owncloud is one hour off... (i think i should fix this some time)

I can not find any corresponding access to the collabora instance.

Let me know if i should perform some tests or further information for debuging is needed.

from richdocuments.

cs35-owncloud avatar cs35-owncloud commented on August 18, 2024

Hello,

so far it's still not working with richdocuments 4.1.0 and the latest collabora 23.05.6.5.1.
To have it working I had to use richdocuments 3.0.0 and collabora 22.05.6.1.1.

from richdocuments.

pako81 avatar pako81 commented on August 18, 2024

Can you please try #535 out and report back? Thx.

from richdocuments.

pako81 avatar pako81 commented on August 18, 2024

It is also recommended to apply following core fix owncloud/core#41161

from richdocuments.

MalkmusT avatar MalkmusT commented on August 18, 2024

Thanks @pako81 for the reply, I did the suggested changes manually:

apps/richdocuments/lib/AppInfo/Application.php

                                                'href' => $container->query('ServerContainer')->getURLGenerator()->linkToRoute('richdocuments.Document.index'),

core/Controller/AppRegistryController.php

                if ($app_name === 'richdocuments') {
                        $link = $this->generator->linkToRoute('richdocuments.Document.index', [
                                'fileId' => $fileId
                        ]);
                if ($link !== '') {
                                $uri = $this->generator->getAbsoluteUrl($link);
                        } else {
                                $uri = $this->generator->linkToRouteAbsolute('richdocuments.document.index', ['fileId' => $fileId]);
                        }
                } 

Resulting in the same error as befor :

{
"reqId":"7YJWWjOR6BQqua5TtI9s",
"level":3,
"time":"2024-01-25T06:44:44+01:00",
"remoteAddr":"xx.xx.xx.xx",
"user":"XXXX",
"app":"index",
"method":"GET","url":"\/apps\/richdocuments\/documents.php\/index?fileId=14357&dir=%2F",
"message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"The requested uri(\\\/apps\\\/richdocuments\\\/documents.php\\\/index) cannot be processed by the script '\\\/index.php\\\/apps\\\/richdocuments\\\/documents.php')\",\"Code\":0,\"Trace\":\"#0 \\\/usr\\\/share\\\/nginx\\\/html\\\/wolke\\\/lib\\\/kernel.php(860): OC\\\\AppFramework\\\\Http\\\\Request->getRawPathInfo()\\n#1 \\\/usr\\\/share\\\/nginx\\\/html\\\/wolke\\\/index.php(32): OC::handleRequest()\\n#2 {main}\",\"File\":\"\\\/usr\\\/share\\\/nginx\\\/html\\\/wolke\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Request.php\",\"Line\":666}"
}

from richdocuments.

voodoovood avatar voodoovood commented on August 18, 2024

The same here, Clean installation, owncloud and collabora.

from richdocuments.

cs35-owncloud avatar cs35-owncloud commented on August 18, 2024

Hello, a little head's UP.
I tried again with richdocuments 4.2.0 and collabora code 23.05.9.4.1, sadly documents still won't load.

from richdocuments.

T0mWz avatar T0mWz commented on August 18, 2024

@voodoovood & @cs35-owncloud , what happend when you remove the &dir part from your URL?
I think the richdocuments app tried to use that path, but should only check the fileid.

I guess the issue is here; https://github.com/owncloud/richdocuments/blob/master/lib/DocumentService.php#L144
When a dir is specified, then it tries to lookup the document in that specific directory.
However when I have shared a document that is for my account in Folder A, but due to sharing it ends up in the Root of the other user, the path to the document is not the same.
So when I share the URL from the browser to collaborate on the same document, that will not work. Unless you omit the dir part and just look at the file ID.

from richdocuments.

iasdeoupxe avatar iasdeoupxe commented on August 18, 2024

Noticed the same today on the following system:

  • ownCloud 10.14.0 with "index.php" less URLs configured
  • Collabora Code 23.05.10-1
  • Richdocuments app 4.2.0
  • nginx web server

Initially i received the following mentioned error:

{"reqId":"removed",
"level":3,
"time":"removed",
"remoteAddr":"removed",
"user":"removed",
"app":"index",
"method":"GET",
"url":"\/apps\/richdocuments\/documents.php\/index?fileId=removed&dir=%2F",
"message":"Exception: {
\"Exception\":\"Exception\",
\"Message\":\"The requested uri(\\\/apps\\\/richdocuments\\\/documents.php\\\/index) cannot be processed by the script '\\\/index.php\\\/apps\\\/richdocuments\\\/documents.php')\",
\"Code\":0,
\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(872): OC\\\\AppFramework\\\\Http\\\\Request->getRawPathInfo()\\n#1 \\\/var\\\/www\\\/owncloud\\\/index.php(32): OC::handleRequest()\\n#2 {main}\",
\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Request.php\",
\"Line\":666}"}

which changes to the following after trying the previous suggestion to remove the &dir part from the URL (an internal server error is still shown and no documents showing up):

{"reqId":"removed",
"level":3,
"time":"removed",
"remoteAddr":"removed",
"user":"removed",
"app":"index",
"method":"GET",
"url":"\/apps\/richdocuments\/documents.php\/index?fileId=removed",
"message":"Exception: {
\"Exception\":\"Exception\",
\"Message\":\"The requested uri(\\\/apps\\\/richdocuments\\\/documents.php\\\/index) cannot be processed by the script '\\\/index.php\\\/apps\\\/richdocuments\\\/documents.php')\",
\"Code\":0,
\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(872): OC\\\\AppFramework\\\\Http\\\\Request->getRawPathInfo()\\n#1 \\\/var\\\/www\\\/owncloud\\\/index.php(32): OC::handleRequest()\\n#2 {main}\",
\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Request.php\",
\"Line\":666}"}

and the only difference in the log is the following:

--- <unnamed>
+++ <unnamed>
@@ -5,7 +5,7 @@
 "user":"removed",
 "app":"index",
 "method":"GET",
-"url":"\/apps\/richdocuments\/documents.php\/index?fileId=removed&dir=%2F",
+"url":"\/apps\/richdocuments\/documents.php\/index?fileId=removed",
 "message":"Exception: {
 \"Exception\":\"Exception\",
 \"Message\":\"The requested uri(\\\/apps\\\/richdocuments\\\/documents.php\\\/index) cannot be processed by the script '\\\/index.php\\\/apps\\\/richdocuments\\\/documents.php')\",

from richdocuments.

Related Issues (20)

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.