Steps to reproduce on fresh installation:
1 Enable Panelizer module
2 Proceed to /admin/structure/panelizer and enable "Full page override" for Article content type http://prntscr.com/8lukpq
3 Proceed to /admin/structure/types/manage/article/panelizer/page_manager/node%3Aarticle%3Adefault/content and just Save default Article panelizer page to wright it to database http://prntscr.com/8lulmk
4 Create test article node
5 Proceed to /node/1/panelizer/page_manager/content and press save to override panelizer page for current node. http://prntscr.com/8lumsy

After that if you check panels_display and panels_pane tables you'll see that it has duplicated uuid. This breaks behaviour of modules which use uuid such as Deploy and Features.

Comments

denisz created an issue. See original summary.

denisz’s picture

StatusFileSize
new853 bytes

Proposed solution.

dineshw’s picture

Yes, we too facing this issue while Deploying panels.

Same UUID causing wrong display in deployed pages.

Not sure why UUID's are same in two different entitied or nodes.

dineshw’s picture

The patch works well, and enforce UUID generation.

dineshw’s picture

Status: Needs review » Reviewed & tested by the community
damienmckenna’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

Lets get some tests to confirm it works as intended.

damienmckenna’s picture

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new3.98 KB

This test compares the original panes against the panes in a cloned display.

Status: Needs review » Needs work

The last submitted patch, 8: panelizer-n2577031-8.patch, failed testing.

damienmckenna’s picture

Related issues: +#2748373: Cloned default displays have duplicate UUIDs

Ok, that isn't directly relevant to this issue, so I opened a new one for the duplicate UUID values on duplicate panes: #2748373: Cloned default displays have duplicate UUIDs

damienmckenna’s picture

I've committed the tests from #2748373: Cloned default displays have duplicate UUIDs, with part committed out, to make it easier to write the correct tests for this.

dineshw’s picture

Hi Damien, I beleive patch you have added is just to make sure it passes test but patch from #2 still need to be used.

correct me in case wrong!

Thanks

damienmckenna’s picture

@dineshw: Yes, you are correct, but I want to write some tests to confirm the bug so that then we can confirm the patch in #2 fixes it :)

dineshw’s picture

@Damien : Perfect - I'm on the same page now ;)

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new4.59 KB

Here's a test that confirms the bug.

Status: Needs review » Needs work

The last submitted patch, 15: panelizer-n2577031-15.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new5.39 KB

Both patches combined.

damienmckenna’s picture

StatusFileSize
new5.08 KB

This confirms the display UUIDs are changed too.

damienmckenna’s picture

StatusFileSize
new4.28 KB

Updated patch with just the tests. The patch in #2750545: New displays saved via panels_save_display() don't reset the UUID fixes this problem.

Status: Needs review » Needs work

The last submitted patch, 20: panelizer-n2577031-20.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Postponed
damienmckenna’s picture

Status: Postponed » Needs review
StatusFileSize
new4.97 KB

Reducing the amount of code that can't be committed until #2750545 is in.

  • DamienMcKenna committed a46eec8 on 7.x-3.x
    Issue #2577031 by DamienMcKenna, denisz: Tests to confirm what happens...
damienmckenna’s picture

Status: Needs review » Fixed

I've committed the changes in #23.

damienmckenna’s picture

Status: Fixed » Needs review
StatusFileSize
new1.09 KB

This patch will only work when #2750545 is committed.

Status: Needs review » Needs work

The last submitted patch, 26: panelizer-n2577031-26.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Postponed

Back to postponed.

damienmckenna’s picture

Punting to the next Panelizer release.

damienmckenna’s picture

Pulling off the release schedule, not sure when this will be completed, especially when it's dependent upon Panels.