| Summary: |
Toaster managed mode: configuration variables page allows empty inputs into database |
| Product: |
[Build System, Metadata & Runtime] Toaster
|
Reporter: |
Ionut Chisanovici <ionutx.chisanovici> |
| Component: |
toaster | Assignee: |
David Reyna <david.reyna> |
| Status: |
VERIFIED
FIXED
|
QA Contact: |
Alexandru Roman <alexandru.costinx.roman> |
| Severity: |
major
|
|
|
| Priority: |
Medium
|
CC: |
alexandru.costinx.roman, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, jessica.zhang
|
| Version: |
1.8 | |
|
| Target Milestone: |
1.8 M4 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
New (Never tested)
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
Hi, For 1.8_M3.RC1, commit: 40d80f9e019118ac7bcd268f21e350bc154a4a63 but with git revert for cb23e3043bf5c07f111787287a321df0ece647dd, in project configuration variable page, user can add empty records into orm_projectvariable which is causing toaster to return errors. To reproduce this: 1. Create a new project 2. Click on "Edit configuration variables" 3. Add a new var name and value 4. Click on the "Add variable" button 5. Click once again the "Add variable" button (the button remains active) sqlite> select * from orm_projectvariable; id = 1 project_id = 1 name = IMAGE_INSTALL_append value = id = 2 project_id = 1 name = PACKAGE_CLASSES value = package_rpm id = 3 project_id = 1 name = MACHINE value = qemux86 id = 4 project_id = 1 name = SDKMACHINE value = x86_64 id = 5 project_id = 1 name = DISTRO value = poky id = 6 project_id = 1 name = IMAGE_FSTYPES value = ext3 jffs2 tar.bz2 id = 7 project_id = 2 name = IMAGE_INSTALL_append value = id = 8 project_id = 2 name = PACKAGE_CLASSES value = package_rpm id = 9 project_id = 2 name = MACHINE value = qemux86 id = 10 project_id = 2 name = SDKMACHINE value = x86_64 id = 11 project_id = 2 name = DISTRO value = poky id = 12 project_id = 2 name = IMAGE_FSTYPES value = ext3 jffs2 tar.bz2 sqlite> select * from orm_projectvariable; id = 1 project_id = 1 name = IMAGE_INSTALL_append value = id = 2 project_id = 1 name = PACKAGE_CLASSES value = package_rpm id = 3 project_id = 1 name = MACHINE value = qemux86 id = 4 project_id = 1 name = SDKMACHINE value = x86_64 id = 5 project_id = 1 name = DISTRO value = poky id = 6 project_id = 1 name = IMAGE_FSTYPES value = ext3 jffs2 tar.bz2 id = 7 project_id = 2 name = IMAGE_INSTALL_append value = id = 8 project_id = 2 name = PACKAGE_CLASSES value = package_rpm id = 9 project_id = 2 name = MACHINE value = qemux86 id = 10 project_id = 2 name = SDKMACHINE value = x86_64 id = 11 project_id = 2 name = DISTRO value = poky id = 12 project_id = 2 name = IMAGE_FSTYPES value = ext3 jffs2 tar.bz2 id = 13 project_id = 1 name = MACHINE value = genericx86 id = 14 project_id = 1 name = value = Cheers, Ionut C