Bug 8114

Summary: The layer details page allows me to build and select machines when the layer is not added to the project
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Michael Wood <michael.g.wood>
Status: VERIFIED FIXED QA Contact: Cristina Agurida <cristina-danielax.agurida>
Severity: normal    
Priority: Medium+ CC: alexandru.damian, belen.barros.pena, bogdanx.a.voiculescu, cristiana.voicu, jessica.zhang
Version: 1.8   
Target Milestone: 2.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2015-08-06 11:47:24 UTC
Found in master:a8b723498c9a7106210db140452886894494b4d6

Steps to reproduce:

1. Create a Toaster project
2. Go to the layers page 
3. Search for meta-intel
4. Click the meta-intel layer name to go to the layer details page
5. Select the 'Recipes' tab: although the layer is not added to the project, the 'build recipe' buttons are active (they should be inactive until you add the layer)
6. Select the 'Machines' tab: although the layer is not added to the project, the 'select machine' buttons are active (they should be inactive until you add the layer)
Comment 1 Belen Barros Pena 2015-08-06 12:53:01 UTC
sorry: this only happens when the layer in question is added to one of the existing projects. So to reproduce this, you need to:

1. Create a project
2. Add meta-intel to it
3. Create a second project
4. In this second project, go to the meta-intel layer details page. 

It looks like a weird case of cross-project contamination or something. If you delete meta-intel from project one, the problem does no longer happen in project two.
Comment 3 Cristina Agurida 2015-10-28 13:33:25 UTC
Verified on master: 505a82673ac2487df5ea343a6422c2fc47018831