Skip to content

Page being a child of itself #4724

@nttfiles

Description

@nttfiles

This happened to us in our live environment. A page somehow became a child of itself.

To Reproduce

In reality this happened through use of the UI only, we just don't know how. However, I know how to manipulate the database to replicate the issue.

  1. Choose a page to manipulate. I'd recommend using one with type default-page.
  2. Change the page's path property. A normal path might look like this: "{home-page-id}/{page-id}",
    change this to "{home-page-id}/{page-id}/{page-id}"

Expected behavior

I don't really know, I guess the expected behaviour would be for this not to happen in the first place.

Describe the bug

After following the steps above, the page is now a child of itself.
This comes with some side effects:

  • The page does not show up in the page tree.
  • The page can not be saved, as it has a draft parent (itself), which has a draft parent (itself again), etc.

Details

Server Operating System:
Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-112-generic x86_64) with node:lts-alpine3.15 Docker image

Screenshots:
The message that pops up when trying to save this page:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions