server icon indicating copy to clipboard operation
server copied to clipboard

Shared folders/files icons not showing up instantly, need to reload the page

Open Beltran1337 opened this issue 3 years ago • 14 comments

Nextcloud version: 21.0.1 Latest Stable Operating system and version: Oracle Linux 7.9 Apache or nginx version: Apache 2.4.6 PHP version: 7.4

The issue you are facing: Every time I share a folder or a file (everything else works perfectly), the icon of the folder and the icons showing that the file/folder are not showing up when I finish sharing it. If I reload the page, they show up normally. Is this a background job that cron runs too? My cron is running every 5 minutes, configured according to the NC's best practices manual.

Before you say that refreshing the page isn't a big trouble: I have a nextcloud server, which will be in production soon integrated with my AD, containing more than 1300 users. I have knowledge that refreshing the page is a simple task and it is not a big trouble the need of having to do so. But the problem here, is for the lay users that will not understand if the files/folders were actually shared or not.

Is this the first time you've seen this error?: N

Steps to replicate it:

  1. Go to files;
  2. Try sharing a folder/file;
  3. If the icons doesn't appear, try refreshing the page.

Any suggestions will be very appreciated.

Thank you guys.

Beltran1337 avatar May 12 '21 17:05 Beltran1337

I tried to open this case inside help.nextcloud.com but did not received any help, so I'm trying github now...

Thank you guys!

Here's the link for the community forum: https://help.nextcloud.com/t/shared-folders-files-icons-not-showing-up-instantly-need-to-reload-the-page/113802

Beltran1337 avatar May 12 '21 17:05 Beltran1337

Same problem with NC 20.0.9.1 as managed Nextcloud (nginx) at hosting.de

Discostu36 avatar Jul 02 '21 20:07 Discostu36

Can you please send screenshots to clarify what you are describing in this issue? Thank you!

szaimen avatar Aug 08 '21 14:08 szaimen

  1. Go to a folder with a file in it grafik

  2. Click on the file and create a share link grafik

  3. Nothing has changed in the file list grafik

  4. Reload the page. Now the share status is shown grafik

The status should update immediately, not only after reload.

Now that I look at the screenshots, the same problem seems to exist for the file thumbnail in the list.

Discostu36 avatar Aug 10 '21 20:08 Discostu36

I am not sure if this was ever implemented so I interpret this as a feature request.

cc @nextcloud/server for input on this.

szaimen avatar Aug 11 '21 16:08 szaimen

Thank you very much @szaimen

At the time I created this ticket, I didn't realized that it was actually a feature request.

Thank you again, all the best!

Beltran1337 avatar Aug 11 '21 17:08 Beltran1337

this used to work, it probably broke when the sidebar panels got ported to Vue

the challenge is to have the Vue components trigger events to tell the filelist to refresh the share icons there used to be an event called "sharedChanged" in apps/files_sharing/src/share.js but I couldn't find quickly when it got removed

PVince81 avatar Aug 12 '21 05:08 PVince81

Calendar Nextcloud addon is using Vue now and calendar updates its icon in realtime when you click share. Maybe this can be replicated for Files as well. This should be bumped up on priority Anyhow I'm really hoping for a fix for the new Nextcloud 25 but we'll wait and see

johnnyq avatar Sep 02 '22 18:09 johnnyq

I'm really hoping this finally gets fixed for Nextcloud 26 but we'll see

johnnyq avatar Feb 10 '23 16:02 johnnyq

@johnnyq until the files app is done being rewritten, no it will not be fixed (not with 26 at least)

skjnldsv avatar Mar 15 '23 10:03 skjnldsv

I think this was fixed with https://github.com/nextcloud/server/pull/38259?

szaimen avatar Jun 15 '23 23:06 szaimen

@szaimen This is still not fixed i tried the latest 27.0 release

Steps to reproduce

  1. Share a folder
  2. Notice the folder doesn't update right away with a share icon
  3. Refresh page manually now the folder has a share icon next to it
  4. now un-share the folder notice the share icon does not go away
  5. refresh page share icon goes away

johnnyq avatar Jun 16 '23 01:06 johnnyq

Yeah the backport to stable27 is not merged yet: https://github.com/nextcloud/server/pull/38420

szaimen avatar Jun 16 '23 06:06 szaimen

@szaimen oh that is super fantastic!! Thanks for pointing that out, i'm looking forward to the next update for sure.

johnnyq avatar Jun 16 '23 20:06 johnnyq

I wanted to confirm with the latest 26.03 update the issue is fixed. I'm super Thankful to the Nextcloud team. Great Job!!

johnnyq avatar Jun 26 '23 16:06 johnnyq

Great! Thanks for verifying! :)

szaimen avatar Jun 26 '23 16:06 szaimen