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

redirect loop on project delete #16138

Open
bmwiedemann opened this issue May 15, 2024 · 2 comments
Open

redirect loop on project delete #16138

bmwiedemann opened this issue May 15, 2024 · 2 comments
Labels
Bug Frontend Things related to the OBS RoR app

Comments

@bmwiedemann
Copy link
Member

I used osc rdelete -r -m drop home:bmwiedemann:branches:OBS:Server:Unstable to delete my branch and then refreshed a page I still had open in my browser:
https://build.opensuse.org/projects/home:bmwiedemann:branches:OBS:Server:Unstable/meta

This redirected to itself again. It does not do that when logged out.

obs-rdelete-loop

@bmwiedemann bmwiedemann added Bug Frontend Things related to the OBS RoR app labels May 15, 2024
@bmwiedemann
Copy link
Member Author

I noticed that the current code sends the browser to the previous page. And here I might have done a "save" in meta, so the previous page was the same.

@bmwiedemann
Copy link
Member Author

and here is a reproducer:

curl -s -I -H "Referer: https://build.opensuse.org/projects/home:bmwiedemann:branches:OBS:Server:Unstable/meta" https://build.opensuse.org/projects/home:bmwiedemann:branches:OBS:Server:Unstable/meta | grep location
location: https://build.opensuse.org/projects/home:bmwiedemann:branches:OBS:Server:Unstable/meta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frontend Things related to the OBS RoR app
Projects
None yet
Development

No branches or pull requests

1 participant