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 share dialog infinite loading #5442

Merged
merged 2 commits into from
Feb 16, 2023
Merged

Fix share dialog infinite loading #5442

merged 2 commits into from
Feb 16, 2023

Conversation

claucambra
Copy link
Collaborator

@claucambra claucambra commented Feb 15, 2023

Restrictive file sharing defaults from the server can cause the client to assume the worst at the start, and then we don't try to reinitialise the share manager when we get more permissive sharing permissions from the server -- causing the infinite loop as sharing is allowed, but the manager is never initialised

Now we reinitialise the manager if we have received nice permissions on PROPFIND

Fixes #5411

@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Merging #5442 (89ebfca) into master (9bd5823) will increase coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5442      +/-   ##
==========================================
+ Coverage   57.79%   57.82%   +0.02%     
==========================================
  Files         141      141              
  Lines       18147    18147              
==========================================
+ Hits        10488    10493       +5     
+ Misses       7659     7654       -5     
Impacted Files Coverage Δ
src/libsync/propagatedownload.cpp 66.52% <0.00%> (+0.70%) ⬆️

@claucambra
Copy link
Collaborator Author

/backport to stable-3.7

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…ermissions that would have previously prevented sharing

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
@claucambra claucambra force-pushed the bugfix/fix-share-load branch from af0349c to 89ebfca Compare February 16, 2023 12:06
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

33.3% 33.3% Coverage
0.0% 0.0% Duplication

@Jerome-Herbinet
Copy link
Member

Hi @claucambra,

Thanks a lot for the work.

I have 2 questions for you :

  1. It may be a stupid question 😉, but, will your fix solve this problem for Windows 10/11 and OSX users as well ?
  2. I assume it will be merged to the next 3.7.4 release ; do you know when (approximately) ?

Best regards,
Jérôme

@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-5442-89ebfcae8e2a2dde19ff54ef15bd9e5100bac322-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@claucambra
Copy link
Collaborator Author

Hi @claucambra,

Thanks a lot for the work.

I have 2 questions for you :

1. It may be a stupid question 😉, but, will your fix solve this problem for Windows 10/11 and OSX users as well ?

2. I assume it will be merged to the next 3.7.4 release ; do you know when (approximately) ?

Best regards, Jérôme

Hi Jérôme, this fix applies to all platforms, so users on Windows and macOS will not encounter the issue on the next release.

As for the release date of 3.7.4, we do not yet know -- likely within the next couple of weeks.

@alepensato
Copy link

couple of weeks?????

@JohanBoshoffWebAware
Copy link

Wow, I noticed that 3.7.2 and 3.7.3 was released on the same date. With such a bug that is going on, I will assume there should be an update made available as a matter of urgency. The whole system is designed to share files and the basic feature is not available.

Please Nextcloud, release the new version today. My clients are shouting.

@claucambra
Copy link
Collaborator Author

claucambra commented Feb 17, 2023

@alepensato @JohanBoshoffWebAware we are actively working on bugfixes for other issues that need to be merged before we can release 3.7.4

In the meantime, a temporary solution would be to do any of:

A) Set more permissive share permissions by default on the server -- the bug is only present on servers where the default is to not allow resharing of shared files
B) Use a build of the client with the patch applied:

macOS: https://cloud.nextcloud.com/s/EdnRpDkqmeSFNKo
Linux: https://cloud.nextcloud.com/s/ZMbj4ZMJFxwJ9x3

Please note that these builds are not stable and you might encounter unforeseen bugs

@JohanBoshoffWebAware
Copy link

Thank you for the patch build. Please note that I changed the sharing settings to include Reshare, but with the current 3.7.3 client, the share dialogue box still only turns and nothing happens.

With the patch version installed, everything is working perfectly fine. Thank you.

@alepensato
Copy link

alepensato commented Feb 17, 2023

No changes with the patched version installed,
Cattura
version installed,

@claucambra
Copy link
Collaborator Author

No changes with the patched version installed, Cattura version installed,

I'll run a rebuilt of the windows client to double-check

@alepensato
Copy link

updates?

@JohanBoshoffWebAware
Copy link

The problem goes away on latest Nextcloud 25.03 using the normal client app. However, Nextcloud 25.03 has a huge bug that breaks custom theme which happened to me and I have to wait for a fix in the next update.

@alepensato
Copy link

mmmm I have Nextcloud 25.0.3 and latest desktop app, and the problem is alway present

@JohanBoshoffWebAware
Copy link

Do you have the setting on under Administration Settings under the Share tab for Default Share Permissions to allow reshare?

@alepensato
Copy link

No, users should not able to reshare a shared folder/file
Cattura

@JohanBoshoffWebAware
Copy link

All I did was enable the setting, save and disable the setting and it worked well for me.

@claucambra
Copy link
Collaborator Author

Daily windows build from 23/02 should now include the fix: https://download.nextcloud.com/desktop/daily/windows/windows-20230223.msi

@alepensato
Copy link

it does not works, always stay in loop

@claucambra
Copy link
Collaborator Author

it does not works, always stay in loop

okay; I will start a build from master, and if that one does not work either then let's investigate further

@alepensato
Copy link

These are my shared setting configured on the server and the log from the windows client

20230224_0219_nextcloud.log

Cattura

@claucambra
Copy link
Collaborator Author

These are my shared setting configured on the server and the log from the windows client

20230224_0219_nextcloud.log

Cattura

The relevant options are reshare (which I think is Ri-condividi, but my Italian is not great). Try these options:

Screenshot 2023-02-24 at 02 38 25

@alepensato
Copy link

No changes with this configuration
Cattura

@claucambra
Copy link
Collaborator Author

Have you

No changes with this configuration Cattura

Have you restarted the client since changing this setting?

@alepensato
Copy link

yes sure

@claucambra
Copy link
Collaborator Author

yes sure

Let's try this build as the final test:

https://cloud.nextcloud.com/s/LJ5d6faPN3ogsjx

If it still has infinite loading for you, then please attach the desktop client logs (either the full debug archive or, even better, logs around the time you try to open the share dialog)

@alepensato
Copy link

it still has infinite loading.
Can this log help you??
20230224_0317_nextcloud.log

@alepensato
Copy link

òòò.zip

@claucambra
Copy link
Collaborator Author

it still has infinite loading. Can this log help you?? 20230224_0317_nextcloud.log

Yes. You are getting infinite loading because your server has link shares disabled or not available. This is still a bug, but enabling link shares should work around the infinite loading

I will take a closer look at the code in the morning...

@mgallien mgallien added this to the 3.8.0 milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: 3.7.1 Fileshare dialogue stuck
7 participants