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

Admin interface redirection to raw treemenu JSON output

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 2012.8, 5.0, 5.1, 5.2-dev
    • Labels:
      None
    • Environment:

      Description

      Clearing the cache from the cache toolbar or using various actions from the context menu results in the admin interface redirecting to a page like the following:

      http://www.mysite.com/site_admin/content/treemenu/91/1348803553/1348800169/d7aadf5cd2b9595ddf97801795ae22b8

      The page displays raw JSON output for the treemenu...

      Related forum topic:
      http://share.ez.no/forums/general/problem-with-admin-redirections

      This issue affects versions 2012-8, 2012-9 on both environments listed, others have reported this issue on 2012-6 but I cannot confirm that one.

      I'm running 2012-9 in legacy eZPublish 4 mode.

        Issue Links

          Activity

          Nathan Kelly created issue -
          Nathan Kelly made changes -
          Field Original Value New Value
          Description Clearing the cache from the cache toolbar or using various actions from the context menu results in the admin interface redirecting to a page like the following:

          http://www.mysite.com/site_admin/content/treemenu/91/1348803553/1348800169/d7aadf5cd2b9595ddf97801795ae22b8

          The page displays raw JSON output for the treemenu...

          Related forum topic:
          http://share.ez.no/forums/general/problem-with-admin-redirections

          This issue affects versions 2012-8, 2012-9 on both environments listed, others have reported this issue on 2012-6 but I cannot confirm that one.
          Clearing the cache from the cache toolbar or using various actions from the context menu results in the admin interface redirecting to a page like the following:

          http://www.mysite.com/site_admin/content/treemenu/91/1348803553/1348800169/d7aadf5cd2b9595ddf97801795ae22b8

          The page displays raw JSON output for the treemenu...

          Related forum topic:
          http://share.ez.no/forums/general/problem-with-admin-redirections

          This issue affects versions 2012-8, 2012-9 on both environments listed, others have reported this issue on 2012-6 but I cannot confirm that one.

          I'm running 2012-9 in legacy eZPublish 4 mode.
          Nathan Kelly made changes -
          Environment *Windows 7 WAMP Development Server*
          PHP: 5.3.4
          MySQL: 5.1.53
          Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8q PHP/5.3.4

          PHP Settings:
          Safe mode is off.
          Basedir restriction is off.
          Global variable registration is off.
          File uploading is enabled.
          Maximum size of post data (text and files) is 32M.
          Script memory limit is -1.
          Maximum execution time is 600 seconds.

          PHP Accelerator:
          APC 3.1.6

          Hardware:
          CPU: Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz 3492 MHz
          Memory: 16GB

          *CentOS 5.8 VPS Production Server*
          PHP: 5.3.3
          MySQL: 5.0.95
          Apache: 2.2.3

          PHP Settings:
          Safe mode is off.
          Basedir restriction is off.
          Global variable registration is off.
          File uploading is enabled.
          Maximum size of post data (text and files) is 8M.
          Script memory limit is 128M.
          Maximum execution time is 60 seconds.

          PHP Accelerator:
          eAccelerator 0.9.6.1

          Hardware:
          CPU: Intel(R) Xeon(R) CPU E31270 @ 3.40GHz 3400.164 MHz
          Memory: 4GB
          Browser: any

          *Windows 7 WAMP Development Server*
          PHP: 5.3.4
          MySQL: 5.1.53
          Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8q PHP/5.3.4

          PHP Settings:
          Safe mode is off.
          Basedir restriction is off.
          Global variable registration is off.
          File uploading is enabled.
          Maximum size of post data (text and files) is 32M.
          Script memory limit is -1.
          Maximum execution time is 600 seconds.

          PHP Accelerator:
          APC 3.1.6

          Hardware:
          CPU: Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz 3492 MHz
          Memory: 16GB

          *CentOS 5.8 VPS Production Server*
          PHP: 5.3.3
          MySQL: 5.0.95
          Apache: 2.2.3

          PHP Settings:
          Safe mode is off.
          Basedir restriction is off.
          Global variable registration is off.
          File uploading is enabled.
          Maximum size of post data (text and files) is 8M.
          Script memory limit is 128M.
          Maximum execution time is 60 seconds.

          PHP Accelerator:
          eAccelerator 0.9.6.1

          Hardware:
          CPU: Intel(R) Xeon(R) CPU E31270 @ 3.40GHz 3400.164 MHz
          Memory: 4GB
          Nathan Kelly made changes -
          Priority Critical [ 2 ] High [ 3 ]
          Hide
          Mavko Žmak - Žmale added a comment -

          I can confirm this behaviour. It happens both ons 2012.08 and 2012.08. Also, take a look on my comment to all this:

          http://share.ez.no/forums/general/problem-with-admin-redirections/comment77949

          Show
          Mavko Žmak - Žmale added a comment - I can confirm this behaviour. It happens both ons 2012.08 and 2012.08. Also, take a look on my comment to all this: http://share.ez.no/forums/general/problem-with-admin-redirections/comment77949
          André Rømcke made changes -
          Link This issue duplicates EZP-19841 [ EZP-19841 ]
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Confirmed, but only by commenting the treemenu rewrite rule:

                  RewriteEngine On
                  # Commenting the following line triggers the problem.
                  #RewriteRule ^/([^/]+/)?content/treemenu.* /index_treemenu\.php [L]
                  RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* - [L]
                  RewriteRule ^/var/([^/]+/)?cache/(texttoimage|public)/.* - [L]

          Show
          Jérôme Vieilledent (Inactive) added a comment - Confirmed, but only by commenting the treemenu rewrite rule: RewriteEngine On # Commenting the following line triggers the problem. #RewriteRule ^/([^/]+/)?content/treemenu.* /index_treemenu\.php [L] RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* - [L] RewriteRule ^/var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
          Jérôme Vieilledent (Inactive) made changes -
          Status Open [ 1 ] Backlog [ 10000 ]
          Show
          Jérôme Vieilledent (Inactive) added a comment - On review: https://github.com/ezsystems/ezpublish/pull/484
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master, https://github.com/ezsystems/ezpublish/commit/80c299ff5a10b3c39ed35e676d9214da46993e75
          Jérôme Vieilledent (Inactive) made changes -
          Assignee Jerome Vieilledent [ jerome.vieilledent@ez.no ]
          Status Backlog [ 10000 ] Closed [ 6 ]
          Fix Version/s 5.0.0 [ 10300 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Community Workflow [ 34253 ] eZ Engineering Scrumban Workflow [ 48695 ]
          Joao Inacio (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Inacio (Inactive) made changes -
          Fix Version/s Customer request [ 11018 ]
          Joao Inacio (Inactive) made changes -
          Affects Version/s 5.1 [ 11280 ]
          Joao Inacio (Inactive) made changes -
          Status Reopened [ 4 ] Confirmed [ 10037 ]
          Jarosław Heba made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Jarosław Heba made changes -
          Rank Ranked lower
          Jarosław Heba made changes -
          Rank Ranked lower
          Jarosław Heba made changes -
          Rank Ranked lower
          André Rømcke made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee André Rømcke [ andre.romcke@ez.no ]
          André Rømcke logged work - 15/Aug/13 7:34 PM
          Show
          André Rømcke added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/716
          André Rømcke made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 30 minutes [ 1800 ]
          Worklog Id 38035 [ 38035 ]
          André Rømcke made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          André Rømcke made changes -
          Fix Version/s 5.2-alpha1 [ 11281 ]
          Fix Version/s 5.0 [ 10300 ]
          André Rømcke made changes -
          Affects Version/s 5.0 [ 10300 ]
          Marcos Loureiro (Inactive) logged work - 19/Aug/13 10:14 AM - edited
          • Time Spent:
            5 hours, 45 minutes
             

            Attempting to get a "how to" for reproducing the issue

          Show
          André Rømcke added a comment - - edited Additional PR Merged in https://github.com/ezsystems/ezpublish-legacy/commit/12789f0d71b33eaf124083f2304e3d9be03ac4ca
          André Rømcke made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Affects Version/s 5.2-dev [ 12300 ]
          André Rømcke made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Fix Version/s 5.1 Maintenance [ 12301 ]
          Marcos Loureiro (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee André Rømcke [ andre.romcke@ez.no ] Marcos Loureiro [ marcos.loureiro@ez.no ]
          Marcos Loureiro (Inactive) made changes -
          Time Spent 30 minutes [ 1800 ] 6 hours, 15 minutes [ 22500 ]
          Worklog Id 38174 [ 38174 ]
          Marcos Loureiro (Inactive) made changes -
          Worklog Id 38174 [ 38174 ]
          Marcos Loureiro (Inactive) logged work - 21/Aug/13 10:12 AM - edited
          • Time Spent:
            2 hours, 15 minutes
             

            Attempting to reproduce

          Marcos Loureiro (Inactive) made changes -
          Time Spent 6 hours, 15 minutes [ 22500 ] 1 day, 30 minutes [ 30600 ]
          Worklog Id 38221 [ 38221 ]
          Marcos Loureiro (Inactive) made changes -
          Worklog Id 38221 [ 38221 ]
          Hide
          Marcos Loureiro (Inactive) added a comment - - edited

          @Team

          Could reproduce this once but, for some reason can't reproduce it anymore (not on 5.1 or master), with or without rewrite rule.
          ( when I was doing "Hide/Unhide" in a browser page and on the other the ajax call being refreshed, I could reproduce it only once on 5.1 )

          Re-made a clean installation (of both 5.1 and master)

          Then spread debug's all over file: <ezp-root>/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php

          And found that call's of the tree menu weren't creating ezpKernelWeb.

          Calls caught on firebug:

          GET http://52.cen.mcl/ezdemo_site_admin/content/tree...6665/1377166643/43b864bde60564a9abad0598b1d5d203
          200 OK
          GET http://52.cen.mcl/_wdt/12abdc
          200 OK
          GET http://52.cen.mcl/ezdemo_site_admin/ezjscore/cal...ubtree::2::25::0::priority::1::?ContentType=json
          200 OK
          

          However, calls on debug:

          > Call = /ezdemo_site_admin/content/hide/62
          > Call = /ezdemo_site_admin/
          > Call = /ezdemo_site_admin/ezjscore/call/ezjscnode::subtree::2::25::0::priority::1::
          

          So for some reason the call: /ezdemo_site_admin/content/treemenu/2/1377168001/1377166643/43b864bde60564a9abad0598b1d5d203
          is not creating the "ezpKernelWeb" ( since the debug call is on ezpKernelWeb::_construct() )

          Q: Anyone has any idea why this might be happening? Or how can this tricky issue be reproduce more easily?

          Show
          Marcos Loureiro (Inactive) added a comment - - edited @Team Could reproduce this once but, for some reason can't reproduce it anymore (not on 5.1 or master), with or without rewrite rule. ( when I was doing "Hide/Unhide" in a browser page and on the other the ajax call being refreshed, I could reproduce it only once on 5.1 ) Re-made a clean installation (of both 5.1 and master) Then spread debug's all over file: <ezp-root>/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php And found that call's of the tree menu weren't creating ezpKernelWeb. Calls caught on firebug : GET http://52.cen.mcl/ezdemo_site_admin/content/tree...6665/1377166643/43b864bde60564a9abad0598b1d5d203 200 OK GET http://52.cen.mcl/_wdt/12abdc 200 OK GET http://52.cen.mcl/ezdemo_site_admin/ezjscore/cal...ubtree::2::25::0::priority::1::?ContentType=json 200 OK However, calls on debug : > Call = /ezdemo_site_admin/content/hide/62 > Call = /ezdemo_site_admin/ > Call = /ezdemo_site_admin/ezjscore/call/ezjscnode::subtree::2::25::0::priority::1:: So for some reason the call: /ezdemo_site_admin/content/treemenu/2/1377168001/1377166643/43b864bde60564a9abad0598b1d5d203 is not creating the "ezpKernelWeb" ( since the debug call is on ezpKernelWeb::_construct() ) Q: Anyone has any idea why this might be happening? Or how can this tricky issue be reproduce more easily?
          Marcos Loureiro (Inactive) made changes -
          Time Spent 1 day, 30 minutes [ 30600 ] 1 day, 4 hours [ 43200 ]
          Worklog Id 38226 [ 38226 ]
          Marcos Loureiro (Inactive) logged work - 22/Aug/13 1:50 PM
          • Time Spent:
            3 hours, 30 minutes
             

            Attempting to reproduce
            Debugging
            Re-install 5.1 and 5.2 cleanly

          Pedro Resende (Inactive) made changes -
          Rank Ranked higher
          Marcos Loureiro (Inactive) made changes -
          Time Spent 1 day, 4 hours [ 43200 ] 1 day, 4 hours, 15 minutes [ 44100 ]
          Worklog Id 38316 [ 38316 ]
          Marcos Loureiro (Inactive) logged work - 23/Aug/13 6:56 PM
          • Time Spent:
            15 minutes
             

            Re-testing

          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved
          Marcos Loureiro (Inactive) made changes -
          Time Spent 1 day, 4 hours, 15 minutes [ 44100 ] 1 day, 7 hours [ 54000 ]
          Worklog Id 38350 [ 38350 ]
          Marcos Loureiro (Inactive) made changes -
          Assignee Marcos Loureiro [ marcos.loureiro@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Marcos Loureiro (Inactive) logged work - 26/Aug/13 4:03 PM
          • Time Spent:
            2 hours, 45 minutes
             

            Re-testing
            Designing test case

          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 48695 ] EZ* Development Workflow [ 83172 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 83172 ] EZEE Development Workflow [ 121752 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Backlog Backlog
          1d 16h 27m 1 jerome.vieilledent@ez.no 30/Oct/12 3:02 PM
          Backlog Backlog Closed Closed
          52m 55s 1 jerome.vieilledent@ez.no 30/Oct/12 3:55 PM
          Closed Closed Reopened Reopened
          287d 2h 44m 1 joao.inacio@ez.no 13/Aug/13 7:39 PM
          Reopened Reopened Confirmed Confirmed
          18s 1 joao.inacio@ez.no 13/Aug/13 7:39 PM
          Confirmed Confirmed InputQ InputQ
          1d 13h 58m 1 Jarosław Heba 15/Aug/13 9:38 AM
          InputQ InputQ Development Development
          7h 30m 1 André Rømcke 15/Aug/13 5:08 PM
          Development Development Development Review Development Review
          2h 26m 1 André Rømcke 15/Aug/13 7:34 PM
          Development Review Development Review Development Review done Development Review done
          3d 16h 12m 1 André Rømcke 19/Aug/13 11:46 AM
          Development Review done Development Review done Documentation Review done Documentation Review done
          4m 8s 1 André Rømcke 19/Aug/13 11:51 AM
          Documentation Review done Documentation Review done QA QA
          2h 47m 1 Marcos Loureiro (Inactive) 19/Aug/13 2:38 PM
          QA QA Closed Closed
          7d 26m 1 Marcos Loureiro (Inactive) 26/Aug/13 3:04 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Nathan Kelly
            • Votes:
              0 Vote for this issue
              Watchers:
              7 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, 7 hours
                1d 7h