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

actions can sometimes trigger an infinite redirect #3409

Open
6 tasks
jamesmacwilliam opened this issue Nov 12, 2024 · 2 comments
Open
6 tasks

actions can sometimes trigger an infinite redirect #3409

jamesmacwilliam opened this issue Nov 12, 2024 · 2 comments
Labels
Waiting on Reproduction Pending reproduction repository or detailed reproduction steps to proceed with issue resolution.

Comments

@jamesmacwilliam
Copy link

Describe the bug

Clicking an action without a confirmation page before the js loads triggers an infinite redirect that resubmits the action continuously

Steps to Reproduce

  • Given an avo action with self.no_confirmation = true
  • Given that I add the action to a resouce
  • right click the action and follow the link
  • expected result, the action succeeds and I am redirected back to the resource
  • actual result: I am stuck in an infinite loop
  • fix: specify an explicit redirect_to in the action
  • this can occur without right clicking if the js doesn't load on the page before I click the link

Expected behavior & Actual behavior

  • expected result, the action succeeds and I am redirected back to the resource
  • actual result: I am stuck in an infinite loop

System configuration

Avo version: 3.7.4

Rails version: 7.1.3

Ruby version: 3.2.2

License type:

  • Community
  • [x ] Pro
  • Advanced

Impact

  • High impact (It makes my app un-usable.)
  • [x ] Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • [ x] Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)
@Paul-Bob Paul-Bob added the Waiting on Reproduction Pending reproduction repository or detailed reproduction steps to proceed with issue resolution. label Nov 12, 2024
@Paul-Bob
Copy link
Contributor

Paul-Bob commented Nov 12, 2024

Hi @jamesmacwilliam thanks for reporting this. Unfortunately I wasn't able to reproduce it. Could you share the action code and a video on how to reproduce it?

PS: A minimal reproduction repository would be great, there are instructions here on how to get it done in minutes.

Copy link
Contributor

This issue has been marked as stale because there was no activity for the past 15 days.

@github-actions github-actions bot added Stale and removed Stale labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on Reproduction Pending reproduction repository or detailed reproduction steps to proceed with issue resolution.
Projects
Status: No status
Development

No branches or pull requests

2 participants