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

Characters appended to node view urls are used in view cache tree structure

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.7, 4.1.4, 4.2.0
    • Component/s: Caching
    • Labels:
      None
    • Environment:

      Tested in 4.0.0, 4.1.3, 4.2.0 and 4.3 trunk

      Description

      Given a URL like this: /content/view/full/(valid node id)(misc string)
      eZ Publish will display the page as if /content/view/full/(valid node id) had been accessed, but will store the view cache file based on the misc string.

      Steps to reproduce
      • Make sure you have read access to node 2
      • Access /content/view/full/2abcdefg
      • Confirm that node 2 is displayed normally (expected: should display a "no such node" error)
      • Confirm that var(/site_prefix)/cache/content/(siteaccess)/2/a/b/c/d/e/ is created, and the view cache is stored there as 2abcdefg-(md5 string).cache (expected: nothing should be created)
      1. issue-15970.diff
        0.3 kB
        Bertrand Dunogier

        Activity

        Hide
        Bertrand Dunogier added a comment -

        Fixed by casting the NodeID to an integer, exactly the way it's done for other nodes.

        Commited to:

        • trunk (eZ publish 4.3.0-alpha1) rev. 24764
        • stable/4.2 (eZ publish 4.2.1) rev. 24765
        • stable/4.1 (eZ publish 4.1.5) rev. 24766
        Show
        Bertrand Dunogier added a comment - Fixed by casting the NodeID to an integer, exactly the way it's done for other nodes. Commited to: trunk (eZ publish 4.3.0-alpha1) rev. 24764 stable/4.2 (eZ publish 4.2.1) rev. 24765 stable/4.1 (eZ publish 4.1.5) rev. 24766
        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            Bertrand Dunogier
            Reporter:
            (inactive) Gunnstein Lye
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: