← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2047135] [NEW] Race condition at container create form

 

Public bug reported:

Issue manifests when user pastes container name and immediately clicks
confirm button at the container create form. In case of issue created
container named “undefined“ instead of name provided by form. Timeframe
for such behavior is very strict, so it affects mostly tests. User can
hit an issue in case of very slow connection to Horizon.

Most probable cause of issue is $asyncvalidator feature of form. It does
some requests to Swift API to check if such container exists and
triggered by any input to name field. Form submitted until all
validation requests are resolved is invalid. $pending AngularJS feature
should handle it, but it seems to be unsupported in schema-form

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2047135

Title:
  Race condition at container create form

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Issue manifests when user pastes container name and immediately clicks
  confirm button at the container create form. In case of issue created
  container named “undefined“ instead of name provided by form.
  Timeframe for such behavior is very strict, so it affects mostly
  tests. User can hit an issue in case of very slow connection to
  Horizon.

  Most probable cause of issue is $asyncvalidator feature of form. It
  does some requests to Swift API to check if such container exists and
  triggered by any input to name field. Form submitted until all
  validation requests are resolved is invalid. $pending AngularJS
  feature should handle it, but it seems to be unsupported in schema-
  form

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2047135/+subscriptions