Folder "Talk", only owns files, someone

Someone canā€™t open a file from a conversation.
At the same time, previews in conversations are working.
In the folder ā€œTalkā€ of these users only have their own files, there arenā€™t shared files.
In Firefox and Chrome wrong, the Android Talk app and WebDAV work well for these users.
Other accounts are alright - there are shared files in their folder Talk, in these same clients.

NextCloud ver 24.0.7 ā€“ docker
Update 2022-11-06, seems all was right after update.

Any special in the log I donā€™t see
ā€œDeprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is usedā€
But these messages for good and wrong users.

Hope somebody could help me.
Greetings Roman

it seems the same by me :
https://help.nextcloud.com/t/kein-zugriff-auf-in-talk-geteilten-dateien-rechte-problem-userabhangig/149548/12

TL;DR
Privileges on some files were lost. (granted implicit through conversation).

  • I ā€œimpersonateā€-ed some problem user,
  • tried open a file in conversation,
  • caught (detected) error ā€œhas no provider set, performing full setupā€ (log, level=0),
  • found the file and user,
  • then logged the user and gave the needed grant,
  • tried opening a file (in conversation, the first user) again and detect next error (file).

warning: when you open a file, check also old-old posts. I opened a file and become quiet (calm), but file in old posts didnā€™t open, same error.

Wrong (addition to previous notice):
I tried update
UPDATE oc_mounts SET mount_provider_class = 'OCA\Files_Sharing\MountProvider' ...
(https://github.com/nextcloud/server/issues/34752)
After that background (perhaps) job deleted the record from oc_mounts.
Of course, the file was not shared anymore so the record is a mistake. :-((

@trixi

can I help you?
Some details?
I think, my message isnā€™t so clear.
Feel free.

sorry, my english is very bad :slight_smile:
I do not quite understandā€¦ is the error supposed to go away after running this command?

UPDATE oc_mounts SET mount_provider_class = 'OCA\Files_Sharing\MountProvider' ...

Issue related? [Bug]: Missing shared files/directory in shared folder Ā· Issue #34976 Ā· nextcloud/server Ā· GitHub

sorry, my english is very bad

my English is a bit, too

do not quite understandā€¦ is the error supposed to go away after running this command?
UPDATE oc_mounts SET mount_provider_class = 'OCA\Files_Sharing\MountProvider' ...

Nein-No-Not-ŠŃ–
Someone recommend this way. I try to say that itā€™s wrong (bad)
You will lose information after that.

1 Like

Hi XueSheng-NC
I do not know exactly what you meanā€¦ I have try to apply the patch as this but I do not understand the output:

root@nextcloud-clone:/var/www/nextcloud/apps/files_sharing/lib/Controller# patch -p 1 < ~/34840.patch

canā€™t find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|From ff653f4d762b03bbb1c6ede5b450133748adac7a Mon Sep 17 00:00:00 2001
|From: Carl Schwan carl@carlschwan.eu
|Date: Mon, 10 Oct 2022 16:09:14 +0200
|Subject: [PATCH 1/3] Propagate attributes when resharing
|
|When updating a share, load the node from the initiator instead of the
|owner similar to how this is done when creating the share.
|

Signed-off-by: Carl Schwan carl@carlschwan.eu
ā€¦/lib/Controller/ShareAPIController.php
1 file changed, 20 insertions(+), 27 deletions(-)
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 66b3153f0995ā€¦8ceb6318637f 100644
ā€” a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php

File to patch:

Can you find
ā€œhas no provider set, performing full setupā€
in nextcloud.log

Please take that patch with care. As mentioned in the issue tracker: backup your data first!
Regarding the patching, you used the wrong path. In your case it should be:

# cd /var/www/nextcloud
# patch -p 1 < ~/34840.patch

i have try this bevore, but this give this errors:

root@nextcloud-clone:/var/www/nextcloud# patch -p 1 < ~/34840.patch
patching file apps/files_sharing/lib/Controller/ShareAPIController.php
Hunk #1 FAILED at 525.
Hunk #2 FAILED at 685.
Hunk #3 FAILED at 1104.
Hunk #4 FAILED at 1253.
Hunk #5 FAILED at 1902.
Hunk #6 FAILED at 1916.
6 out of 6 hunks FAILED ā€“ saving rejects to file apps/files_sharing/lib/Controller/ShareAPIController.php.rej
patching file apps/files_sharing/lib/Controller/ShareAPIController.php
Reversed (or previously applied) patch detected! Assume -R? [n]

The patch you are trying to apply is not matching your Nextcloud version!
Btw. whatā€™s this patch ā€œ34840ā€ about? This is not the one which I referred to!

ohā€¦ i am so sorry :smiling_face:
now i have try this patch out of your link: https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/35155.patch
ist this ok? ich bin verwirrt
my Version
Nextcloud Hub 3 (25.0.1)

running this patch brings this:
root@nextcloud-clone:/var/www/nextcloud# patch -p 1 < 35155.patch
patching file apps/files_sharing/lib/Controller/ShareAPIController.php
Hunk #1 succeeded at 537 with fuzz 1 (offset 12 lines).
Hunk #2 FAILED at 679.
Hunk #3 succeeded at 1112 (offset 13 lines).
Hunk #4 succeeded at 1263 (offset 15 lines).
Hunk #5 FAILED at 1897.
Hunk #6 succeeded at 1932 (offset 12 lines).
2 out of 6 hunks FAILED ā€“ saving rejects to file apps/files_sharing/lib/Controller/ShareAPIController.php.rej

Patch was done for NC24 as you can see at the pull description [stable24] Revert "Propagate attributes when resharing" by szaimen Ā· Pull Request #35155 Ā· nextcloud/server Ā· GitHub

You could try check the required changes for NC25 and modify the files accordingly (manually). Or you just wait until something is ready to test for NC25.

Just to make one thing clear: I donā€™t know whether this patch does solve your issue anyways! I did just mention this issue, because it might (!) be related.

okā€¦ thank you very much, i will wait then,
itā€™s just strange that this problem only occurs with my user account, all other users have this not

no, this entry does not exist

no, this entry does not exist

be sure that
ā€˜loglevelā€™ => 0,
in your config.php

and try reload wrong file

it was ā€œloglevel 2ā€
i changed it, tried to load the file again and now i have the entries:
{ā€œreqIdā€:ā€œGEbC9NP1Aq0BDmByQS8Yā€,ā€œlevelā€:0,ā€œtimeā€:ā€œ2022-11-15T11:44:03+00:00ā€,ā€œremoteAddrā€:ā€œxxx.xxx.xxx.70ā€,ā€œuserā€:ā€œtrixiā€,ā€œappā€:ā€œno app in contextā€,ā€œmethodā€:ā€œPROPFINDā€,ā€œurlā€:ā€œ/remote.php/dav/files/trixi/Talk/20221025_132720%20(2).pngā€,ā€œmessageā€:ā€œmount at /trixi/files/Talk/Bild11.png/ has no provider set, performing full setupā€,ā€œuserAgentā€:ā€œMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0ā€,ā€œversionā€:ā€œ25.0.1.1ā€,ā€œdataā€:}

Discussion around [Bug]: Shares missing in web when 'mount_provider_class' is empty Ā· Issue #34752 Ā· nextcloud/server Ā· GitHub seems to get more precise now. Thus I assume thereā€™ll be a fix or at least solid workaround soon.