← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2122416] [NEW] Regression: Fix for 2023362 breaks all presets

 

Public bug reported:

If ip_protocol is marked mandatory all presets from
settings.SECURITY_GROUP_RULES like "All ICMP", "All TCP", "SSH" and so
on fail silently because they hide the ip_protocol field (of course they
do, it's already in the preset) and therefore the up_protocol is missing
in the request. It will get set by the defaults in
settings.SECURITY_GROUP_RULES but by then it's too late and the error
handling is already triggered.

So with patch
https://opendev.org/openstack/horizon/commit/9445725a9e56956ea06d4338fc4cccd9bb89ad94
applied the addition of the rule fails but the user is not aware since
the "error marker" is on the ip_protocol field, which is hidden. For the
user it looks like the form is just re-rendered.

Testing was broken by having ip_protocol fields added to the mock
request without adding them to the form itself...

Either the check must move down to where we know about the configured
defaults order defaults must be propagated up to the 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/2122416

Title:
  Regression: Fix for 2023362 breaks all presets

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  If ip_protocol is marked mandatory all presets from
  settings.SECURITY_GROUP_RULES like "All ICMP", "All TCP", "SSH" and so
  on fail silently because they hide the ip_protocol field (of course
  they do, it's already in the preset) and therefore the up_protocol is
  missing in the request. It will get set by the defaults in
  settings.SECURITY_GROUP_RULES but by then it's too late and the error
  handling is already triggered.

  So with patch
  https://opendev.org/openstack/horizon/commit/9445725a9e56956ea06d4338fc4cccd9bb89ad94
  applied the addition of the rule fails but the user is not aware since
  the "error marker" is on the ip_protocol field, which is hidden. For
  the user it looks like the form is just re-rendered.

  Testing was broken by having ip_protocol fields added to the mock
  request without adding them to the form itself...

  Either the check must move down to where we know about the configured
  defaults order defaults must be propagated up to the form.

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