This project is archived and is in readonly mode.
[PATCH] ActionController::Integration::Session#get does not set HTTP_REFERER
-
CancelProfileIsBroken
- Tag changed from headers, integration_test, session to bugmash, headers, integration_test, session
-
Elomar França
- Tag changed from bugmash, headers, integration_test, session to bugmash, headers, integration_test, patch, session
- Title changed from ActionController::Integration::Session#get does not set HTTP_REFERER to [PATCH] ActionController::Integration::Session#get does not set HTTP_REFERER
- IMO, this is the right way to simulate the user behavior.
I've attached a tiny little patch.
-
Elomar França
Forgot to mention, patch applies only on 2-3-stable. I could not get it working on master yet.
-
David Trasbo
+1
I definitely also think Rails should try to simulate browser behaviour in integration tests.
verified
The patch applies cleanly to 2-3-stable and the test is passing.
-
sr.iniv.t
+1 verified. +1 for the idea too.
Patch applies cleanly on 2-3-stable and all tests pass.
-
Elomar França
I've attached a patch that applies on master.
-
Gaius Centus Novus
+1 & verified for the 2-3-stable patch
-
Jarl Friis
Even though the tittle only mentions the get method, the problem should also be fixed on put and post methods, I haven't investigated the patch to see if it also fixes the problem for those methods. Elomar, can you tell?
Jarl
-
Elomar França
Jarl,
Yes, it fixes this problem for any method.
-
Rizwan Reza
- Tag changed from bugmash, headers, integration_test, patch, session to headers, integration_test, patch, session
-
Santiago Pastorino
- State changed from new to open
- Importance changed from to
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
