Skip to content

Conversation

@icewind1991
Copy link
Member

To test:

  • have the gallery app enabled
  • be logged out
  • goto http://example.com/login?redirect_url=/owncloud/apps/files
  • wait 10+ sec

The gallery app will see apps/files in the url, think it's in the files app and serve it's script.
The gallery scripts will try to load the config trough an ajax call, the ajax call will fail since the user is logged out, the 401 error will be detected and a reload will be scheduled.
This keeps repeating itself over and over again.

Note that this could be fixed in the gallery app (although not trivially since it needs to load it scripts on non logged in public shares) but preventing apps from ever triggering this case seems useful.

This bug is brought to you by running master in production and having parents who can't type in their passwords within 5 seconds.

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Dec 1, 2016
@icewind1991 icewind1991 added this to the Nextcloud 11.0 milestone Dec 1, 2016
@mention-bot
Copy link

@icewind1991, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ChristophWurst, @LukasReschke and @nickvergessen to be potential reviewers.

@rullzer
Copy link
Member

rullzer commented Dec 2, 2016

You need to fix the js tests :)

@nickvergessen
Copy link
Member

I agree with this fix, but I think the gallery app should be adjusted to be less aggressive as well. Will have a look.

👍

@MorrisJobke
Copy link
Member

Tested and works 👍

Signed-off-by: Robin Appelman <robin@icewind.nl>
@nickvergessen nickvergessen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 2, 2016
@icewind1991 icewind1991 merged commit bc597b1 into master Dec 2, 2016
@icewind1991 icewind1991 deleted the errorreload-login branch December 2, 2016 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants