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

DebugByUser is not working correctly in preview

    Details

      Description

      Steps to reproduce:

      1. Enable DebugByUser by user in site.ini (e.g. settings/override/site.ini.append.php):

      [DebugSettings]
      DebugOutput=enabled
      DebugRedirection=disabled
      AlwaysLog[]
      AlwaysLog[]=error
      ScriptDebugOutput=enabled
      DebugByUser=enabled
      DebugUserIDList[]=14
      

      2. Login as another user (e.g. editor) to the admin siteaccess - any user will do as long as it's one that has not an object ID of 14;
      3. Edit for example the media folder => version 2;
      4. Press preview button in the left menu - you will see the preview with debug output, which is not supposed to happen.

      Note: I used an user with object ID of 14, which in my installation happens to be my main admin user. Please adapt this to your own test environment.

        Issue Links

          Activity

          Show
          Yannick Roger (Inactive) added a comment - https://github.com/ezsystems/ezpublish-legacy/pull/689
          Hide
          Yannick Roger (Inactive) added a comment - - edited

          Fixed in :
          Master : https://github.com/ezsystems/ezpublish-legacy/commit/7a65c4ae4ba0c5d81fa722fc0d97e7c463c7d334

          Make sure to apply patches from the linked issue.

          Show
          Yannick Roger (Inactive) added a comment - - edited Fixed in : Master : https://github.com/ezsystems/ezpublish-legacy/commit/7a65c4ae4ba0c5d81fa722fc0d97e7c463c7d334 Make sure to apply patches from the linked issue.
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours
                1d 3h