Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I ran into an issue where someone on my team was trying to create a subspace using a blueprint whose "space to clone" was the parent space, i.e. trying to clone the space into itself. Unsurprisingly, this didn't go well. At best, it led to a 502 error, at worst it created a nested string of spaces 100+ deep. (How the latter happened, I have no idea, I couldn't replicate that).
Obviously, people shouldn't really be doing this anyway, but better for thing not to break if they do. The patch below adds a check to avoid recursion in this scenario.
Comment | File | Size | Author |
---|---|---|---|
#2 | oa_clone-infinite-loop-2718857-2.patch | 750 bytes | JeffM2001 |
Comments
Comment #2
JeffM2001 CreditAttribution: JeffM2001 commentedComment #3
mpotter CreditAttribution: mpotter at Phase2 commentedCommitted to f6e1afc in oa_clone