Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page being a child of itself #4724

Open
Pixelguymm opened this issue Sep 11, 2024 · 5 comments
Open

Page being a child of itself #4724

Pixelguymm opened this issue Sep 11, 2024 · 5 comments
Labels

Comments

@Pixelguymm
Copy link

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

@Pixelguymm Pixelguymm added the bug label Sep 11, 2024
@boutell
Copy link
Member

boutell commented Sep 11, 2024

Thanks for reporting this. This is, obviously, not a good outcome! However we don't yet have a path to reproduce it.

Let me know if you get any inkling of how it might happen again / see it again / spot something in the clouds.

@Pixelguymm
Copy link
Author

Unfortunately this was triggered by our editor as far as I know, so how it happens through the UI is a mistery to me. Though, by manipulating the database as described above, you can at least observe the effects. I'll be sure to let you know if this happens again, and what triggered it if we are able to find out.

@boutell
Copy link
Member

boutell commented Sep 12, 2024 via email

@boutell
Copy link
Member

boutell commented Sep 12, 2024 via email

@boutell
Copy link
Member

boutell commented Sep 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants