Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15078

Defining one Anonymous User per siteaccess doesn't work well

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • Future
    • 4.0.6, 4.1.3
    • None

    Description

      I have two public siteaccesses A and B accessing to the same content tree.

      I need different rights for the Anonymous User for each siteaccess, so I created an Anonymous User B, and I changed the AnonymousUserID in the B siteaccess site.ini.append.php.

      When accessing each siteaccess at first visit, all is allright, each Anonymous User is correctly used.

      But when I go from the B siteaccess to the A siteaccess, I found myself explicitly connected as Anonymous User B. I gain access to the profile page, and I can also logout via the proper link. Of course the rights remains those of Anonymous User B instead of Anonymous User A.

      That's when I click "Logout" that the Anonymous User A rights become active. Again, if I go to B siteaccess from here, I found myself connected as Anonymous User A.

      So one can set the AnonymousUserID for each siteaccess, but as the user is not considered as Anonymous User in the other siteaccesses, it appears to be connected.

      There should be an array settings with all the Anonymous User ID, in order to switch automatically AnonymousUser when changing siteaccess.

      Steps to reproduce

      1. Create a second public siteaccess
      2. Create a second Anonymous User, named "Anonymous User B"
      3. Set the AnonymousUserID settings of the second siteaccess to the newly created User Object Id.
      4. Clear caches
      5. Go to first siteaccess, the link "Login" is present.
      6. Go to second siteaccess, the link "Logout" is present.
      7. Click "Logout"
      8. Go back to first siteaccess, the link "Logout" is present.

      Attachments

        Activity

          People

            unknown unknown
            hypolite hypolite
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: