I've tried EVERY setting change I can think of but CANNOT GET BAKERY TO WORK - either 6.x-2.0-alpha1 or the 6.x-2-dev version. (I'm testing on Acquia Dev Desktop stack before I lock myself out of my production site. I have localhost:8082 & a subsite libdev2.localhost:8082.) I followed the directions exactly (from http://drupal.org/node/1113208), paying attention to adding the slash, as required, at the end of the site urls
- I cannot sign in to subsite libdev2. I CAN sign into the localhost:8082 site normally
- when I try to sign to subsite libdev2 I get redirected to a signin form page at http://localhost:8082/bakery/login
- when I try to login at this page - http://localhost:8082/bakery/login with an acct I know works on both localhost:8082 & libdev2.localhost:8082, I get redirected AGAIN to http://localhost:8082/bakery/login with the "Access Denied"
message
- if I login to localhost:8082 from http://localhost:8082/?q=user with the same user acct info, I have no problem getting into localhost:8082
- if I try to login to libdev2.localhost:8082 from http://libdev2.localhost:8082/?q=user with the same user acct, either already being logged into localhost:8082 or not, I cannot get in. I'm locked out of my site until I use drush to disable the bakery module. Then I can get in again.
I've tried adjusting the underlying setting.php files for the default site & the libdev2 site many times/many ways - changing the $base_url, the $cookie_domain every way I can think of, including commenting out these lines. This is what I get in the dblog for localhost:8082 after having tried to login from libdev2.localhost:8082
Type access denied
Date Sunday, November 6, 2011 - 09:33
User Anonymous
Location http://localhost:8082/bakery/login
Referrer http://localhost:8082/bakery/login
Message bakery/login
Severity warning
Hostname 127.0.0.1
Comments
Comment #1
coltraneI've occasionally seen this, and I don't yet know why it happens, it's hard to reproduce and debug.
If you specifically hit http://localhost:8082/logout and then try again, does it work? Also, you should be using the dev release on all of your sites, or the alpha release, but not dev on one and alpha on the other.
Comment #2
sclapp commentedStill no luck.
But I think that this is the issue - http://stackoverflow.com/questions/390219/why-wont-asp-net-create-cookie... (even though it's not drupal-specific, it seems to demonstrate the problem with cookies on localhost:
"The cookie specs require two names and a dot between, so your cookiedomain cannot be "localhost". "
Now, how do I handle that with the acquia-dev desktop w/o destroying my existing sites? there's got to be some sort of aliasing/virtual host setup/something I can do with apache to make a .localhost.com or something like that...
Comment #3
coltraneLeaving this as a support request about localhost use with Bakery.
403 on bakery/login issue being moved to #570018: Auto rebake cookies if logged-in on master
Comment #4
coltraneRetitling to be about explicit testing on localhost as a domain
Comment #5
nishruu commentedI confirm the problem and the solution given in #2.
Even though it's not a bakery specific problem, I think it would be useful to add a short notice about it in the documentation. A lot of people may run into this problem.
Comment #6
coltraneI've made note of this issue on https://drupal.org/node/1906906