Bug 1319752 - Creating a container with incorrect/invalid image name raises: undefined method `full_messages' for []:Array
Summary: Creating a container with incorrect/invalid image name raises: undefined meth...
Keywords:
Status: CLOSED DUPLICATE of bug 1243140
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-21 12:32 UTC by Sachin Ghai
Modified: 2019-04-01 20:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-08 12:47:37 UTC
Target Upstream Version:


Attachments (Terms of Use)
undefined method `full_messages' for []:Array when creating container with invalid image (34.21 KB, image/png)
2016-03-21 12:32 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2016-03-21 12:32:37 UTC
Created attachment 1138580 [details]
undefined method `full_messages' for []:Array when creating container with invalid image

Description of problem: I was trying to reproduce one bz where we need to check if raised error contains link to 'Satellite6 ticketing system' instead of foreman ticketing system. So to reproduce that, I created a container with incorrect image name, when I submitted the new container wizard, I got following error:


2016-03-21 08:10:51 [app] [I] Started PUT "/wizard_states/8/steps/environment" for 10.65.193.200 at 2016-03-21 08:10:51 -0400
2016-03-21 08:10:51 [app] [I] Processing by Containers::StepsController#update as HTML
2016-03-21 08:10:51 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"rUKv4ZleB4al8fjWv2U5LbDbL4mJB1NK6yFXvOKelk4=", "docker_container_wizard_states_environment"=>{"tty"=>"0", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "button"=>"", "wizard_state_id"=>"8", "id"=>"environment"}
2016-03-21 08:10:53 [app] [W] Action failed
 | NoMethodError: undefined method `full_messages' for []:Array
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1/app/controllers/containers/steps_controller.rb:61:in `create_container'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1/app/controllers/containers/steps_controller.rb:22:in `update'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/base.rb:189:in `process_action'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/rendering.rb:10:in `process_action'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call'


Version-Release number of selected component (if applicable):
sat6.2 snap4

How reproducible:
always

Steps to Reproduce:
1. create a new container with invalid image.
2.
3.

Actual results:
16-03-21 08:10:53 [app] [W] Action failed
 | NoMethodError: undefined method `full_messages' for []:Array


Expected results:
user should get proper error message instead of :
Oops, we're sorry but something went wrong undefined method `full_messages' for []:Array

Additional info:

Comment 3 Lukas Pramuk 2016-04-08 12:47:37 UTC

*** This bug has been marked as a duplicate of bug 1243140 ***


Note You need to log in before you can comment on or make changes to this bug.