server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Infinite loading on file after logout in other tab

Open come-nc opened this issue 2 years ago • 2 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a bug, not a question or a configuration/webserver/proxy issue.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • [X] Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • [X] I agree to follow Nextcloud's Code of Conduct.

Bug description

When logging out on a tab with another tab opened on files application, clicking a file in the second tab will show an infinite loader.

Steps to reproduce

  1. Log in Nextcloud
  2. Open 2 tab with files application
  3. Log out on one of them
  4. Click a file on the other one

Expected behavior

Getting redirected to the login page, same as clicking a folder.

Installation method

None

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [ ] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

Enabled:
  - activity: 2.18.0
  - circles: 26.0.0-alpha.0
  - cloud_federation_api: 1.9.0
  - comments: 1.16.0
  - contactsinteraction: 1.7.0
  - dashboard: 7.6.0
  - dav: 1.25.0
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_pdfviewer: 2.7.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - firstrunwizard: 2.15.0
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - nextcloud_announcements: 1.15.0
  - notifications: 2.14.0
  - oauth2: 1.14.0
  - photos: 2.1.0
  - privacy: 1.10.0
  - provisioning_api: 1.16.0
  - recommendations: 1.5.0
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - support: 1.9.0
  - survey_client: 1.14.0
  - systemtags: 1.16.0
  - text: 3.7.0
  - theming: 2.1.1
  - twofactor_backupcodes: 1.15.0
  - updatenotification: 1.16.0
  - user_ldap: 1.16.0
  - user_status: 1.6.0
  - viewer: 1.10.0
  - weather_status: 1.6.0
  - workflowengine: 2.8.0
Disabled:
  - admin_audit: 1.16.0
  - encryption: 2.14.0
  - files_external: 1.18.0
  - files_videoplayer: 1.15.0
  - password_policy: 1.16.0 (installed 1.16.0)
  - testing: 1.16.0
  - user_migration: 1.0.3
  - workflow_kitinerary: 1.0.3

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

come-nc avatar Feb 02 '23 14:02 come-nc

Which nc version?

szaimen avatar Feb 02 '23 14:02 szaimen

24 and master

come-nc avatar Feb 02 '23 14:02 come-nc

Reproduced though with a change in behavior in master today:

NC27: Exactly as described Master: Pops up browser's basic auth dialog box

After authentication in the basic auth dialog box the file doesn't open/load, instead if triggers a download immediately.

localhost:443 172.17.0.1 - - [30/Aug/2023:11:49:27 +0000] "GET /index.php/logout?requesttoken=C%2FIxw4L3c27RtjrhRkz8rIQ9C1teg6YpNvrvMurr064%3D%3AQpZdhMGVPj%2BpzGO3K2fE6%2FdoO24m6Z96YY%2B4fd2YpMo%3D HTTP/1.1" 303 4638 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:49:27 +0000] "GET /index.php/login?clear=1 HTTP/1.1" 303 1079 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:49:27 +0000] "GET /index.php/login?clear=1 HTTP/1.1" 200 5867 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:49:30 +0000] "GET /remote.php/dav/files/admin/welcome.txt HTTP/1.1" 401 10635 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - admin [30/Aug/2023:11:49:40 +0000] "GET /remote.php/dav/files/admin/welcome.txt HTTP/1.1" 200 4191 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"

joshtrichards avatar Aug 30 '23 11:08 joshtrichards

Update which might be a clue - I was then auto logged out in that window that got the basic auth dialog exactly 5 minutes later (continuation of above):

localhost:443 172.17.0.1 - - [30/Aug/2023:11:50:19 +0000] "GET /index.php/apps/files/api/v1/stats HTTP/1.1" 401 4894 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:51:19 +0000] "GET /index.php/apps/files/api/v1/stats HTTP/1.1" 401 3771 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:52:19 +0000] "GET /index.php/apps/files/api/v1/stats HTTP/1.1" 401 3672 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:53:19 +0000] "GET /index.php/apps/files/api/v1/stats HTTP/1.1" 401 3672 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:54:19 +0000] "GET /index.php/apps/files/api/v1/stats HTTP/1.1" 401 3672 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:54:19 +0000] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 401 941 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:54:29 +0000] "GET /index.php/apps/files/api/v1/stats?dir=%2F HTTP/1.1" 401 3672 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:54:35 +0000] "GET /index.php/apps/files/ HTTP/1.1" 303 3682 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
localhost:443 172.17.0.1 - - [30/Aug/2023:11:54:35 +0000] "GET /index.php/login?redirect_url=/index.php/apps/files/ HTTP/1.1" 200 5896 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"

joshtrichards avatar Aug 30 '23 11:08 joshtrichards