Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

When updating a resources for second+ time, clients with system time set few minutes in the past get the error: "Another user has updated this resource since this page was loaded. Please refresh the page and try again." #3203

Closed
geethubert292 opened this issue Jan 28, 2021 · 1 comment

Comments

@geethubert292
Copy link

geethubert292 commented Jan 28, 2021

  • Laravel Version: 8.25.0
  • Nova Version: 3.20.0
  • PHP Version: 7.4.9
  • Browser type and version: Chrome, Firefox

Detailed steps to reproduce the issue on a fresh Nova installation:

Important: wouldn't work if server is on same computer with client, as the time is same

  1. Set system time 5 minutes in the past
  2. Update same resource several times in the row
  3. You basically can update same resource once each 5 minutes?!

Having the system time set in the past doesn't seem to have any practical use, but there are users like that for some reason, and the text of the error doesn't help figuring out the cause of the problem for them.

@crynobone
Copy link
Member

Laravel Nova implements Traffic Cop feature to prevents a user from modifying a resource that has been updated by another user, the updated_at field is used to identify if the resource has been modified.

If you have to use Nova with the above setup please disable Traffic Cop. See https://nova.laravel.com/docs/3.0/resources/#disabling-traffic-cop

@laravel laravel locked and limited conversation to collaborators Jan 29, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants