Bug 1020964 - Undefined method 'each' for nil:NilClass in update_configuration if application is invalid
Summary: Undefined method 'each' for nil:NilClass in update_configuration if applicati...
Keywords:
Status: CLOSED DUPLICATE of bug 1019109
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-18 15:33 UTC by Andy Goldstein
Modified: 2015-05-15 00:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-18 22:06:27 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Andy Goldstein 2013-10-18 15:33:10 UTC
If an application has errors (such as a Deployment with 0 activations) and you try to update the application's configuration (e.g. to set keep-deployments), the broker will fail with an error.

On https://github.com/openshift/origin-server/blob/master/controller/app/models/application.rb#L408, self.errors.messages doesn't contain a key called :config. In my example, it contains :deployments=>["is invalid"].

Comment 1 Dan McPherson 2013-10-18 22:06:27 UTC

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


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