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

"swap node" function can swap container and non-container nodes (invalid state)

    Details

      Description

      The 'Swap with another node' function in the administration interface swaps two nodes (not subtrees).

      When one of the objects (A) is a container, with children, and the other (B) is not, the result will be an incoherent state:
      B will display a children count such as " Sub items ", but instead of the children will show the message "The <ClassName> class is not configured to contain any sub items."

      Steps to reproduce:
      • Create or modify a class, and uncheck the "Container" checkbox.
      • Create a new object of this type (NodeA)
      • Create a Folder object (NodeB), and add at least one child node to it.
      • Swap NodeA with NodeB using the node's cogwheel > Advanced > Swap with another node.

      Verify that NodeA should not have any children (not container) but does display a Sub Item count.

      Note:

      Its possible the same issue may be triggered from a script, for example; in which case the solution should ideally contemplate it as well.

        Activity

        Joao Inacio (Inactive) created issue -
        Joao Inacio (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        Paulo Lopes (Inactive) made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        Joao Inacio (Inactive) made changes -
        Description The 'Swap with another node' function in the administration interface swaps two nodes (not subtrees).

        When one of the objects (A) is a container, with children, and the other (B) is not, the result will be an incoherent state:
        B will display a children count such as " Sub items (n)", but instead of the children will show the message "The <ClassName> class is not configured to contain any sub items."

        h5. Steps to reproduce:
        * Create or modify a class, and uncheck the "Container" checkbox.
        * Create a new object of this type (NodeA)
        * Create a Folder object (NodeB), and add at least one child node to it.
        * Swap NodeA with NodeB using the node's cogwheel > Advanced > Swap with another node.

        Verify that NodeA should not have any children (not container) but does display a Sub Item count.
        The 'Swap with another node' function in the administration interface swaps two nodes (not subtrees).

        When one of the objects (A) is a container, with children, and the other (B) is not, the result will be an incoherent state:
        B will display a children count such as " Sub items (n)", but instead of the children will show the message "The <ClassName> class is not configured to contain any sub items."

        h5. Steps to reproduce:
        * Create or modify a class, and uncheck the "Container" checkbox.
        * Create a new object of this type (NodeA)
        * Create a Folder object (NodeB), and add at least one child node to it.
        * Swap NodeA with NodeB using the node's cogwheel > Advanced > Swap with another node.

        Verify that NodeA should not have any children (not container) but does display a Sub Item count.

        h5. Note:
        Its possible the same issue may be triggered from a script, for example; in which case the solution should ideally contemplate it as well.
        Gunnstein Lye made changes -
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Gunnstein Lye made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Gunnstein Lye made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 2 hours [ 7200 ]
        Worklog Id 49513 [ 49513 ]
        Gunnstein Lye made changes -
        Gunnstein Lye made changes -
        Time Spent 2 hours [ 7200 ] 1 day [ 28800 ]
        Worklog Id 49520 [ 49520 ]
        Gunnstein Lye made changes -
        Status Development [ 3 ] Development review [ 10006 ]
        Gunnstein Lye made changes -
        Time Spent 1 day [ 28800 ] 1 day, 1 hour [ 32400 ]
        Worklog Id 49525 [ 49525 ]
        Gunnstein Lye made changes -
        Gunnstein Lye made changes -
        Time Spent 1 day, 1 hour [ 32400 ] 1 day, 2 hours [ 36000 ]
        Worklog Id 49547 [ 49547 ]
        Gunnstein Lye made changes -
        Status Development review [ 10006 ] Development Review done [ 10028 ]
        Gunnstein Lye made changes -
        Time Spent 1 day, 2 hours [ 36000 ] 1 day, 3 hours [ 39600 ]
        Worklog Id 49576 [ 49576 ]
        Gunnstein Lye made changes -
        Time Spent 1 day, 3 hours [ 39600 ] 1 day, 3 hours, 30 minutes [ 41400 ]
        Worklog Id 49583 [ 49583 ]
        Gunnstein Lye made changes -
        Status Development Review done [ 10028 ] Documentation done [ 10011 ]
        Fix Version/s 4.7 Maintenance [ 12583 ]
        Fix Version/s 5.0 Maintenance [ 11287 ]
        Fix Version/s 5.1 Maintenance [ 12301 ]
        Fix Version/s 5.2 Maintenance [ 12782 ]
        Fix Version/s 5.3.3 [ 13484 ]
        Gunnstein Lye made changes -
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Paulo Nunes (Inactive) made changes -
        Status Documentation done [ 10011 ] QA [ 10008 ]
        Assignee Paulo Nunes [ paulo.nunes@ez.no ]
        Paulo Nunes (Inactive) made changes -
        Flagged Impediment [ 10000 ]
        Gunnstein Lye made changes -
        Time Spent 1 day, 3 hours, 30 minutes [ 41400 ] 1 day, 4 hours [ 43200 ]
        Worklog Id 49583 [ 49583 ]
        Paulo Nunes (Inactive) made changes -
        Flagged Impediment [ 10000 ]
        Paulo Nunes (Inactive) made changes -
        Assignee Paulo Nunes [ paulo.nunes@ez.no ]
        Status QA [ 10008 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 63959 ] EZ* Development Workflow [ 85230 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 85230 ] EZEE Development Workflow [ 124026 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Joao Inacio (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, 4 hours
              1d 4h