Closed (fixed)
Project:
Bakery Single Sign-On System
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2012 at 12:09 UTC
Updated:
27 Feb 2013 at 18:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
tunicPatches attached. Moves detection destination param code to a function and uses it according mentioned issue.
Comment #2
coltraneD6 needs $_REQUEST['destination'] unset
Comment #3
coltraneThese patches can now be tested with Bakery-Chef (https://github.com/bjeavons/Bakery-Chef) BDD tests. I've confirmed they work but will leave open for some further review.
Comment #4
neclimdulExtra space?
Unrelated to saving in the data arguement? Shouldn't this be up to the drupal_goto() call to handle?
More extra space
We added the unset but then aren't removing the previous unset. The D7 patch does remove it so maybe this was an oversight.
We can see its doing something to the destination but what does that mean? The documentation is too vague. Also, extra space after the code block.
This is a change. Its going to the frontpage now if destination isn't set for some reason.
So a little more general then just looking at the code, I'd suggest we create a bakery_goto() that wrapper that wraps the loading of the redirect from the saved value. Untested but maybe something like:
then we can call it like
bakery_goto($cookie['data'], '<front>')and have all the logic in one place.Comment #5
coltraneThanks for the review @neclimdul! You're right in catching that the redirection back to /user/register was lost.
Here's an update with more comments and those cleanups. I think bakery_goto() is an unnecessary abstraction so didn't go with that approach.
A alpha4 release of Bakery is pending so I may commit this without waiting long for more review.
Comment #6
neclimdulI haven't looked at this code in a while but this looks like it addressed all my concerns and it was all trivial stuff. +1
Comment #7
coltranehttp://drupalcode.org/project/bakery.git/commit/c01b6aa and http://drupalcode.org/project/bakery.git/commit/7db0092