Comments (9)
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.
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.
Can you please try #535 out and report back? Thx.
from richdocuments.
It is also recommended to apply following core fix owncloud/core#41161
from richdocuments.
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.
The same here, Clean installation, owncloud and collabora.
from richdocuments.
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.
@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.
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)
- [QA] 4.0.0 Testplan HOT 3
- richdocuments 4.0.0 release HOT 16
- Need help with merging lib/Controller/DocumentController.php HOT 1
- After upgrading owncloud to 10.12.2 asking me for Enterprise license HOT 6
- v10.13.0.4 Some files have failed the integrity check: - ransomware_protection - FILE_MISSING - CHANGELOG.md
- [QA] federated sharing with new web UI fails HOT 2
- 'Office' view does not work any more with 4.0.0 HOT 8
- Upload button overlaps with document icon HOT 2
- [QA] german translation "Neue Kalkulationstabelle" overlaps with icon
- loading document exception: Access denied, 403 HOT 8
- Release richdocuments 4.1.0 HOT 3
- [QA] richdocuments 4.1.0 Testplan HOT 1
- Richdocuments complains about incorrect zotero api key HOT 8
- Zotero private key is exposed in the web UI HOT 4
- Release richdocuments 4.2.0 HOT 2
- Richdocuments 4.2.0 Testplan
- [QA] 4.2.0 Testplan HOT 3
- Clipboard access issue HOT 2
- Wrong redirection on Owncloud to open document HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from richdocuments.