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

[Bug]: Virtual files - Status icons from shortcuts don't get updated #5825

Closed
6 of 8 tasks
ottsimon opened this issue Jun 20, 2023 · 9 comments · Fixed by #5853
Closed
6 of 8 tasks

[Bug]: Virtual files - Status icons from shortcuts don't get updated #5825

ottsimon opened this issue Jun 20, 2023 · 9 comments · Fixed by #5853

Comments

@ottsimon
Copy link

⚠️ Before submitting, please verify the following: ⚠️

Bug description

The status icon of shortcuts and .lnk files (also shortcuts) always shows "sync in progress". The synchronization itself works without any problems. It also doesn't matter if the shortcuts are synced to the server or from the server. The problem only occurs when virtual files are enabled.

The same happens to files on the exclude list.

Steps to reproduce

  1. Setup Nextcloud with virtual files
  2. Put some shortcuts or .lnk-files in the local folder
  3. The files get synced, but the icons stay at "sync in progress"

Expected behavior

The file should get a green tick or cloud icon.

Which files are affected by this bug

Neues Textdokument.txt - Verknüpfung

Operating system

Windows

Which version of the operating system you are running.

Windows 10 Enterprise

Package

Other

Nextcloud Server version

26.0.2

Nextcloud Desktop Client version

3.9.0

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

there are no related errors on the server

Additional info

lnk

Debug archive

@PhilippSchlesinger
Copy link

See corresponding issues #5594 and #5524.
There is also a pull request (#5853) that may close these issues.

@m7913d
Copy link
Contributor

m7913d commented Jul 9, 2023

Duplicate of #5594

@PhilippSchlesinger
Copy link

With nextcloud client release 3.9.1 this doesn't seem to work:

grafik

I would expect no syncing icon as for other excluded files.

@m7913d
Copy link
Contributor

m7913d commented Jul 26, 2023

Does it work if you add a new link file?

@ottsimon
Copy link
Author

It works for me with new files. Links and ignored files don't have a status icon now.
However, existing files are not updated.

But the problem is another one: The links do get synced, so I think a cloud or green tick icon should be the right one.

Screenshot

@PhilippSchlesinger
Copy link

@DerFranke I can confirm what you describe.

Additionally, it shows 'excluded' in file details dialog for a new link, which seems wrong as that file is synchronised:
grafik

There is no way for existing links to stop them showing the syncing icon. Cycling 'always keep on this device' and 'free up space' also does not work.

@PhilippSchlesinger
Copy link

There is no way for existing links to stop them showing the syncing icon. Cycling 'always keep on this device' and 'free up space' also does not work.

I have to correct that. Existing link files get updated if the link target is valid.
Link files with invalid targed show the syncing icon forever.

@m7913d
Copy link
Contributor

m7913d commented Jul 27, 2023

For now, we are indeed considering link files as excluded files concerning the virtual file system, as link files are currently synced as regular files (just as would be done if the virtual file system is not used) due to limitations of an internally used library (qt5). After upgrading this library we could sync them using the virtual file system and show the correct sync state. I'm not aware of the timeline of this upgrade as I'm not affiliated to Nextcloud.

In the meantime, I think it is better to show no sync icon (=excluded state), as a syncing icon also affects the reported syncing state of the parent folders. This is implemented in my PR and merged in release 3.9.1.

@mgallien Maybe we should reopen this issue, until we have fully fixed the issue:

  • show synced (green tick/cloud icon) icon when appropriate
  • correctly handle old/invalid links.
    Sorry that I marked it as closed in my PR.

@PhilippSchlesinger
Copy link

@m7913d thank you for your great work on all those syncing issues, this improves the reliability of nextcloud client a lot!

There seems to be much activity in #4584 recently, so hopefully it will be possible to handle links consistently via vfs.

Nextcloud client still states that symbolic links are not synced (marked green), which does not seem to be true any more.
grafik

It will be a good improvement to handle stale/invalid links correctly and show that in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants