Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Talk/ folder not working for attachments" #5076

Conversation

nickvergessen
Copy link
Member

So I'm pretty sure this is the fix.
Attachment folder worked 100% of the time I tested deck, which does everything exactly the same, but is already registered as "dav" because it uses the dav API of comments?
https://github.com/nextcloud/deck/blob/b0135a71ede5eb1d95d9aa9b1b6ceb458c8198ce/appinfo/info.xml#L25

After some logging and debugging I could confirm that in the broken cases the write was ALWAYS on a propfind from the desktop client and logging at:
https://github.com/nextcloud/server/blob/d89a75be0b01f0423a7c1ad2d58aac73c3cc1f3a/apps/files_sharing/lib/SharedMount.php#L119
Confirmed OC_App::isAppLoaded() is false for "spreed" and true for "deck". I uploaded 3 more files after changing this on c.nc.c and they all worked, even though the request was from the client.
So the problem was Talk didn't react on the event and change the path to Talk/, but was still invoked to update the share afterwards (which made me assume it should be working, but reality now proofed different) ¯\_(ツ)_/¯

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
Copy link
Member Author

/backport to stable21

@nickvergessen
Copy link
Member Author

/backport to stable20.1

@nickvergessen
Copy link
Member Author

/backport to stable20

@nickvergessen
Copy link
Member Author

/backport to stable19

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 makes sense, app types are needed to catch certain events.
This wouldn't be the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants