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

REST api controller does not identify siteaccess correctly in non vhost mode

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2011.9, 4.6.0-dev
    • None

    Description

      The problem seems to come from a simple oneliner: in index_rest.php, line 20:

      eZSys::init( 'index.php', $ini->variable( 'SiteAccessSettings', 'ForceVirtualHost' ) == 'true' );

      should be

      eZSys::init( 'index_rest.php', $ini->variable( 'SiteAccessSettings', 'ForceVirtualHost' ) == 'true' );

      After doing this change, accessing an url like the following:

      http://localhost/ezp/installs/ezpublish-4.5.0-ent/index_rest.php/admin_site/api/ezp
      /1/content/nodes/2

      seems to be working with the admin_site siteaccess activated (eg. the cookie name used for the session changes)

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: