Bug 8300 - The name check while importing a layer fails
Summary: The name check while importing a layer fails
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.0
Assignee: Michael Wood
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-15 14:47 UTC by Belen Barros Pena
Modified: 2015-11-06 12:51 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2015-09-15 14:47:18 UTC
Found in master:ea562de57590c966cd5a75fda8defecd397e6436

Steps to reproduce:

* Create a Toaster project with release 'master'
* Click on the 'import layer' tab
* Enter a layer name that already exists for that project (eg. meta-oe)

When you focus out of the name field, the 'loading' notification appears, but the name check never completes and you can merrily proceed to import the layer, generating a duplicate. 

The browser console shows the following error:

Uncaught TypeError: Cannot read property 'length' of undefined
importlayer.js:217
Comment 1 Belen Barros Pena 2015-09-15 14:50:43 UTC
By the way, we might think of checking the layer name also on submitting the form. That would have prevented me from importing the layer with an already existing name. Since I was able to import the layer, I am assuming the check is not happening on submit, only on focus out in the layer name field.
Comment 3 Alexandru Roman 2015-11-06 12:51:30 UTC
Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1